[Top][All Lists]

[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


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__='';f=getattr(tokenize, 'open', open)(__file__);'\\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__='';f=getattr(tokenize, 'open', open)(__file__);'\\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/", 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
    (name "python-virtualenv-clone")
    (version "0.5.7")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "virtualenv-clone" version))
    (build-system python-build-system)
    (arguments (list #:tests? #f))
(list python-pytest python-tox python-virtualenv python-coverage python-wheel python-tomli))
    (home-page "";)
    (synopsis "script to clone virtualenvs.")
    (description "script to clone virtualenvs.")
    (license license:expat)))

(define-public python-virtualenvwrapper
    (name "python-virtualenvwrapper")
    (version "4.8.4")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "virtualenvwrapper" version))
    (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 "";)
    (synopsis "Enhancements to virtualenv")
    (description "Enhancements to virtualenv")
    (license license:expat)))




reply via email to

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