Github messages for voidlinux
 help / color / mirror / Atom feed
From: subosito <subosito@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] python-virtualenv is not working (missing dependencies)
Date: Fri, 14 Aug 2020 05:38:44 +0200	[thread overview]
Message-ID: <20200814033844.73AdnL3WdcP7g5rPoUaPbUUSizlonhiI1rxGrP0hNoY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24253@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2360 bytes --]

Closed issue by subosito on void-packages repository

https://github.com/void-linux/void-packages/issues/24253

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  
```
Void 5.7.14_1 x86_64 GenuineIntel uptodate rFFFF 
```
* package:  

```
python-virtualenv-20.0.20_1
```

### Expected behavior

It should create virtual environment using python2.

### Actual behavior

It breaks with error message: missing dependencies.

### Steps to reproduce the behavior

```
$ sudo xbps-install python-virtualenv
$ virtualenv2 py2-env
Traceback (most recent call last):
  File "/usr/bin/virtualenv2", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'importlib-metadata<2,>=0.12' distribution was not found and is required by virtualenv
```

Everything is working fine using `python3-virtualenv`:

```
$ sudo xbps-install python3-virtualenv
$ virtualenv3 py3-env
created virtual environment CPython3.8.5.final.0-64 in 116ms
  creator CPython3Posix(dest=/home/subosito/example/py3-env, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/subosito/.local/share/virtualenv/seed-app-data/v1.0.1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
```



      parent reply	other threads:[~2020-08-14  3:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-12 23:43 [ISSUE] " subosito
2020-08-13  1:51 ` sgn
2020-08-14  3:38 ` subosito
2020-08-14  3:38 ` subosito [this message]

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

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

  git send-email \
    --in-reply-to=20200814033844.73AdnL3WdcP7g5rPoUaPbUUSizlonhiI1rxGrP0hNoY@z \
    --to=subosito@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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 NNTP newsgroup(s).