Ticket #9565 (closed defect: invalid)

Opened 6 months ago

Last modified 2 months ago

setup.cfg file stops easy_install from executing

Reported by: patrick.little@nonin.com Assigned to: rjollos
Priority: high Component: DoxygenPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

VisuaulSVN with it's trac plugin and python environment

Fails

c:\VisualSVNServer\trac\python\pyton.exe c:\VisualSVNServer\trac\python\Scripts\easy_install-2.6-script.py c:\doxygenplugin

Running setup.py -q bdist_egg --dist-dir c:\users\patric~1.lit\appdata\local\temp\easy_install-irn7pf\0.11\egg-dist-tmp-xmzuzt
Traceback (most recent call last):
  File "c:\VisualSVNServer\trac\python\Scripts\easy_install-2.6-script.py", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install-2.6')()
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 1712, in main
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 1700, in with_ei_usage
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 1716, in <lambda>
  File "C:\VisualSVNServer\trac\python\lib\distutils\core.py", line 152, in setup    dist.run_commands()
  File "C:\VisualSVNServer\trac\python\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "C:\VisualSVNServer\trac\python\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 211, in run
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 422, in easy_install
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 476, in install_item
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 655, in install_eggs
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 930, in build_and_install
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 919, in run_setup
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\sandbox.py", line 62, in run_setup
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\sandbox.py", line 105, in run
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\sandbox.py", line 64, in
 <lambda>
  File "setup.py", line 49, in <module>
    entry_points={'trac.plugins': 'doxygentrac = doxygentrac.doxygentrac'})
  File "C:\VisualSVNServer\trac\python\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\VisualSVNServer\trac\python\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "C:\VisualSVNServer\trac\python\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.ensure_finalized()
  File "C:\VisualSVNServer\trac\python\lib\distutils\cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\bdist_egg.py", line 94, in finalize_options
  File "C:\VisualSVNServer\trac\python\lib\distutils\cmd.py", line 319, in get_finalized_command
    cmd_obj.ensure_finalized()
  File "C:\VisualSVNServer\trac\python\lib\distutils\cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\egg_info.py", line 85, in finalize_options
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\egg_info.py", line 185, in tags
  File "C:\VisualSVNServer\trac\python\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\egg_info.py", line 233, in get_svn_revision
IndexError: list index out of range

Delete setup.cfg

c:\doxygenplugin>c:\VisualSVNServer\trac\python\python.exe c:\VisualSVNServer\trac\python\Scripts\easy_install-2.6-script.py c:\doxygenplugin
Processing doxygenplugin
Running setup.py -q bdist_egg --dist-dir c:\doxygenplugin\egg-dist-tmp-6vhutw
Adding tracdoxygen 0.11.0.2 to easy-install.pth file

Attachments

Change History

12/02/11 10:39:35 changed by rjollos

  • owner changed from cboos to rjollos.
  • status changed from new to assigned.

This is my fault. I was thinking, no harm in adding setup.cfg and it would show version info on the WebAdmin panel, which is a good thing. It works fine from the command line on Linux. I'll need to do some investigation to figure out more about the issue you are having.

12/02/11 11:04:16 changed by rjollos

Any chance it works if we deleted tag_build = , but keep tag_svn_revision = true in setup.cfg?

02/14/12 00:58:02 changed by rjollos

Mailing list post that reports the same issue with a different plugin: http://groups.google.com/group/trac-users/browse_frm/thread/9cc93287de1d666a.

The common theme here that I see so far is easy_install on Windows.

02/14/12 17:22:24 changed by rjollos

  • priority changed from normal to high.

Did you checkout from svn or download the zip archive?

(follow-up: ↓ 6 ) 02/14/12 17:25:13 changed by anonymous

sorry, i don't recall how the source was obtained

(in reply to: ↑ 5 ) 02/14/12 20:38:09 changed by rjollos

Replying to anonymous:

sorry, i don't recall how the source was obtained

Okay, thanks for getting back to me. Its easy enough to test, so I'll do that when I have some free time to get setup with Python on windows.

04/10/12 01:26:40 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to invalid.

Issue seems to be setuptools not supporting SVN 1.7. See comment 6 in #9709 by netjunki.


Add/Change #9565 (setup.cfg file stops easy_install from executing)




Change Properties
Action