unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Steve George <steve@futurile.net>
To: help-guix@gnu.org
Subject: Help with Python package (virtualenvwrapper)
Date: Thu, 5 Jan 2023 09:25:27 +0000	[thread overview]
Message-ID: <74cd030c-2df7-0066-fb89-3cbfe783abb0@futurile.net> (raw)

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	other threads:[~2023-01-05  9:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74cd030c-2df7-0066-fb89-3cbfe783abb0@futurile.net \
    --to=steve@futurile.net \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).