With Phillips's help I figured out the problem:<br>
<b><span style="font-weight: bold;"><br>
</span></b>
<div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">scott@scott:~/scott/python/wxoptparse$ runWx</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> File "/usr/bin/runWx", line 4, in ?</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> pkg_resources.run_script('wxOptParse==0.1.2', 'runWx')</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> File "/usr/lib/python2.4/site-packages/setuptools-0.6a1c2-py2.4.egg/pkg_resources.py", line 407, in run_script</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> self.require(requires)[0].run_script(script_name, ns)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> File "/usr/lib/python2.4/site-packages/setuptools-0.6a1c2-py2.4.egg/pkg_resources.py", line 914, in run_script</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> raise ResolutionError("No script named %r" % script_name)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">pkg_resources.ResolutionError: No script named 'runWx'</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">scott@scott:~/scott/python/wxoptparse$ cd ..</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">scott@scott:~/scott/python$ runWx</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">usage: wxoptparse.py <programtorun></span><br>
<b><span style="font-weight: bold;"></span></b></div>
<b><span style="font-weight: bold;"><br>
</span></b>Basically, I was testing within my source directory and it
was getting confused when it saw a folder called wxoptparse. The
error was not very helpful in this case.<br>
<b><span style="font-weight: bold;"></span><br>
</b><b><a href="mailto:distutils-sig@python.org">distutils-sig@python.org</a></b><br><div><span class="gmail_quote">On 9/9/05, <b class="gmail_sendername">Phillip J. Eby</b> <<a href="mailto:pje@telecommunity.com">pje@telecommunity.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">At 01:11 PM 9/9/2005 -0300, Scott Kirkwood wrote:<br>>Sorry I forgot to add the script to subversion, that's not the problem.
<br>><br>>I've updated subversion now, so the scripts directory should be OK.<br><br>Here's what I did. I'm running on cygwin, not Linux, but it seems like it<br>should be similar. In any case, I'm not getting the problem. I wonder if
<br>perhaps you have a PYTHONPATH set up that is somehow finding the wrong<br>version of your egg? (i.e., a version that doesn't have the script). Just<br>a thought.<br><br>pje@pje-2 ~/projects/wxoptparse<br>$ svn up<br>
A scripts/runWx<br>Updated to revision 7.<br><br>pje@pje-2 ~/projects/wxoptparse<br>$ python setup.py install<br>running install<br>running bdist_egg<br>running egg_info<br>writing ./wxOptParse.egg-info/PKG-INFO<br>writing top-level names to ./wxOptParse.egg-info/top_level.txt
<br>installing library code to build/bdist.cygwin-1.5.12-i686/egg<br>running install_lib<br>running build_py<br>installing scripts to build/bdist.cygwin-1.5.12-i686/egg/EGG-INFO/scripts<br>running install_scripts<br>running build_scripts
<br>copying scripts/runWx -> build/scripts-2.3<br>creating build/bdist.cygwin-1.5.12-i686/egg/EGG-INFO/scripts<br>copying build/scripts-2.3/runWx -><br>build/bdist.cygwin-1.5.12-i686/egg/EGG-INFO/s<br>cripts<br>changing mode of build/bdist.cygwin-
1.5.12-i686/egg/EGG-INFO/scripts/runWx<br>to 77<br>7<br>copying ./wxOptParse.egg-info/PKG-INFO -><br>build/bdist.cygwin-1.5.12-i686/egg/EGG<br>-INFO<br>copying ./wxOptParse.egg-info/top_level.txt -><br>build/bdist.cygwin-
1.5.12-i686/eg<br>g/EGG-INFO<br>creating dist<br>creating 'dist/wxOptParse-0.1.2-py2.3.egg' and adding<br>'build/bdist.cygwin-1.5.12<br>-i686/egg' to it<br>removing 'build/bdist.cygwin-1.5.12-i686/egg' (and everything under it)
<br>Processing wxOptParse-0.1.2-py2.3.egg<br>Copying wxOptParse-0.1.2-py2.3.egg to /usr/lib/python2.3/site-packages<br>Adding wxOptParse 0.1.2 to easy-install.pth file<br>Installing runWx script to /usr/bin<br><br>Installed /usr/lib/python2.3/site-packages/wxOptParse-
0.1.2-py2.3.egg<br>Processing dependencies for wxOptParse==0.1.2<br><br>pje@pje-2 ~/projects/wxoptparse<br>$ runWx<br>Traceback (most recent call last):<br> File "/usr/bin/runWx", line 4, in ?<br> pkg_resources.run_script('wxOptParse==
0.1.2', 'runWx')<br> File "/home/pje/setuptools/pkg_resources.py", line 407, in run_script<br> self.require(requires)[0].run_script(script_name, ns)<br> File "/home/pje/setuptools/pkg_resources.py", line 927, in run_script
<br> exec script_code in namespace, namespace<br> File "/usr/bin/runWx", line 3, in ?<br> import pkg_resources<br> File "build/bdist.cygwin-1.5.12-i686/egg/wxoptparse/__init__.py", line<br>
5, in ?<br><br>ImportError: No module named elementtree<br><br></blockquote></div><br>