can't get connection tab to appear (No module named Qwt5)

209 views
Skip to first unread message

JR

unread,
Dec 4, 2008, 12:18:11 AM12/4/08
to ProfitPy Discuss
Hi, double-clicking on connection in the Session window doesn't make
the connection tab appear for me. I see the following error messages
in the console:

2008-12-04 00:10:05,009 DEBUG Exception (debug): ImportError('No
module named Qwt5',):No module named Qwt5 (h:<bound method Centra
lTabs.createTickerPlotTab of <profit.workbench.centraltabs.CentralTabs
object at 0x022068A0>>)
2008-12-04 00:10:05,026 DEBUG Exception (debug): ImportError('No
module named Qwt5',):No module named Qwt5 (h:<bound method Centra
lTabs.createTickerPlotFromView of
<profit.workbench.centraltabs.CentralTabs object at 0x022068A0>>)
2008-12-04 00:10:05,039 DEBUG Exception (debug): ImportError('No
module named Qwt5',):No module named Qwt5 (h:<bound method Centra
lTabs.createDisplayTab of <profit.workbench.centraltabs.CentralTabs
object at 0x022068A0>>)

I can make most of the other tabs appear by double-clicking on
executions, historical data, etc.

I am running this on Windows Vista with 2008-12-02 checkouts of IbPy
and ProfitPy. I am using Python 2.6. Any assistance would be much
appreciated.


Thanks,
JR

Troy Melhase

unread,
Dec 4, 2008, 12:25:17 AM12/4/08
to profitpy...@googlegroups.com
> 2008-12-04 00:10:05,039 DEBUG Exception (debug): ImportError('No
> module named Qwt5',):No module named Qwt5 (h:<bound method Centra
> lTabs.createDisplayTab of <profit.workbench.centraltabs.CentralTabs
> object at 0x022068A0>>)

Do you have PyQwt 5 installed? If not, that's your first step. If
you do already have it, the issue is different, and not one that's
simply fixed (the pyqwt api is in flux). Please advise either way.

troy

JR

unread,
Dec 4, 2008, 6:40:44 PM12/4/08
to ProfitPy Discuss
I just tried to install it...I'm having trouble doing this, but I'll
direct further questions regarding PyQwt installation to the PyQwt
mailing list.

In case you're curious as to where I'm stuck (feel free not to answer
- yes, this is a PyQwt issue rather than a ProfitPy issue) - it's
here:

$ make 4
cd configure \
&& python configure.py -4 -Q ../qwt-5.1 -j 1 \
&& make -j 1
Command line options:
{'debug': False,
'disable_numarray': False,
'disable_numeric': False,
'disable_numpy': False,
'excluded_features': [],
'extra_cflags': [],
'extra_cxxflags': [],
'extra_defines': [],
'extra_include_dirs': [],
'extra_lflags': [],
'extra_lib_dirs': [],
'extra_libs': [],
'jobs': '-j 1',
'module_install_path': '',
'modules': [],
'qt': 4,
'qwt_sources': '../qwt-5.1',
'sip_include_dirs': [],
'subdirs': [],
'timelines': [],
'trace': ''}

Found SIP-4.7.9.
Found 'nt' operating system:
2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
Do not get upset by error messages in the next 3 compiler checks:
Check if 'size_t' and 'unsigned int' are the same type:
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Z:'
Command line warning D4002 : ignoring unknown option '-Zw'
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Zh'
Command line warning D4002 : ignoring unknown option '-Zr'
Command line warning D4002 : ignoring unknown option '-Z_'
Command line warning D4002 : ignoring unknown option '-Zt'
Command line warning D4002 : ignoring unknown option '-Z-'
Command line warning D4002 : ignoring unknown option '-w34100'
Command line warning D4002 : ignoring unknown option '-w34189'
size_t_check.cpp
LINK : warning LNK4044: unrecognized option "MANIFEST"; ignored
LINK : warning LNK4044: unrecognized option
"MANIFESTFILE:size_t_check.manifest"
; ignored
LINK : fatal error LNK1181: cannot open input file "QtCore4.lib"
NO
Check if 'size_t' and 'unsigned long' are the same type:
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Z:'
Command line warning D4002 : ignoring unknown option '-Zw'
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Zh'
Command line warning D4002 : ignoring unknown option '-Zr'
Command line warning D4002 : ignoring unknown option '-Z_'
Command line warning D4002 : ignoring unknown option '-Zt'
Command line warning D4002 : ignoring unknown option '-Z-'
Command line warning D4002 : ignoring unknown option '-w34100'
Command line warning D4002 : ignoring unknown option '-w34189'
size_t_check.cpp
size_t_check.cpp(3) : error C2511: 'f' : overloaded member function
'void (unsig
ned long)' not found in 'a'
size_t_check.cpp(2) : see declaration of 'a'
NO
Check if 'size_t' and 'unsigned long long' are the same type:
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Z:'
Command line warning D4002 : ignoring unknown option '-Zw'
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Zh'
Command line warning D4002 : ignoring unknown option '-Zr'
Command line warning D4002 : ignoring unknown option '-Z_'
Command line warning D4002 : ignoring unknown option '-Zt'
Command line warning D4002 : ignoring unknown option '-Z-'
Command line warning D4002 : ignoring unknown option '-w34100'
Command line warning D4002 : ignoring unknown option '-w34189'
size_t_check.cpp
size_t_check.cpp(3) : error C2632: 'long' followed by 'long' is
illegal
size_t_check.cpp(3) : error C2511: 'f' : overloaded member function
'void (unsig
ned long)' not found in 'a'
size_t_check.cpp(2) : see declaration of 'a'
NO
Failed to import numarray: PyQwt will be build without support for
numarray.

Failed to find Numeric2: PyQwt will be build without support for
Numeric.

Failed to find NumPy: PyQwt will be build without support for NumPy.

Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Z:'
Command line warning D4002 : ignoring unknown option '-Zw'
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Zh'
Command line warning D4002 : ignoring unknown option '-Zr'
Command line warning D4002 : ignoring unknown option '-Z_'
Command line warning D4002 : ignoring unknown option '-Zt'
Command line warning D4002 : ignoring unknown option '-Z-'
Command line warning D4002 : ignoring unknown option '-w34100'
Command line warning D4002 : ignoring unknown option '-w34189'
qwt_version_info.cpp
../qwt-5.1\src\qwt_global.h(15) : fatal error C1083: Cannot open
include file: '
qglobal.h': No such file or directory
Failed to build the qwt_version_info tool.
make: *** [4] Error 1

$ ls ../qwt-5.1/src/qwt_global.h
../qwt-5.1/src/qwt_global.h

$ ls ../qwt-5.1/src/qglobal.h
ls: cannot access ../qwt-5.1/src/qglobal.h: No such file or directory

Thanks,
JR

Troy Melhase

unread,
Dec 4, 2008, 6:43:33 PM12/4/08
to profitpy...@googlegroups.com
> I just tried to install it...I'm having trouble doing this, but I'll
> direct further questions regarding PyQwt installation to the PyQwt
> mailing list.

My advice would be to read or re-read the README and INSTALL files.
If memory serves, the compilation and installation of PyQwt isn't
anything like your typical open source package. Best of luck,

troy

JR

unread,
Dec 7, 2008, 1:37:18 AM12/7/08
to ProfitPy Discuss
I managed to install PyQwt by using the binary installer (you might
wonder why I didn't use the binary installer earlier - the reason is
that I had problems downloading it before, but the download is working
now). I no longer get the message "ImportError('No module named
Qwt5',):No module named Qwt5", however, I still can't get the
connection tab to appear. Here's what I see in the console now:

2008-12-07 01:27:20,601 DEBUG Session set for to <Session 0x2562d68
messages:0 connected:False>
2008-12-07 01:27:20,602 DEBUG Exception valueLoad: , EOFError()
2008-12-07 01:27:20,605 DEBUG Session set for centralTabs to <Session
0x2562d68 messages:0 connected:False>
2008-12-07 01:27:20,605 DEBUG Session set for SessionTree to <Session
0x2562d68 messages:0 connected:False>
2008-12-07 01:30:24,500 DEBUG Exception (debug): ImportError('DLL load
failed: The specified module could not be found.',):DLL load failed:
The specified module could not be found. (h:<bound method
CentralTabs.createTickerPlotTab of
<profit.workbench.centraltabs.CentralTabs object at 0x02A38618>>)
2008-12-07 01:30:24,526 DEBUG Exception (debug): ImportError('DLL load
failed: The specified module could not be found.',):DLL load failed:
The specified module could not be found. (h:<bound method
CentralTabs.createTickerPlotFromView of
<profit.workbench.centraltabs.CentralTabs object at 0x02A38618>>)
2008-12-07 01:30:24,553 DEBUG Exception (debug): ImportError('DLL load
failed: The specified module could not be found.',):DLL load failed:
The specified module could not be found. (h:<bound method
CentralTabs.createDisplayTab of
<profit.workbench.centraltabs.CentralTabs object at 0x02A38618>>)

I am using Python 2.5.2 (I downgraded from 2.6 so that I could use the
PyQwt package built against Python 2.5), NumPy 1.2.1, PyQt-Py2.5-
gpl-4.4.3-1, and Windows Vista.


Thanks,
JR

Troy Melhase

unread,
Dec 8, 2008, 8:46:59 PM12/8/08
to profitpy...@googlegroups.com
All of the code in profitpy is python, so any DLL error is coming from
a different extension module. Given that you get this while trying to
load a PyQwt component, the search starts there. A quick grep of the
trunk gives these imports:

./profit/workbench/widgets/ui_connectionwidget.py:from PyQt4.Qwt5
import QwtThermo
./profit/workbench/connectiondisplay.py:from PyQt4.Qwt5 import QwtThermo
./profit/lib/widgets/ui_plot.py:from PyQt4.Qwt5 import QwtPlot
./profit/lib/widgets/ui_plotitemdialog.py:from PyQt4.Qwt5 import QwtPlot
./profit/lib/widgets/plotitemdialog.py:from PyQt4.Qwt5 import QwtPlot,
QwtPlotCurve, QwtPlotMarker, QwtSymbol
./profit/lib/widgets/plot.py:from PyQt4.Qwt5 import QwtLegend,
QwtPicker, QwtPlot, QwtPlotCurve
./profit/lib/widgets/plot.py:from PyQt4.Qwt5 import QwtPlotGrid,
QwtPlotPicker, QwtPlotZoomer, QwtPainter
./profit/lib/widgets/plot.py:from PyQt4.Qwt5 import QwtPlotMarker,
QwtPlotPanner, QwtSymbol, QwtText

Fire up an interactive interpreter, and try each one of these imports
by hand. If you get a DLL error there, copy and paste it in a reply.
If you don't get a DLL error, well, we're in trouble.
Reply all
Reply to author
Forward
0 new messages