Does ProfitPY work on a modern distro?

105 views
Skip to first unread message

Mike

unread,
Nov 20, 2009, 12:38:31 PM11/20/09
to ProfitPy Discuss
I managed to get ProfitPY installed and it runs, but when I try
clicking on a icon/tab, I get the following errors:

2009-11-20 09:34:43,660 DEBUG Exception (debug): ImportError('No
module named qwt_plot',):No module named qwt_plot (h:<bound method
CentralTabs.createTickerPlotTab of
<profit.workbench.centraltabs.CentralTabs object at 0x2057af0>>)
2009-11-20 09:34:43,662 DEBUG Exception (debug): ImportError('No
module named qwt_plot',):No module named qwt_plot (h:<bound method
CentralTabs.createTickerPlotFromView of
<profit.workbench.centraltabs.CentralTabs object at 0x2057af0>>)
2009-11-20 09:34:43,665 DEBUG Exception (debug): ImportError('No
module named qwt_plot',):No module named qwt_plot (h:<bound method
CentralTabs.createDisplayTab of
<profit.workbench.centraltabs.CentralTabs object at 0x2057af0>>)
2009-11-20 09:34:54,239 DEBUG Exception (debug): ImportError('No
module named qwt_plot',):No module named qwt_plot (h:<bound method
CentralTabs.createTickerPlotTab of
<profit.workbench.centraltabs.CentralTabs object at 0x2057af0>>)
2009-11-20 09:34:54,241 DEBUG Exception (debug): ImportError('No
module named qwt_plot',):No module named qwt_plot (h:<bound method
CentralTabs.createTickerPlotFromView of
<profit.workbench.centraltabs.CentralTabs object at 0x2057af0>>)
2009-11-20 09:34:54,267 DEBUG Exception (debug): ImportError('No
module named qwt_thermo',):No module named qwt_thermo (h:<bound method
CentralTabs.createDisplayTab of
<profit.workbench.centraltabs.CentralTabs object at 0x2057af0>>)

$ dpkg -l | grep -i qwt
ii libqwt5-qt4
5.2.0-1 Qt4 widgets library for
technical applicatio
ii libqwt5-qt4-dev
5.2.0-1 Qt4 widgets library for
technical applicatio
ii python-qwt5-qt4
5.1.1~cvs20090626+dfsg-1build1 Python version of the Qwt5
technical widget

I'm using Python v2.6, I saw in a older thread that Python 2.6 wasn't
supported yet? Is this still the case?

Thanks.

Christophe

unread,
Nov 23, 2009, 12:28:16 PM11/23/09
to ProfitPy Discuss
Mike,

I had a similar issue recently. I think that something went wrong
during the "make" process when converting the .ui files into .py
files.
Search through the profit directory for qwt_plot.
I think you should find something like:
from qwt_plot import blah

replace that by:
from PyQt4.Qwt5 import blah.

Let me know if that works for you.

Christophe

Mike

unread,
Nov 23, 2009, 1:49:58 PM11/23/09
to ProfitPy Discuss
I had to modify two files:

profit/lib/widgets/ui_plotitemdialog.py
profit/lib/widgets/ui_plot.py

After that I no longer get the error message.

Is there anyone still maintaining this project that could fix the
issue I wonder? It seems pretty dead around here.

Troy Melhase

unread,
Nov 23, 2009, 2:03:40 PM11/23/09
to profitpy...@googlegroups.com
> Is there anyone still maintaining this project that could fix the
> issue I wonder? It seems pretty dead around here.

I'll get to it, I'll get to it...

Mike

unread,
Jan 15, 2010, 3:23:38 PM1/15/10
to ProfitPy Discuss
Just for the record, in order to get the Connection tab to work I also
had to edit:

profit/workbench/widgets/ui_connectionwidget.py

Then change this line:

from qwt_thermo import QwtThermo

To:

from PyQt4.Qwt5 import QwtThermo

Reply all
Reply to author
Forward
0 new messages