Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9387 closed defect (duplicate)

Impossible to bootstrap trac since r9763

Reported by: Felix Schwarz Owned by:
Priority: highest Milestone:
Component: general Version: 0.12dev
Severity: blocker Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Since r9763 I'm unable to run any commands through setup.py (e.g. 'python setup.py install'):

$ python setup.py egg_info
Traceback (most recent call last):
  File "setup.py", line 33, in <module>
    from trac.util.dist import get_l10n_js_cmdclass
  File ".../trac/__init__.py", line 14, in <module>
    __version__ = __import__('pkg_resources').get_distribution('Trac').version
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 292, in get_distribution
    if isinstance(dist,Requirement): dist = get_provider(dist)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 176, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Trac

Obviously the import 'get_l10n_js_cmdclass' triggers the code in trac/init.py. However if you don't have any metadata, this will fail because there is not setuptools distribution metadata.

To reproduce, please delete Trac.egg-info before running any setup.py command.

Attachments (0)

Change History (2)

comment:1 by Felix Schwarz, 14 years ago

Resolution: duplicate
Status: newclosed

ah, sorry duplicate if #9374

comment:2 by Remy Blank, 14 years ago

Milestone: 0.12

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.