ncareol / lrose-soloPy

Other
6 stars 4 forks source link

Error with GUI widget #2

Open nguy opened 9 years ago

nguy commented 9 years ago

I am running the application and receiving the following errors upon startup.

nickguy@~ $ run_solopy 
Traceback (most recent call last):
  File "/Users/nickguy/software/python/anaconda/bin/run_solopy", line 21, in <module>
    lrose_solopy.main.start()
  File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/main.py", line 563, in start
    main(sys.argv)
  File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/main.py", line 553, in main
    form = MainWindow(config_file=config_file,data_dir=data_dir,colormap_dir = colormap_dir)
  File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/main.py", line 221, in __init__
    self.mpl = MplCanvas(self.cfg.config['header-label'], self.colormap, parent=self.main_, width=3, height=3, dpi=100)
  File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/RadialDisplay.py", line 137, in __init__
    self.setParent(parent)
TypeError: arguments did not match any overloaded call:
  QWidget.setParent(QWidget): argument 1 has unexpected type 'PySide.QtGui.QFrame'
  QWidget.setParent(QWidget, Qt.WindowFlags): argument 1 has unexpected type 'PySide.QtGui.QFrame'

Thanks, Nick

ghost commented 9 years ago

Have you run conda update conda conda update anaconda

After doing that, please attach the output of conda list

On Mon, Oct 13, 2014 at 10:44 AM, Nick notifications@github.com wrote:

I am running the application and receiving the following errors upon startup.

nickguy@~ $ run_solopy Traceback (most recent call last): File "/Users/nickguy/software/python/anaconda/bin/run_solopy", line 21, in lrose_solopy.main.start() File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/main.py", line 563, in start main(sys.argv) File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/main.py", line 553, in main form = MainWindow(config_file=config_file,data_dir=data_dir,colormap_dir = colormap_dir) File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrosesolopy/main.py", line 221, in init self.mpl = MplCanvas(self.cfg.config['header-label'], self.colormap, parent=self.main, width=3, height=3, dpi=100) File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/RadialDisplay.py", line 137, in init self.setParent(parent) TypeError: arguments did not match any overloaded call: QWidget.setParent(QWidget): argument 1 has unexpected type 'PySide.QtGui.QFrame' QWidget.setParent(QWidget, Qt.WindowFlags): argument 1 has unexpected type 'PySide.QtGui.QFrame'

Thanks, Nick

— Reply to this email directly or view it on GitHub https://github.com/ncareol/lrose-soloPy/issues/2.

nguy commented 9 years ago

Here's the output from conda list

# packages in environment at /Users/nickguy/software/python/anaconda:
#
Could not extract name and version from: 'Warning: cannot find svn location for nappy==1.1.2-r3637'
_license                  1.1                      py27_0  
abstract-rendering        0.5.1                np19py27_0  
anaconda                  2.1.0                np19py27_0  
aoslib                    0.0.0                     <pip>
apptools                  4.2.1                    py27_0  
argcomplete               0.8.1                    py27_0  
astropy                   0.4.2                np19py27_0  
atmqty                    0.2.0.2                   <pip>
atom                      0.3.9                    py27_0  
awot                      0.1.1                     <pip>
backports.ssl-match-hostname 3.4.0.2                   <pip>
basemap                   1.0.7                np17py27_0  
beautiful-soup            4.3.2                    py27_0  
beautifulsoup4            4.3.2                     <pip>
binstar                   0.7.1                    py27_0  
biopython                 1.63                 np18py27_0  
bitarray                  0.8.1                    py27_0  
blaze                     0.6.3                np19py27_0  
blz                       0.6.2                np19py27_0  
bokeh                     0.6.1                np19py27_0  
boto                      2.32.1                   py27_0  
brewer2mpl                1.5dev                    <pip>
casuarius                 1.1                      py27_0  
cdat-lite                 6.0rc2                    <pip>
cdecimal                  2.3                      py27_0  
cffi                      0.8.6                    py27_0  
chaco                     4.4.1                np19py27_0  
colorama                  0.3.1                    py27_0  
conda                     3.7.1                    py27_0  
configobj                 5.0.6                    py27_0  
cryptography              0.5.4                    py27_0  
cubes                     0.10.2                   py27_4  
curl                      7.38.0                        0  
cylp                      0.7.1                     <pip>
cython                    0.21                     py27_0  
cytoolz                   0.7.0                    py27_0  
datashape                 0.3.0                np19py27_1  
dateutil                  2.1                      py27_2  
decorator                 3.4.0                    py27_0  
distribute                0.6.45                   py27_0  
docutils                  0.12                     py27_0  
dynd-python               0.6.5                np19py27_0  
enable                    4.3.0                np19py27_2  
enaml                     0.9.8                    py27_0  
envisage                  4.4.0                    py27_1  
flask                     0.10.1                   py27_1  
fortranfile               0.2.1                     <pip>
freetype                  2.4.10                        1  
future                    0.13.1                   py27_0  
futures                   2.1.6                    py27_0  
geos                      3.3.3                         0  
gevent                    1.0.1                    py27_0  
gevent-websocket          0.9.3                    py27_0  
gevent-zeromq             0.2.2                     <pip>
gevent_zeromq             0.2.5                    py27_3  
greenlet                  0.4.4                    py27_0  
grin                      1.2.1                    py27_1  
h5py                      2.3.1                np19py27_0  
hdf5                      1.8.13                        0  
imaging                   1.1.7                    py27_2  
ipython                   2.2.0                    py27_1  
ipython-notebook          2.2.0                    py27_0  
ipython-qtconsole         2.2.0                    py27_0  
itsdangerous              0.24                     py27_0  
jdcal                     1.0                      py27_0  
jinja2                    2.7.3                    py27_1  
jpeg                      8d                            1  
keyring                   3.3                      py27_0  
kiwisolver                0.1.3                    py27_0  
launcher                  1.0.0                         1  
lcms                      1.19                          0  
libdynd                   0.6.5                         0  
libevent                  2.0.20                        1  
libnetcdf                 4.2.1.1                       2  
libpng                    1.5.13                        1  
libsodium                 0.4.5                         0  
libtiff                   4.0.2                         1  
libxml2                   2.9.0                         1  
libxslt                   1.1.28                        2  
llvm                      3.3                           0  
llvmmath                  0.1.1                np17py27_2  
llvmpy                    0.12.7                   py27_0  
lrose-solopy              0.5                       <pip>
lxml                      3.4.0                    py27_0  
markupsafe                0.23                     py27_0  
matplotlib                1.4.0                np19py27_0  
mayavi                    4.3.1                np18py27_0  
mdp                       3.3                  np18py27_0  
meta                      0.4.2.dev                py27_0  
mock                      1.0.1                    py27_0  
multipledispatch          0.4.7                    py27_0  
nappy-1.1.2               r3637                     <pip>
netcdf4                   1.0.8                np18py27_0  
networkx                  1.9.1                    py27_0  
nltk                      3.0.0                np19py27_0  
node-webkit               0.10.1                        0  
nose                      1.3.4                    py27_0  
numba                     0.14.0               np19py27_0  
numexpr                   2.3.1                np19py27_0  
numpy                     1.9.0                    py27_0  
openpyxl                  1.8.5                    py27_0  
openssl                   1.0.1h                        1  
pandas                    0.14.1               np19py27_0  
patsy                     0.3.0                np19py27_0  
pcre                      8.31                          0  
pep8                      1.5.7                    py27_0  
pil                       1.1.7                    py27_1  
pip                       1.5.6                    py27_0  
ply                       3.4                      py27_0  
prettyplotlib             0.1.5                     <pip>
psutil                    2.1.1                    py27_0  
py                        1.4.25                   py27_0  
pyart                     0.0.0                     <pip>
pyaudio                   0.2.7                    py27_0  
pycosat                   0.6.1                    py27_0  
pycparser                 2.10                     py27_0  
pycrypto                  2.6.1                    py27_0  
pycurl                    7.19.5                   py27_1  
pyface                    4.4.0                    py27_0  
pyflakes                  0.8.1                    py27_0  
pygments                  1.6                      py27_0  
pykit                     0.2.0                np18py27_0  
pyngl                     1.4.0                     <pip>
pynio                     1.4.1                     <pip>
pyopengl                  3.0.2                    py27_0  
pyopenssl                 0.14                     py27_0  
pyparsing                 2.0.1                    py27_0  
pyparticleprobe           0.1.0                     <pip>
pyproj                    1.9.3                     <pip>
pyqt                      4.10.4                   py27_0  
pyqtgraph-0.9.8-develop-b20dc0cf6f                           <pip>
pysal                     1.6.0                np18py27_1  
pysam                     0.6                      py27_0  
pyside                    1.1.2                    py27_1  
pytables                  3.1.1                np19py27_0  
pytest                    2.6.3                    py27_0  
python                    2.7.8                         1  
python-dateutil           1.5                       <pip>
python-fontconfig         0.5.1                     <pip>
python.app                1.2                      py27_3  
pytmatrix                 0.2.1                     <pip>
pytz                      2014.7                   py27_0  
pyyaml                    3.11                     py27_0  
pyzmq                     14.3.1                   py27_0  
qt                        4.8.5                         3  
readline                  6.2                           2  
redis                     2.6.9                         0  
redis-py                  2.9.1                    py27_0  
requests                  2.4.1                    py27_0  
rope                      0.9.4                    py27_1  
runipy                    0.1.1                    py27_0  
scikit-image              0.10.1               np19py27_0  
scikit-learn              0.15.2               np19py27_0  
scipy                     0.14.0               np19py27_0  
setuptools                5.8                      py27_0  
shiboken                  1.1.2                    py27_0  
sip                       4.15.5                   py27_0  
six                       1.8.0                    py27_0  
sockjs-tornado            1.0.1                    py27_0  
sphinx                    1.2.3                    py27_0  
spyder                    2.3.1                    py27_1  
spyder-app                2.3.1                    py27_0  
sqlalchemy                0.9.7                    py27_0  
sqlite                    3.8.4.1                       0  
ssl_match_hostname        3.4.0.2                  py27_0  
statsmodels               0.5.0                np19py27_2  
swig                      2.0.10                   py27_0  
sympy                     0.7.5                    py27_0  
tables                    3.1.1                     <pip>
tk                        8.5.15                        0  
toolz                     0.7.0                    py27_0  
tornado                   4.0.2                    py27_0  
traits                    4.4.0                    py27_0  
traitsui                  4.4.0                    py27_0  
ujson                     1.33                     py27_0  
unicodecsv                0.9.4                    py27_0  
vtk                       5.10.1                   py27_0  
werkzeug                  0.9.6                    py27_1  
wsgiref                   0.1.2                     <pip>
xlrd                      0.9.3                    py27_0  
xlsxwriter                0.5.7                    py27_0  
xlwt                      0.7.5                    py27_0  
yaml                      0.1.4                         1  
zeromq                    4.0.4                         0  
zlib                      1.2.7                         1  
nguy commented 9 years ago

Also here is the new error output received from the first posted command to run:

Traceback (most recent call last):
  File "/Users/nickguy/software/python/anaconda/bin/run_solopy", line 19, in <module>
    import lrose_solopy.main
  File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/main.py", line 21, in <module>
    from CfRadial import CfRadial
  File "/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/lrose_solopy/CfRadial.py", line 8, in <module>
    from netCDF4 import Dataset
ImportError: dlopen(/Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/netCDF4.so, 2): Library not loaded: @loader_path/../../libhdf5_hl.7.dylib
  Referenced from: /Users/nickguy/software/python/anaconda/lib/python2.7/site-packages/netCDF4.so
  Reason: image not found
nguy commented 9 years ago

Okay just checked and updated the netcdf4 to the version you had. This returns me to the original error.

ghost commented 9 years ago

Sorry, I’m a bit mystified by this. I’m sure you’ve checked this, but does ‘which python’ yield something like:

/usr/local/anaconda/python.app/Contents/MacOS/python

That is, are you sure you are running Anaconda version of python from ‘run_solopy’?

On Mon, Oct 13, 2014 at 11:13 AM, Nick notifications@github.com wrote:

Okay just checked and updated the netcdf4 to the version you had. This returns me to the original error.

— Reply to this email directly or view it on GitHub https://github.com/ncareol/lrose-soloPy/issues/2#issuecomment-58924026.

nguy commented 9 years ago

Originally, the 'which python showed' /usr/local/anaconda/python/bin/python

I modified the path to read: /usr/local/anaconda/python.app/Contents/MacOS/python

but the same error.

Is your pyqt version 4.10.4 and qt 4.8.5?

ghost commented 9 years ago

I will have to check late next week.

On Monday, October 13, 2014, Nick notifications@github.com wrote:

Originally, the 'which python showed' /usr/local/anaconda/python/bin/python

I modified the path to read: /usr/local/anaconda/python.app/Contents/MacOS/python

but the same error.

Is your pyqt version 4.10.4 and qt 4.8.5?

— Reply to this email directly or view it on GitHub https://github.com/ncareol/lrose-soloPy/issues/2#issuecomment-58986166.

nguy commented 9 years ago

Okay, thanks. I'm stumped as to what is going on, but it seems to be crashing in the Qt Gui section. Just FYI, same issue with both "BASIC" and "BSCAN" on ground PPI scans and airborne RHI-type scans