[Distutils] Having problems with "scripts" section

Phillip J. Eby pje at telecommunity.com
Fri Sep 9 06:07:18 CEST 2005


At 11:06 PM 9/8/2005 -0300, Scott Kirkwood wrote:
>Ok, I give up. I'm using setuptools==0.5a13 and have the following problem.
>I'm trying (under Ubuntu Linux) to have my easy_install.py install a 
>script to run my utility. However, it's unable to find the utility and I 
>don't know why.
>The latest incarnation I changed the name of the script to runWx. Here's 
>what happends when I run it:
>$ runWx
>Traceback (most recent call last):
>   File "/usr/bin/runWx", line 4, in ?
>     pkg_resources.run_script('wxOptParse==0.1.2', 'runWx')
>   File 
> "/usr/lib/python2.4/site-packages/setuptools-0.5a13-py2.4.egg/pkg_resources.py", 
> line 111, in run_script
>     require(dist_spec)[0].metadata.run_script(script_name, ns)
>   File 
> "/usr/lib/python2.4/site-packages/setuptools-0.5a13-py2.4.egg/pkg_resources.py", 
> line 627, in run_script
>     raise ResolutionError("No script named %r" % script_name)
>pkg_resources.ResolutionError: No script named 'runWx'
>
>it can't find runWx, ok, why not?

Can you try with setuptools 0.6a1c2?  Use:

     easy_install.py -Uf http://peak.telecommunity.com/snapshots setuptools

to upgrade.  Rebuild and reinstall your project.  If it still has a 
problem, please let me know.  I remember fixing some script-related bugs 
between 0.5 and 0.6, so this might be something that's already fixed.  If 
not, point me to the sources and I'll see if I can reproduce the problem.



More information about the Distutils-SIG mailing list