Ran into a problem with setuptools 0.6a5 on Windows where a console_script is named the same as a top-level package.<br>
<br>
This problem doesn't occur on Linux, presumably because the installed
script does not have a .py extension to confuse the import of a
same-named package.<br>
<br>
Excerpt from setup.py:<br>
<br>
entry_points = {<br>
'console_scripts': ['schevo = schevo.script.main:start'],<br>
}<br clear="all"><br>
Traceback on Windows when running the installed schevo.exe:<br>
<br>
Traceback (most recent call last):<br>
File "c:\python24\scripts\schevo.py", line 7, in ?<br>
sys.exit(<br>
File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p<br>
y", line 236, in load_entry_point<br>
return get_distribution(dist).load_entry_point(group, name)<br>
File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p<br>
y", line 1892, in load_entry_point<br>
return ep.load()<br>
File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p<br>
y", line 1625, in load<br>
entry = __import__(self.module_name, globals(),globals(), ['__name__'])<br>
File "c:\python24\scripts\schevo.py", line 7, in ?<br>
sys.exit(<br>
File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p<br>
y", line 236, in load_entry_point<br>
return get_distribution(dist).load_entry_point(group, name)<br>
File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p<br>
y", line 1892, in load_entry_point<br>
return ep.load()<br>
File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p<br>
y", line 1625, in load<br>
entry = __import__(self.module_name, globals(),globals(), ['__name__'])<br>
ImportError: No module named script.main<br>
<br>
Thanks,<br>
<br>-- <br>Matthew R. Scott<br>