pyhacc-0.6 install

16 views
Skip to first unread message

olivier fournier

unread,
Jan 11, 2012, 11:24:52 AM1/11/12
to qtalchemy-dev
Hi,

I try to install pyhacc under windows
I have follow the instructions
but when I execute thelast command, I obtain this message:
C:\pyhacc>c:\python27\python.exe c:\python27\scripts\pyhaccgui --
conn=postgresql://oliv:ol...@192.168.1.10/pyhacc
Traceback (most recent call last):
File "c:\python27\scripts\pyhaccgui", line 5, in <module>
pkg_resources.run_script('pyhacc==0.6', 'pyhaccgui')
File "c:\python27\lib\site-packages\pkg_resources.py", line 489, in
run_script
self.require(requires)[0].run_script(script_name, ns)
File "c:\python27\lib\site-packages\pkg_resources.py", line 1214, in
run_script
exec script_code in namespace, namespace
File "c:\python27\lib\site-packages\pyhacc-0.6-py2.7.egg\EGG-INFO
\scripts\pyhaccgui", line 19, in <module>

AttributeError: 'module' object has no attribute 'gui'

Could you help me
regards

Joel B. Mohler

unread,
Jan 12, 2012, 3:30:06 AM1/12/12
to qtalch...@googlegroups.com

I reproduce your bug exactly on my workstation. Its a rather
embarrassing bug which makes the pyhaccgui script pretty worthless.
Here is exactly what I actually use in my own shortcut (note the crucial
space in 'pyhacc gui'):

C:\Python27\pythonw.exe c:\Python27\Scripts\pyhacc gui
--conn=postgresql://joel@fermat/pyhacc

And here are a few observations (which you may already be aware of):
- pythonw.exe is the way to start a gui app with no console on windows
- you can avoid your postgresql password in the command line by using
pgpass as in http://www.postgresql.org/docs/8.3/static/libpq-pgpass.html

I'd love to hear any other comments you have about pyhacc (and I do
regard it as being on topic in qtalchemy-dev as pyhacc is one of the
exemplars of qtalchemy).

- Joel

Reply all
Reply to author
Forward
0 new messages