[Karmic] Qtiplot cannot initialize python scripting language

Bug #435918 reported by Dmitry Tantsur
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QtiPlot
Fix Committed
Undecided
Unassigned
qtiplot (Debian)
Fix Released
Unknown
qtiplot (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: qtiplot

Valid for both official 0.9.7-1 and 0.9.7.8 from ppa.
It's said that there're mistakes in their python configuration files (see http://habrahabr.ru/blogs/open_source/62534/ [rus], fixed files: http://uploaded.ivlis.com/qti.tar_.gz).

Revision history for this message
Scott Howard (showard314) wrote :

Thanks for your report. If you use the fixed config files, does it fix the bug?

Could you post about this on the developer forum so we can get it fixed upstream?
http://developer.berlios.de/forum/forum.php?forum_id=19947

If your attached files work, I'll try to get them included in the version of 0.9.7.8 we're trying to get into Karmic as a Ubuntu patch.

Changed in qtiplot (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Scott Howard (showard314)
Revision history for this message
Scott Howard (showard314) wrote :

I've reported the bug upstream:
https://developer.berlios.de/bugs/?func=detailbug&bug_id=16303&group_id=6626

And made a patch using the suggested files from the link above provided by Дмитрий "Divius" Танцур

Before getting this into the next version of qtiplot, could you confirm that the bug exists in the default installation and that these files fix the bug?

Revision history for this message
Scott Howard (showard314) wrote :
Changed in qtiplot (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Dmitry Tantsur (divius) wrote :

Yes the bug exists in the default installation (and existed in Jaunty too) and with these files everythings works for me.

Revision history for this message
Scott Howard (showard314) wrote :

Upstream just said that this is not a bug and marked it as invalid. Could you please write out a test case for this bug? Can you give the exact steps you do to create the bug and the steps you do to fix the bug?

Changed in qtiplot:
status: New → Invalid
Revision history for this message
Dmitry Tantsur (divius) wrote : Re: [Bug 435918] Re: [Karmic] Qtiplot cannot initialize python scripting language

Easily. Open qtiplot, go to menu Scripting->Scripting language, select
"Python" and watch an error message.
I'm quite surprised by your reaction, because this bug is well known
for a long time (you can translate the article above using google and
see it).

2009/9/25 Scott Howard <email address hidden>:
> Upstream just said that this is not a bug and marked it as invalid.
> Could you please write out a test case for this bug? Can you give the
> exact steps you do to create the bug and the steps you do to fix the
> bug?
>
> ** Changed in: qtiplot
>       Status: New => Invalid
>
> --
> [Karmic] Qtiplot cannot initialize python scripting language
> https://bugs.launchpad.net/bugs/435918
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in QtiPlot - Data Analysis and Scientific Plotting: Invalid
> Status in “qtiplot” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: qtiplot
>
> Valid for both official 0.9.7-1 and 0.9.7.8 from ppa.
> It's said that there're mistakes in their python configuration files (see http://habrahabr.ru/blogs/open_source/62534/ [rus], fixed files: http://uploaded.ivlis.com/qti.tar_.gz).
>

Revision history for this message
ion_vasilief (ion-vasilief) wrote : Re : [Bug 435918] Re: [Karmic] Qtiplot cannot initialize python scripting language

Hello everybody,

After a closer look at the problem, it looks indeed that the changes in the qtiplotrc.py file (in function "import_to_global") solve the initialization issue when running QtiPlot from a folder where you don't have write access.

I will apply the patch in my next commit to SVN.

With best regards,
Ion Vasilief

----- Message d'origine ----
De : "Дмитрий "Divius" Танцур" <email address hidden>
À : <email address hidden>
Envoyé le : Vendredi, 25 Septembre 2009, 17h28mn 48s
Objet : Re: [Bug 435918] Re: [Karmic] Qtiplot cannot initialize python scripting language

Easily. Open qtiplot, go to menu Scripting->Scripting language, select
"Python" and watch an error message.
I'm quite surprised by your reaction, because this bug is well known
for a long time (you can translate the article above using google and
see it).

2009/9/25 Scott Howard <email address hidden>:
> Upstream just said that this is not a bug and marked it as invalid.
> Could you please write out a test case for this bug? Can you give the
> exact steps you do to create the bug and the steps you do to fix the
> bug?
>
> ** Changed in: qtiplot
> Status: New => Invalid
>
> --
> [Karmic] Qtiplot cannot initialize python scripting language
> https://bugs.launchpad.net/bugs/435918
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in QtiPlot - Data Analysis and Scientific Plotting: Invalid
> Status in “qtiplot” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: qtiplot
>
> Valid for both official 0.9.7-1 and 0.9.7.8 from ppa.
> It's said that there're mistakes in their python configuration files (see http://habrahabr.ru/blogs/open_source/62534/ [rus], fixed files: http://uploaded.ivlis.com/qti.tar_.gz).
>

--
[Karmic] Qtiplot cannot initialize python scripting language
https://bugs.launchpad.net/bugs/435918
You received this bug notification because you are the registrant for
QtiPlot.

Status in QtiPlot - Data Analysis and Scientific Plotting: Invalid
Status in “qtiplot” package in Ubuntu: Incomplete

Bug description:
Binary package hint: qtiplot

Valid for both official 0.9.7-1 and 0.9.7.8 from ppa.
It's said that there're mistakes in their python configuration files (see http://habrahabr.ru/blogs/open_source/62534/ [rus], fixed files: http://uploaded.ivlis.com/qti.tar_.gz).

Revision history for this message
Scott Howard (showard314) wrote :

Ion, thanks for looking into this. Divius, thanks for reporting it.

Great! We can cherry pick this fix into Karmic once it hits the svn.

Changed in qtiplot (Ubuntu):
status: Incomplete → Triaged
Changed in qtiplot:
status: Invalid → Fix Committed
Changed in qtiplot (Ubuntu):
assignee: Scott Howard (showard314) → nobody
Revision history for this message
sergio (sergio-tarsiero) wrote :

when starting Scott's package installed from his ppa i get this error message:

"Accessing QtiPlot functions or objects from Python code won't work. Probably your version of Qt/SIP/PyQt differs from the one QtiPlot was compiled against."

i have karmic.

my system's packages:
python-pyqt 4.6-1
python-sip4 4.9.1-snapshot-20091015-0ubuntu1
libqt4 4.5.3
python2.5 2.5.4-1ubuntu6
python2.6 2.6.4-0ubuntu2

in view/preferences/file locations i verified that python directory was correctly reported as /usr/lib/python2.5 (as far as i know, qtiplot 0.9.7-8 is compiled against python 2.5) , but i can't use python, though.

Revision history for this message
Scott Howard (showard314) wrote : Re: [Bug 435918] Re: [Karmic] Qtiplot cannot initialize python scripting language

A few days before Karmic's release the Sip package was updated. That
update broke qtiplot totally in karmic (would not compile/plot at
all). To get a working version, we had to do an stable release update
for qtiplot, which involved compiling qtiplot without python support.
Unfortunately, both the qtiplot version in Karmic and Debian Unstable
need the older version of Sip to compile with python support. The best
solution is to get the newest version of qtiplot into debian/ubuntu.
However, the newest versions ship with it's own static libraries that
are shared in ubuntu/debian, which is generally not allowed or avoided
in our distributions. Therefore, we're kind of in a cache 22: we can't
upgrade because of custom static libraries, but can't stay the same
because of updated shared libraries.

This would be fixed if someone could either 1) teach the Karmic/Lucid
version of qtiplot to use the new Sip or 2) teach qtiplot 0.9.10 to
use debian's shared libraries.

Revision history for this message
Dmitry Tantsur (divius) wrote :

Honestly, compiling QtiPlot is painful. I've tried but failed. Maybe
I'll try to once more.

2009/11/6 Scott Howard <email address hidden>:
> A few days before Karmic's release the Sip package was updated. That
> update broke qtiplot totally in karmic (would not compile/plot at
> all). To get a working version, we had to do an stable release update
> for qtiplot, which involved compiling qtiplot without python support.
> Unfortunately, both the qtiplot version in Karmic and Debian Unstable
> need the older version of Sip to compile with python support. The best
> solution is to get the newest version of qtiplot into debian/ubuntu.
> However, the newest versions ship with it's own static libraries that
> are shared in ubuntu/debian, which is generally not allowed or avoided
> in our distributions. Therefore, we're kind of in a cache 22: we can't
> upgrade because of custom static libraries, but can't stay the same
> because of updated shared libraries.
>
> This would be fixed if someone could either 1) teach the Karmic/Lucid
> version of qtiplot to use the new Sip or 2) teach qtiplot 0.9.10 to
> use debian's shared libraries.
>
> --
> [Karmic] Qtiplot cannot initialize python scripting language
> https://bugs.launchpad.net/bugs/435918
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in QtiPlot - Data Analysis and Scientific Plotting: Fix Committed
> Status in “qtiplot” package in Ubuntu: Triaged
>
> Bug description:
> Binary package hint: qtiplot
>
> Valid for both official 0.9.7-1 and 0.9.7.8 from ppa.
> It's said that there're mistakes in their python configuration files (see http://habrahabr.ru/blogs/open_source/62534/ [rus], fixed files: http://uploaded.ivlis.com/qti.tar_.gz).
>

Revision history for this message
Scott Howard (showard314) wrote :

The version of qtiplot in lucid works with Python scripting (0.9.7.10). However, you have to manually set the directory as seen in:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560429
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471709

Otherwise it will continue to fail to initialize. This bug is remaining open and has been forwarded upstream in the first above linked report.

The workaround is repeated here:
"Edit" -> "Preferences"
"File Locations"
"Python Configuration Files" is blank, it needs to be "/usr/share/qtiplot"

Changed in qtiplot (Debian):
status: Unknown → New
Revision history for this message
sergio (sergio-tarsiero) wrote :

I should try to install it backporting it in karmic. unfortunately i can't find any ppa for qt 4.6...

Revision history for this message
Dmitry Tantsur (divius) wrote :

Installed packages from Lucid. 0.9.7.10+r1453-1ubuntu1 works in Karmic after fixing preferences, thank you.

Revision history for this message
Dmitry Tantsur (divius) wrote :

No longer works in Lucid:
qtiplot 0.9.7.10+r1453-1ubuntu1
python-sip4 4.10.0-2ubuntu2
libqt4 4:4.6.1-1ubuntu2
python-qt4 4.7.0-2ubuntu2

It seems that qtiplot should be rebuilt against new sip.

Revision history for this message
Dmitry Tantsur (divius) wrote :

See also lp #518473

Revision history for this message
Scott Howard (showard314) wrote :

Thanks alot again, Divius

I have a rebuilt package here:
https://edge.launchpad.net/~showard314/+archive/qtiplot-ppa
ppa:showard314/qtiplot-ppa

Could you confirm that simply rebuilding the package fixes the bug?

I also can't access:
https://bugs.edge.launchpad.net/bugs/518473

what is that bug about?

Revision history for this message
Dmitry Tantsur (divius) wrote :

This bug is about failure, now I've made it public.

Yes, rebuilding the package fixes the bug, thank you.

Revision history for this message
Dmitry Tantsur (divius) wrote :

Doesn't work again:

$ apt-cache policy qtiplot
qtiplot:
  Установлен: 0.9.7.10+r1453-1ubuntu2
  Кандидат: 0.9.7.10+r1453-1ubuntu2
  Таблица версий:
 *** 0.9.7.10+r1453-1ubuntu2 0
        500 http://ru.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

$ apt-cache policy python-sip4
python-sip4:
  Установлен: 4.10.1-0ubuntu1
  Кандидат: 4.10.1-0ubuntu1
  Таблица версий:
 *** 4.10.1-0ubuntu1 0
        500 http://ru.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Scott Howard (showard314) wrote :

Divius, you're saving this package in Lucid!

I have a rebuilt package here:
https://edge.launchpad.net/~showard314/+archive/qtiplot-ppa
ppa:showard314/qtiplot-ppa

Could you confirm that simply rebuilding the package fixes the bug?

Make sure these two builds are complete first:
https://edge.launchpad.net/~showard314/+archive/qtiplot-ppa/+build/1626601
https://edge.launchpad.net/~showard314/+archive/qtiplot-ppa/+build/1626600

Revision history for this message
Dmitry Tantsur (divius) wrote :

No, version ppabuild2 doesn't work.

2010/4/5 Scott Howard <email address hidden>

> Divius, you're saving this package in Lucid!
>
> I have a rebuilt package here:
> https://edge.launchpad.net/~showard314/+archive/qtiplot-ppa
> ppa:showard314/qtiplot-ppa
>
> Could you confirm that simply rebuilding the package fixes the bug?
>
> Make sure these two builds are complete first:
> https://edge.launchpad.net/~showard314/+archive/qtiplot-ppa/+build/1626601
> https://edge.launchpad.net/~showard314/+archive/qtiplot-ppa/+build/1626600
>
> --
> [Karmic] Qtiplot cannot initialize python scripting language
> https://bugs.launchpad.net/bugs/435918
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in QtiPlot - Data Analysis and Scientific Plotting: Fix Committed
> Status in “qtiplot” package in Ubuntu: Triaged
> Status in “qtiplot” package in Debian: New
>
> Bug description:
> Binary package hint: qtiplot
>
> Valid for both official 0.9.7-1 and 0.9.7.8 from ppa.
> It's said that there're mistakes in their python configuration files (see
> http://habrahabr.ru/blogs/open_source/62534/ [rus], fixed files:
> http://uploaded.ivlis.com/qti.tar_.gz).
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/qtiplot/+bug/435918/+subscribe
>

Revision history for this message
Scott Howard (showard314) wrote :

I'm classifying this bug as "fixed released" for Lucid and "won't fix" for Karmic as it will be too difficult to get SRUs for all the needed libraries in Karmic. This bug has been fixed in Lucid (you have to set the preferences yourself first, see bug #555779). Please test the Lucid version (as we'll be in Beta 2 soon) to make sure it is working properly. Thank you all for your help.

Changed in qtiplot (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Dmitry Tantsur (divius) wrote :

Seems to need one more rebuild, now for Natty: see bug 735546

Changed in qtiplot (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.