Modify

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#3504 closed defect (invalid)

Setup: NameError: global name 'log' is not defined

Reported by: andrew@… Owned by: proofek
Priority: normal Component: PeerReviewPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description (last modified by proofek)

[root@bb2 peerreviewplugin.trunk]# python setup.py install
running install
running bdist_egg
running egg_info
creating TracCodeReview.egg-info
writing TracCodeReview.egg-info/PKG-INFO
writing top-level names to TracCodeReview.egg-info/top_level.txt
writing dependency_links to TracCodeReview.egg-info/dependency_links.txt
writing entry points to TracCodeReview.egg-info/entry_points.txt
writing manifest file 'TracCodeReview.egg-info/SOURCES.txt'
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    'codereview = codereview',
  File "/usr/lib64/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/install.py", line 76, in run
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/install.py", line 96, in do_egg_install
  File "/usr/lib64/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/bdist_egg.py", line 167, in run
  File "/usr/lib64/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/egg_info.py", line 171, in run
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/egg_info.py", line 252, in find_sources
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/egg_info.py", line 306, in run
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/egg_info.py", line 333, in add_defaults
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/sdist.py", line 45, in walk_revctrl
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/sdist.py", line 52, in _default_revctrl
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/sdist.py", line 98, in entries_finder
NameError: global name 'log' is not defined

Attachments (0)

Change History (7)

comment:2 Changed 6 years ago by anonymous

I am also seeing a very similar error with AccountManager when attempting to run:
'easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk/' after upgrading for .10 to .11.

comment:3 Changed 6 years ago by anonymous

this is a bug in setuptools. here's how i resolved it.

svn co http://svn.python.org/projects/sandbox/branches/setuptools-0.6 setuptools
cd setuptools
python setup.py install

and then go back to what you were trying to install and try again

comment:4 Changed 6 years ago by Alexander Abushkevich

Please mention that svn 1.5 is not supported yet. Checkout the directory with plugin sources, then remove .svn/ folder (or 'extract' sources from svn) and try again:
python setup.py install

comment:5 Changed 6 years ago by anonymous

Thanks this fixed my problem with trying to install NetworkX from the SVN trunk.

comment:6 Changed 6 years ago by proofek

  • Description modified (diff)
  • Resolution set to invalid
  • Status changed from new to closed

comment:7 Changed 5 years ago by burner@…

This can be worked around by doing this:

svn export http://trac-hacks.org/svn/xmlrpcplugin/0.10

cd 0.10

python setup.py bdist_egg

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.