Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11224 closed defect (cantfix)

Can't create new environment with Sqlite

Reported by: anmar.abdelaziz@… Owned by:
Priority: high Milestone:
Component: general Version:
Severity: major Keywords: setuptools
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

After installing Trac 1.0 I wanted to create new environment but I get this error instead. I'm not sure if it's installation error or Trac error.

Creating and Initializing Project
Initenv for 'c:\Sharq\Trac' failed.
Failed to create environment.
ResourceManager instance has no attribute '_warn_unsafe_extraction'
Traceback (most recent call last):
  File "c:\users\user\appdata\local\temp\easy_install-0ritil\Trac-1.0-py2.7-
win32.egg.tmp\trac\admin\console.py", line 455, in do_initenv
    options=options)
  File "c:\users\user\appdata\local\temp\easy_install-0ritil\Trac-1.0-py2.7-
win32.egg.tmp\trac\core.py", line 124, in __call__
    self.__init__(*args, **kwargs)
  File "c:\users\user\appdata\local\temp\easy_install-0ritil\Trac-1.0-py2.7-
win32.egg.tmp\trac\env.py", line 288, in __init__
    setup_participant.environment_created()
  File "c:\users\user\appdata\local\temp\easy_install-0ritil\Trac-1.0-py2.7-
win32.egg.tmp\trac\ticket\default_workflow.py", line 141, in environment_created
    load_workflow_config_snippet(self.config, 'basic-workflow.ini')
  File "c:\users\user\appdata\local\temp\easy_install-0ritil\Trac-1.0-py2.7-
win32.egg.tmp\trac\ticket\default_workflow.py", line 91, in load_workflow_config_snippet
    'workflows/%s' % filename)
  File "build\bdist.win32\egg\pkg_resources.py", line 914, in resource_filename
    self, resource_name
  File "build\bdist.win32\egg\pkg_resources.py", line 1602, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "build\bdist.win32\egg\pkg_resources.py", line 1629, in _extract_resource
    self.egg_name, self._parts(zip_path)
  File "build\bdist.win32\egg\pkg_resources.py", line 990, in get_cache_path
    self._warn_unsafe_extraction(extract_path)
AttributeError: ResourceManager instance has no attribute '_warn_unsafe_extraction'

Attachments (0)

Change History (5)

comment:1 by Jun Omae, 11 years ago

That is the setuptools 0.7.5 issue. Try to downgrade 0.7.4 or 0.6.45 0.6.46. See https://bitbucket.org/pypa/setuptools/issue/28/attributeerror-for-_warn_unsafe_extraction.

Last edited 11 years ago by Jun Omae (previous) (diff)

comment:2 by anonymous, 11 years ago

Resolution: fixed
Status: newclosed

comment:3 by anonymous, 11 years ago

Thanks, it was setuptools that caused the issue. This should be mentioned in the installation guide.

comment:4 by Jun Omae, 11 years ago

Keywords: setuptools added
Resolution: fixedcantfix

The issue has been fixed and pypi:setuptools 0.7.6 is released now.

comment:5 by Ryan J Ollos, 11 years ago

Similar issue has been reported in th:#11201. Thanks for the fix Jun!

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.