Subject Re: [firebird-python] ANN: PowerConsole 0.7.5 and Firebird Pack 0.9.1
Author Pavel Cisar
Uwe,

I can confirm the problem. In fact, there are two distinct issues...

Uwe Grauer napsal(a):
>
> The above gives:
> Searching for PowerConsole
> Reading http://www.ibphoenix.cz/pwc/download
> Best match: PowerConsole 0.7.5
> Downloading http://ibphoenix.cz/pwc/download/PowerConsole-0.7.5.tar.gz
> Processing PowerConsole-0.7.5.tar.gz
> Running PowerConsole-0.7.5/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-DZtFCR/PowerConsole-0.7.5/egg-dist-tmp-Xih-Gp
> warning: no files found matching 'README'
> warning: no previously-included files matching 'CVS' found anywhere in
> distribution
> error: Setup script exited with error: file 'ipwc' does not exist
>
> My system is opensuse 11.0, python 2.5.2, setuptools 0.6c9-0.pm.1.

This is Python 2.5 related problem, as it happens on Windows XP with
Python 2.5 and openSUSE 11.0 you have as well. It seems that setuptools
under Python 2.5 can't handle symlinks properly when building egg from
downloaded archive. As you experienced, running it locally on downloaded
and extracted one works just fine. This issue doesn't appear under
Python 2.6. I don't have a cure yet, but I hope that binary egg for
Python 2.5 may help. Will check that later.

> When i run ipwc, i get:
> athlon28:~ # ipwc
> Traceback (most recent call last):
> File "/usr/local/bin/ipwc", line 5, in <module>
> pkg_resources.run_script('PowerConsole==0.7.5', 'ipwc')
> File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 448, in
> run_script
> self.require(requires)[0].run_script(script_name, ns)
> File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1173,
> in run_script
> exec script_code in namespace, namespace
> File "/usr/local/bin/ipwc", line 111, in <module>
> File "/usr/local/bin/ipwc", line 98, in main
> File "build/bdist.linux-i686/egg/pwc/interpreter.py", line 459, in
> __init__
> File "build/bdist.linux-i686/egg/pwc/interpreter.py", line 118, in
> __init__
> AttributeError: 'module' object has no attribute 'stdcmd'

This is strictly openSUSE 11.0 problem, as it works under openSUSE 11.1
(python 2.6), ubuntu or even Windows XP with Python 2.5. The problem
here is that for unknown reason, setuptools can't process *namespace*
package 'pwc' properly. I suspect that it's interference between
setuptools and openSUSE's "evil tailoring" of site.py in their Python
distribution (I ran to it for example with virtualenv that doesn't work
under 11.0 due to this). They screwed up badly in 11.0, and it seems all
fixed in 11.1.

best regards
Pavel Cisar
IBPhoenix