Mailing List Archive

error from setup.py install in 0.11-stable (Windows): global name 'log' is not defined
Hi everybody,

just trying to setup trac on my new notebook install.

Preparation:
- install Python 2.5.2, add it to path
- install Subversion 1.5 and Subversion bindings (SVN 1.5, Python 2.5)
- install easy_install, Pygments 0.10, Genshi 0.5
- checkout http://svn.edgewall.org/repos/trac/branches/0.11-stable/

Am I missing anything?
(on a side note, I also installed mod_python 3.3.1 and successfully did
the test "Hello World"-thing)

When I try to run "setup.py install", I get an error message:

> F:\Setup\Windows\dev\trac-0.11-stable>python setup.py install
> running install
> running bdist_egg
> unrecognized .svn/entries format; skipping .
> running 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
> Traceback (most recent call last):
> File "setup.py", line 99, in <module>
> """,
> File "e:\Programme\Python25\lib\distutils\core.py", line 151, in setup
> dist.run_commands()
> File "e:\Programme\Python25\lib\distutils\dist.py", line 974, in
> run_commands
> self.run_command(cmd)
> File "e:\Programme\Python25\lib\distutils\dist.py", line 994, in
> run_command
> cmd_obj.run()
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\install.py", line 76, in run
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\install.py", line 96, in do_egg_install
> File "e:\Programme\Python25\lib\distutils\cmd.py", line 333, in
> run_command
> self.distribution.run_command(command)
> File "e:\Programme\Python25\lib\distutils\dist.py", line 994, in
> run_command
> cmd_obj.run()
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\bdist_egg.py", line 167, in run
> File "e:\Programme\Python25\lib\distutils\cmd.py", line 333, in
> run_command
> self.distribution.run_command(command)
> File "e:\Programme\Python25\lib\distutils\dist.py", line 994, in
> run_command
> cmd_obj.run()
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\egg_info.py", line 171, in run
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\egg_info.py", line 252, in find_sources
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\egg_info.py", line 306, in run
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\egg_info.py", line 333, in add_defaults
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\sdist.py", line 45, in walk_revctrl
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\sdist.py", line 52, in _default_revctrl
> File
> "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> tools\command\sdist.py", line 98, in entries_finder
> NameError: global name 'log' is not defined
>
> F:\Setup\Windows\dev\trac-0.11-stable>

Can anybody help me? Unfortunately, I don't know any Python and can't
even tell if this is a problem in the trac installer or in the
easy_install(er)?

There's a message about "unrecognized .svn/entries format; skipping ." -
that shouldn't make a difference, should it? Why would the installer
care about the svn format? (it's 1.5, but having the svn client 1.5 and
the proper bindings installed, this should not be a problem?)



Any hints appreciated!

Thanks,

Holger

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: error from setup.py install in 0.11-stable (Windows): global name 'log' is not defined [ In reply to ]
On Jul 6, 12:01 pm, Holger Stratmann <tig...@finch.de> wrote:
> Hi everybody,
>
> just trying to setup trac on my new notebook install.
>
> Preparation:
> - install Python 2.5.2, add it to path
> - install Subversion 1.5 and Subversion bindings (SVN 1.5, Python 2.5)
> - install easy_install, Pygments 0.10, Genshi 0.5
> - checkouthttp://svn.edgewall.org/repos/trac/branches/0.11-stable/
>
> Am I missing anything?
> (on a side note, I also installed mod_python 3.3.1 and successfully did
> the test "Hello World"-thing)
>
> When I try to run "setup.py install", I get an error message:
>
>
>
> > F:\Setup\Windows\dev\trac-0.11-stable>python setup.py install
> > running install
> > running bdist_egg
> > unrecognized .svn/entries format; skipping .
> > running 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
> > Traceback (most recent call last):
> > File "setup.py", line 99, in <module>
> > """,
> > File "e:\Programme\Python25\lib\distutils\core.py", line 151, in setup
> > dist.run_commands()
> > File "e:\Programme\Python25\lib\distutils\dist.py", line 974, in
> > run_commands
> > self.run_command(cmd)
> > File "e:\Programme\Python25\lib\distutils\dist.py", line 994, in
> > run_command
> > cmd_obj.run()
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\install.py", line 76, in run
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\install.py", line 96, in do_egg_install
> > File "e:\Programme\Python25\lib\distutils\cmd.py", line 333, in
> > run_command
> > self.distribution.run_command(command)
> > File "e:\Programme\Python25\lib\distutils\dist.py", line 994, in
> > run_command
> > cmd_obj.run()
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\bdist_egg.py", line 167, in run
> > File "e:\Programme\Python25\lib\distutils\cmd.py", line 333, in
> > run_command
> > self.distribution.run_command(command)
> > File "e:\Programme\Python25\lib\distutils\dist.py", line 994, in
> > run_command
> > cmd_obj.run()
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\egg_info.py", line 171, in run
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\egg_info.py", line 252, in find_sources
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\egg_info.py", line 306, in run
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\egg_info.py", line 333, in add_defaults
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\sdist.py", line 45, in walk_revctrl
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\sdist.py", line 52, in _default_revctrl
> > File
> > "E:\Programme\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setup
> > tools\command\sdist.py", line 98, in entries_finder
> > NameError: global name 'log' is not defined
>
> > F:\Setup\Windows\dev\trac-0.11-stable>
>
> Can anybody help me? Unfortunately, I don't know any Python and can't
> even tell if this is a problem in the trac installer or in the
> easy_install(er)?
>
> There's a message about "unrecognized .svn/entries format; skipping ." -
> that shouldn't make a difference, should it? Why would the installer
> care about the svn format? (it's 1.5, but having the svn client 1.5 and
> the proper bindings installed, this should not be a problem?)
>
> Any hints appreciated!
>
> Thanks,
>
> Holger

This is due to a bug in setuptools/easy_install/distutils (the Python
'package' utilities) that when run from a svn chekcout will try to
parse the Subversion revision information in order to add it as
metadata to your installation. As you use the just released Subversion
1.5, the new working copy format is not yet parsable by the Python
utilities.

http://bugs.python.org/setuptools/issue4

For solution, use either one of these alternatives:
- do svn export of your checkout and install from the exported copy
(that then has no subversion information to parse)
- patch your Python tools with patch attached to ticket above (I
haven't tried this)
- downgrade to latest Subversion 1.4.x, and checkout the source again
(1.4.x cannot work with 1.5 working copy format)


:::simon

https://www.coderesort.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: error from setup.py install in 0.11-stable (Windows): global name 'log' is not defined [ In reply to ]
osimons wrote:

>> When I try to run "setup.py install", I get an error message:
>>
>>
>>> F:\Setup\Windows\dev\trac-0.11-stable>python setup.py install
>>> running install
>>> running bdist_egg
>>> unrecognized .svn/entries format; skipping .
>>> running 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
>>> Traceback (most recent call last):
>>> ...
>> There's a message about "unrecognized .svn/entries format; skipping ." -
>> that shouldn't make a difference, should it? Why would the installer
>> care about the svn format? (it's 1.5, but having the svn client 1.5 and
>> the proper bindings installed, this should not be a problem?)
>>
>> Any hints appreciated!
>>
>> Thanks,
>>
>> Holger
>
> This is due to a bug in setuptools/easy_install/distutils (the Python
> 'package' utilities) that when run from a svn chekcout will try to
> parse the Subversion revision information in order to add it as
> metadata to your installation. As you use the just released Subversion
> 1.5, the new working copy format is not yet parsable by the Python
> utilities.
>
> http://bugs.python.org/setuptools/issue4
>
> For solution, use either one of these alternatives:
> - do svn export of your checkout and install from the exported copy
> (that then has no subversion information to parse)
Did that and it worked. Thanks.

Maybe I should've tried that right away?
It's kind of strange that it says "skipping .", goes on for a while and
THEN fails...

Also, I think the installer really has no business "parsing the working
copy"... it should use an installed SVN or at least the python bindings
(which I had installed) and only if all else fails, *maybe* look at the
working copy itself...

Oh well...

Now I have another problem with SVN, but that's unrelated and I'll ask
that in a separate post...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: error from setup.py install in 0.11-stable (Windows): global name 'log' is not defined [ In reply to ]
Holger Stratmann kirjoitti:
> osimons wrote:
>
>>> When I try to run "setup.py install", I get an error message:
>>>
>>>
>>>> F:\Setup\Windows\dev\trac-0.11-stable>python setup.py install
>>>> running install
>>>> running bdist_egg
>>>> unrecognized .svn/entries format; skipping .
>>>> running 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
>>>> Traceback (most recent call last):
>>>> ...
>>> There's a message about "unrecognized .svn/entries format; skipping ." -
>>> that shouldn't make a difference, should it? Why would the installer
>>> care about the svn format? (it's 1.5, but having the svn client 1.5 and
>>> the proper bindings installed, this should not be a problem?)
>>>
>>> Any hints appreciated!
>>>
>>> Thanks,
>>>
>>> Holger
>> This is due to a bug in setuptools/easy_install/distutils (the Python
>> 'package' utilities) that when run from a svn chekcout will try to
>> parse the Subversion revision information in order to add it as
>> metadata to your installation. As you use the just released Subversion
>> 1.5, the new working copy format is not yet parsable by the Python
>> utilities.
>>
>> http://bugs.python.org/setuptools/issue4
>>
>> For solution, use either one of these alternatives:
>> - do svn export of your checkout and install from the exported copy
>> (that then has no subversion information to parse)
> Did that and it worked. Thanks.
>
> Maybe I should've tried that right away?
> It's kind of strange that it says "skipping .", goes on for a while and
> THEN fails...
>
> Also, I think the installer really has no business "parsing the working
> copy"... it should use an installed SVN or at least the python bindings
> (which I had installed) and only if all else fails, *maybe* look at the
> working copy itself...

Well it's spirit of setuptools to make difference between checked out
sources (affects naming of eggs for example)

Of course this creates some troubles when installing from checked out
copies, specially svn 1.5 which has working copy version 9 instead of 8
that was older one...

I used that patch approach and was very happy.

--
Jani Tiainen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---