unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Help with Python package (virtualenvwrapper)
@ 2023-01-05  9:25 Steve George
  0 siblings, 0 replies; only message in thread
From: Steve George @ 2023-01-05  9:25 UTC (permalink / raw)
  To: help-guix

Hi,

I'm working on creating packages for virtualenvwrapper. I'm having 
problems with the 'check' phases of both packages and could do with some 
help ...

I think I have the correct inputs for virtualenvwrapper, the package 
definition is below. The error I get is:

error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-c" "import 
setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', 
open)(__file__);code=f.read().replace('\\r\\n', 
'\\n');f.close();exec(compile(code, __file__, 'exec'))" "test") 
exit-status: 1 term-signal: #f stop-signal: #f>
phase `check' failed after 0.2 seconds
command "python" "-c" "import setuptools, 
tokenize;__file__='setup.py';f=getattr(tokenize, 'open', 
open)(__file__);code=f.read().replace('\\r\\n', 
'\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed 
with status 1
builder for 
`/gnu/store/2wa2kwafx63780wnk93gbx6xr2ms7kjq-python-virtualenvwrapper-4.8.4.drv' 
failed with exit code 1
build of 
/gnu/store/2wa2kwafx63780wnk93gbx6xr2ms7kjq-python-virtualenvwrapper-4.8.4.drv 
failed

In the build log I can see this sort of error:

File 
"/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/site-packages/pkg_resources/__init__
.py", line 1379, in __init__
     self.module_path = os.path.dirname(getattr(module, '__file__', ''))
   File 
"/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/posixpath.py", 
line 152, in dirname
     p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Does anyone know how to debug this further, or has run into this sort of 
problem?

The build command I'm using is:

   guix build --file=python-virtualenvwrapper.scm --keep-failed

Here's the package definitions that I have:

(define-module (python-virtualenvwrapper)
     #:use-module ((guix licenses) #:prefix license:)
     #:use-module (gnu packages)
     #:use-module (guix gexp)
     #:use-module (guix packages)
     #:use-module (guix download)
     #:use-module (guix utils)
     #:use-module (guix build-system python)
     #:use-module (gnu packages python)
     #:use-module (gnu packages check)
     #:use-module (gnu packages python-check)
     #:use-module (gnu packages python-xyz)
     #:use-module (gnu packages openstack) ;;stevedore
     #:use-module (gnu packages python-build)
     ;;#:use-module (python-virtualenv-clone)
)


(define-public python-virtualenv-clone
   (package
     (name "python-virtualenv-clone")
     (version "0.5.7")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "virtualenv-clone" version))
               (sha256
                (base32
                 "06jhhf8hndcgyk9k3bjbk3vz1xpajfxj9667agqzhlk1qcsyk3j1"))))
     (build-system python-build-system)
     (arguments (list #:tests? #f))
     (native-inputs
       (list python-pytest python-tox python-virtualenv python-coverage 
python-wheel python-tomli))
     (home-page "https://github.com/edwardgeorge/virtualenv-clone")
     (synopsis "script to clone virtualenvs.")
     (description "script to clone virtualenvs.")
     (license license:expat)))

(define-public python-virtualenvwrapper
   (package
     (name "python-virtualenvwrapper")
     (version "4.8.4")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "virtualenvwrapper" version))
               (sha256
                (base32
                 "1yjviwbfwgsh6dqkd8ispfppbn04nv9zj6yrplhz43zdwwsak8ai"))))
     (build-system python-build-system)
     ;;(arguments (list #:tests? #f))
     (native-inputs (list python-stevedore python-virtualenv
                              python-virtualenv-clone python-wheel 
python-pbr))
     (home-page "https://virtualenvwrapper.readthedocs.io/")
     (synopsis "Enhancements to virtualenv")
     (description "Enhancements to virtualenv")
     (license license:expat)))

python-virtualenvwrapper

Thanks,

Futurile


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-05  9:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-05  9:25 Help with Python package (virtualenvwrapper) Steve George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).