Edgewall Software
Modify

Opened 16 years ago

Closed 15 years ago

#7549 closed defect (invalid)

.egg-cache file stored in the project directory

Reported by: stodge@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I just installed Trac 0.11.1 on Centos 5.2. I configured Apache (mod_python) and restarted and all looks ok. I can browse http://localhost/trac and I see:

Available Projects

    * .egg-cache: Error
      ('module' object has no attribute 'ChangeSet')

But I get an exception when I run trac-admin with no parameters:

trac-admin
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 236,
in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 2097,
in load_entry_point
    return ep.load()
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1830,
in load
    entry = __import__(self.module_name, globals(),globals(),
['__name__'])
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
admin/console.py", line 34, in ?
    from trac.ticket.model import *
  File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/
ticket/__init__.py", line 3, in ?
    from trac.ticket.model import *
AttributeError: 'module' object has no attribute 'ChangeSet'

Installing Trac 0.11 works fine.

Attachments (0)

Change History (8)

comment:1 by Emmanuel Blot, 16 years ago

Component: admin/consolegeneral
Summary: AttributeError: 'module' object has no attribute 'ChangeSet' Options There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic. There was an error processing your request. Please try again. Standard view View as tree Proportional text Fixed text [Click the envelope to receive email updates].egg-cache file stored in the project directory

Where (path) did you create your Trac environment ?

comment:2 by stodge@…, 16 years ago

I hadn't created an environment at this point. I'd forgotten the syntax for the trac-admin command so I ran it with no parameters.

comment:3 by anonymous, 16 years ago

Owner: set to anonymous
Status: newassigned

comment:4 by anonymous, 16 years ago

Owner: changed from anonymous to admin
Status: assignednew

comment:5 by osimons, 16 years ago

Owner: admin removed

Please don't play with the ticket properties.

comment:6 by martinbk@…, 16 years ago

Hi,

I have a simular problem:

I'm using Apache with "PythonOption TracEnvParentDir /data/trac". When ich see the project index ther is always

.egg-cache: Error 
([Errno 2] No such file or directory: '/data/trac/.egg-cache/VERSION')

i can delete /data/trac/.egg-cache but it will created again

comment:7 by Remy Blank, 16 years ago

Keywords: needinfo added

I believe the issue in comment:6 has been fixed in [7481], which will be included in 0.11.2.

I'm not sure it's the same as the original issue, though. Would it be possible for you to install from the 0.11-stable branch?

comment:8 by Christian Boos, 15 years ago

Resolution: invalid
Status: newclosed

The only way I could reproduce the original backtrace:

    from trac.ticket.model import *
AttributeError: 'module' object has no attribute 'ChangeSet'

is by adding 'ChangeSet' to the __all__ list in trac/ticket/model.py …

Somehow that Trac installation got messed up.

As for the problem with the .egg-cache, see comment:7 above.

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.