help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with Python package (virtualenvwrapper)


From: Steve George
Subject: Help with Python package (virtualenvwrapper)
Date: Thu, 5 Jan 2023 09:25:27 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]