#4073 closed defect (wontfix)
ImportError: No module named pkg_resources
| Reported by: | markus | Owned by: | Jonas Borgström |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
trac-admin fails with this error when using 0.11dev (integrated WebAdmin):
Creating and Initializing Project
Failed to create environment. No module named pkg_resources
Traceback (most recent call last):
File "C:\Program Files\Python24\Lib\site-packages\trac\admin\console.py", line 560
, in do_initenv
options=options)
File "C:\Program Files\Python24\Lib\site-packages\trac\env.py", line 129, in __ini
t__
load_components(self)
File "C:\Program Files\Python24\Lib\site-packages\trac\loader.py", line 140, in lo
ad_components
__import__(module)
File "C:\Program Files\Python24\Lib\site-packages\trac\admin\web_ui.py", line 24,
in ?
import pkg_resources
ImportError: No module named pkg_resources
Failed to initialize environment. 1
Traceback (most recent call last):
File "C:\Program Files\Python24\Lib\site-packages\trac\admin\console.py", line 564
, in do_initenv
sys.exit(1)
SystemExit: 1
I'm wondering if we should define setuptools as a required tool (currently it's marked optional in TracInstall and does not even appear in one of the TracInstallPlatforms installation guides) or make the Plugins tab in WebAdmin optional and try to import pkg_resource dynamically.
Attachments (0)
Change History (6)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Right, setuptools is a runtime as well as install time dependency starting with 0.11.
comment:4 by , 19 years ago
Shouldn't this be a ticket for 0.11 to update the documents to reflect the new requirement?
comment:5 by , 19 years ago
Well, I'm pretty sure the doc will make it explicit that setuptools will be required for 0.11; I don't think we need a ticket to remind this, so that's probably why Christopher closed it that way.
If unsure, simply ask him again when he's back in January, in the meantime I'd say we leave this closed.
comment:6 by , 16 years ago
I would add that you get the same error if you install the on Windows using the installer.



Trac is in the process of moving to use setuptools internally instead of distutils, so starting with 0.11 it will indeed be required.