Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 645678

Summary: dev-python/virtualenv should RDEPEND on dev-python/setuptools - virtualenv: Traceback (most recent call last): File "/usr/lib/python-exec/python3.6/virtualenv", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No mod[..]
Product: Gentoo Linux Reporter: happycorsair
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, happycorsair
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description happycorsair 2018-01-25 11:39:38 UTC
user@pc ~ $ virtualenv 
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/virtualenv", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

Can be simply fixed by installing setuptools (it can be absent on machines which use binary packages, that's how I've discovered this).

Please add setuptools to RDEPEND.

Thanks you!

Reproducible: Always

Steps to Reproduce:
Running virtualenv without setuptools installed.
Actual Results:  
Crash.

Expected Results:  
Virtualenv works.
Comment 1 David Denoncin 2020-09-04 21:06:01 UTC
This was done in commit aa48a25a2d280cf6f6edaff3078dddccf6cd582b, maybe earlier.