[Thread Prev][Thread Next][Index]

Re: [ferret_users] Pyferret crash



Thank you Martin for the details.
                                              I notice that in recent upgrade the python default was made as python3.5 and it made the issue in my case. After doing certain fixes , now it is working for me.
Sincerely,

Sudheer

Sincerely,

Sudheer

**********************************************************************************
Dr. Sudheer Joseph                                                                
Scientist,                                                                        
INCOIS, MoES, Govt. of India.
"OCEAN VALLEY" , Pragathi Nagar (BO), Nizampet SO,  Telangana, India. PIN- 500 090.
Tel:+91-9440832534(Mobile) Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
E-mail: sjo.India@xxxxxxxxxsjo@xxxxxxxxxxxxx.
-------------------* --------------------
"The ultimate measure of a man is not where he stands in moments of
comfort and convenience, but where he stands at times of challenge and controversy."
                        Martin Luther King, Jr.
***********************************************************************************

On Fri, Mar 10, 2017 at 2:11 PM, Martin Schmidt <martin.schmidt@xxxxxxxxxxxxxxxxx> wrote:
Hi,
a few days ago I had a similar problem. The mail-thread was named  [ferret_users] build pyferret_v710.

Karl Smith helped me do sort out some misconfigured python installation.

Your error message shows that your python cannot load neither PyQt5 nor PyQt4. For python 2.7 it should be PyQt4, not PyQt5!
To check your python installation  just issue

$ python2.7
$>>> import PyQt4

This should work without an error. I am not sure about anaconda, but I think in this case it should be PyQt5!

If this does not work, the ferret installation is not the error source but the python installation is the problem.

The next point is that the ferret-environment includes pythen-related variables.
env | grep PY
gives for me
PYTHONSTARTUP=/etc/pythonstart
PYFER_EXTERNAL_FUNCTIONS=/sw/viz/ferret/py_ferret_v700_ub_py_27/ext_func/pylibs
PYTHONPATH=/sw/viz/ferret/py_ferret_v700_ub_py_27/lib/python2.7/site-packages

Finally, Karl points to a stand-alone check of the ferret graphics machine:

source your ferret environment (do not forget this!)
$ cd $FER_DIR/lib/python2.7/site-packages/pipedviewer/
$ python2.7 pipedviewerpq.py
(This will display a little dialog box with a button.  Every time you press the button it will print a drawing command to the terminal as well as issue that command to the viewer.  It should display a window, draw various things to that window, save the final plot as a PDF and PNG, and exit.)

The scripts around pipedviewerpq.py try to load PyQt5, if this does not exist PyQt4 and end with an error if none of them is found.

Hope this helps, to proceeed.
Greetings,
Martin

On 03/10/2017 01:06 AM, Sudheer Joseph wrote:
Thank you Martin,
It appears below part of my first mail was missed from your notice .

effort to install qt4 results as below..
sjo@SJOLTP../PyFerret~$ sudo apt-get install python-qt4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-qt4 is already the newest version (4.11.4+dfsg-1build4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded


On Mar 10, 2017 5:31 AM, "Martin Schmidt" <martin.schmidt@io-warnemuende.de> wrote:

Lijo and Joseph,

your link seems to point to some commercial web, I do not need a car.

Otherwise: pyferret needs some requisites delivered from the python world for graphics. PyQtx is one of them.  It needs to be installed as a python module, otherwise pyferret cannot render graphics. When installing the pyferret binaries there is no chance to check if prerequisites are there. So the problem shows up later, when running ferret.

The problem should be fixed by installing a PyQt package suitable for your the python version. For python 2.7 it should be PyQt4. So, please install this package before using ferret. Hopefully this solves your problem.

The new snakes should require PyQt5.  The latest ferret release checks which version of PyQtx is installed and works with the later package. Anyway, the install instructions of pyferret should be followed, especially the remarks on required prerequisites are serious.

Good luck,
Martin

Am 09.03.2017 um 14:31 schrieb Lijo Abraham Joseph:
Hello!
       I once had the same issue. I guess I solved it by first building SIP and then downloading and building PyQt4. Otherwise, you can make life more simple by letting Anaconda install pyferret by doing(skip ferret_dataset if already existing and later point it to its location):
"conda create -n FERRET -c conda-forge pyferret ferret_datasets --yes"

More details on this can be found here


On Thu, Mar 9, 2017 at 5:44 PM, Sudheer Joseph <sjo.india@xxxxxxxxx> wrote:
Dear Ferreters,

I have been using pyferret with out any issue so far. However after recent upgrade, I get below issue with pyferret.
My OS is ubuntu 16.04.

sjo@SJOLTP../PyFerret~$ which python
/usr/bin/python
sjo@SJOLTP../PyFerret~$ python
Python 2.7.12 (default, Jul  1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

ferret_paths shows
export FER_DIR="/home/sjo/PKGS/PyFerret"
export FER_DSETS="/home/sjo/PKGS/fer_dsets"
python_exe="/usr/bin/python"
python_subdir="python2.7"


###########
ERROR log below
###########
sjo@SJOLTP../PyFerret~$ pyferret
     NOAA/PMEL TMAP
     PyFerret v7.1 (optimized)
     Linux 4.4.0-62-generic - 02/16/17
      9-Mar-17 17:35    

yes? use levitus_climatology
yes? fill temp[k=1]
grdelWindowCreate: error when calling createWindow in pyferret.graphbind: The PQ viewers requires PyQt5 or PyQt4
STOP FGD_GACWK: null windowobj
sjo@SJOLTP../PyFerret~$


effort to install qt4 results as below..
sjo@SJOLTP../PyFerret~$ sudo apt-get install python-qt4
Reading package lists... Done
Building dependency tree      
Reading state information... Done
python-qt4 is already the newest version (4.11.4+dfsg-1build4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Sincerely,

Sudheer

**********************************************************************************
Dr. Sudheer Joseph                                                                
Scientist,                                                                        
INCOIS, MoES, Govt. of India.
"OCEAN VALLEY" , Pragathi Nagar (BO), Nizampet SO,  Telangana, India. PIN- 500 090.
Tel:+91-9440832534(Mobile) Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
E-mail: sjo.India@xxxxxxxxxsjo@xxxxxxxxxxxxx.
-------------------* --------------------
"The ultimate measure of a man is not where he stands in moments of
comfort and convenience, but where he stands at times of challenge and controversy."
                        Martin Luther King, Jr.
***********************************************************************************



--
Lijo Abraham Joseph
M.Sc Ocean and Atmospheric sciences
Batch 2015-17
University of Hyderabad




[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement