Bug 223673 - sci-visualization/qtiplot-0.9.6.2 only loads /usr/local/qtiplot/qtiUtil.py if launched from /usr/local/qtiplot
Bug#: 223673 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: CLOSED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cryos@gentoo.org Reported By: urcindalo@gmail.com
Component: Applications
URL: 
Summary: sci-visualization/qtiplot-0.9.6.2 only loads /usr/local/qtiplot/qtiUtil.py if launched from /usr/local/qtiplot
Keywords:  
Status Whiteboard: 
Opened: 2008-05-26 11:16 0000
Description:   Opened: 2008-05-26 11:16 0000
Unless qtiplot is launched from inside the /usr/local/qtiplot
directory, qtiUtil.py is NOT correctly loaded. You get this error in qtiplot's
console: "Failed to import qtiUtil file!". But, if the command "qtiplot" is
invoked from within /usr/local/qtiplot, then the file is loaded: "qtiUtil file
successfully imported!"

In my path /usr/local/bin is searched before /usr/bin, so I had to create this
script:
===
#!/bin/bash
cd /usr/local/qtiplot && qtiplot
===

to be able to correctly launch qtiplot. I had to change my KDE menu entries so
that they launch my script instead of /usr/bin/qtiplot

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From urcindalo 2008-05-26 11:30:33 0000 -------
I forgot to mention that the location of config files is correctly configured
to /usr/local/qtiplot, so that's not the problem.

------- Comment #2 From Andrey Grozin 2008-05-27 21:15:49 0000 -------
I've just committed an improved ebuild to cvs. It installs python files to
/usr/lib/python<version>/site-packages and compiles them. This should fix the
bug. Please check. Please rm -rf ~/.config/ProIndependent before starting
qtiplot for the first time after updating to this new version. If it works,
please, close the bug.

------- Comment #3 From urcindalo 2008-05-28 07:46:03 0000 -------
Yes, the bug is gone. Thanks very, very much.