Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#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 Noah Kantrowitz (coderanger) <coderanger@…>, 18 years ago

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

comment:2 by Christopher Lenz, 18 years ago

Resolution: wontfix
Status: newclosed

Right, setuptools is a runtime as well as install time dependency starting with 0.11.

comment:3 by markus, 18 years ago

Does that mean the docs get wontfixed?

comment:4 by sid, 18 years ago

Shouldn't this be a ticket for 0.11 to update the documents to reflect the new requirement?

comment:5 by Christian Boos, 18 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 anonymous, 15 years ago

I would add that you get the same error if you install the on Windows using the installer.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.