Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#7598 closed defect (invalid)

NameError: global name 'log' is not defined when installing Trac

Reported by: Michael Schmarck <fox_xhvnfd-trac@…> Owned by:
Priority: normal Milestone:
Component: general Version: 0.11-stable
Severity: normal Keywords:
Cc: spira@…
Release Notes:
API Changes:

Description

I'm trying to install Trac 0.11-stable on a Solaris 10 system, where my self compiled Python 2.5.2 is in /export/home/webservd/.software/Python-2.5.2. I'm uusing rev. 7510, checked out from SVN per the instructions at http://trac.edgewall.org/wiki/TracDownload#Tracstable

--($ ~/Source/trac-0.11dev)-- python2.5 setup.py install
running install
running bdist_egg
unrecognized .svn/entries format; skipping .
running egg_info
creating Trac.egg-info
writing requirements to Trac.egg-info/requires.txt
writing Trac.egg-info/PKG-INFO
writing top-level names to Trac.egg-info/top_level.txt
writing dependency_links to Trac.egg-info/dependency_links.txt
writing entry points to Trac.egg-info/entry_points.txt
writing manifest file 'Trac.egg-info/SOURCES.txt'
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    """,
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/install.py", line 76, in run
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/install.py", line 92, in do_egg_install
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/bdist_egg.py", line 167, in run
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/egg_info.py", line 171, in run
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/egg_info.py", line 252, in find_sources
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/egg_info.py", line 306, in run
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/egg_info.py", line 333, in add_defaults
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/sdist.py", line 45, in walk_revctrl
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/sdist.py", line 52, in _default_revctrl
  File "/export/home/webservd/.software/Python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/sdist.py", line 98, in entries_finder
NameError: global name 'log' is not defined

Attachments (0)

Change History (3)

comment:1 in reply to:  description Changed 9 years ago by spira@…

Cc: spira@… added

Replying to Michael Schmarck <fox_xhvnfd-trac@…>:

I have the same problem installing it on WindowsXP with Python 2.4

comment:2 Changed 9 years ago by Michael Schmarck <fox_xhvnfd-trac@…>

Resolution: invalid
Status: newclosed

This is not a Trac bug.

The python setuptools have a problem with Subversion 1.5. To solve that problem, I removed Subversion 1.5 on my system (actually, I just moved it out of the $PATH) and made sure that only Subversion 1.4 was present (was in the $PATH).

I then also deleted the svn and libsvn directories (symlinks, actually) in my site-packages directory of the Python installation. I also deleted "easy-install.pth" and "setuptools.pth" and "setuptools*.egg".

Following that, I installed the latest version of the 06 branch of the setuptools:

python ez_setup.py setuptools==dev06

That did not result in a working installation for me. The setuptools.pth was wrong. It pointed to setuptools 0.6c8. To fix that, I did:

echo ./setuptools-0.6c9dev_r65963-py2.5.egg > setuptools.pth

(I was in the site-packages directory of Python while doing that.)

easy-install.pth was also wrong. I replaced ./setuptools-0.6c8-py2.5.egg with the name of the egg that actually got installed:

perl -pi -e 's|setuptools-0.6c8-py2.5.egg|setuptools-0.6c9dev_r65963-py2.5.egg|' easy-install.pth

After having done that, a "python setup.py install" worked for me.

If you're not using Python 2.5, the name of the Egg will be different. It will also be different, if you happen to check out a different revision.

comment:3 in reply to:  2 Changed 9 years ago by spira@…

I agree, this is not a Trac bug.

I installed setuptools from the trunk (version 0.7a1dev) and now everything works ok.

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.