[Thread Prev][Thread Next][Index]

Re: [ferret_users] PyQt issue



Dear all,

Actually I met some problem when installing pyferret in my new ubuntu os.
First, when I in ferret environment and in ferret, I cannot use my keyboard pad like arrow and backspace. But working normal outside ferret.
Second, when I try to use any plotting command (fill etc), there is error message :

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in " "
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Is there any problem with my ubuntu installation or ferret installation? Any suggestions is welcome.
My ferret is v7.5 and my ubuntu is 18.04.3 bionic. which ferret: /home/kiost/miniconda3/envs/ferret/bin/ferret

Saat


On Mon, Dec 23, 2019 at 6:21 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
Dear Mr. Venu,

Ryo is quite right you can install any software with the help of anaconda or miniconda on Linux.

Here I am attaching the procedure that I have ready discussed with Saat. I hope this will help you.  

Hello Saat,
G'day
The easiest way to install pyferret is from Anaconda cloud (https://www.anaconda.com/distribution/).
First you have to install anaconda I would recommend you to go for python 3.7 for LINUX.

This will guide you how to install anaconda in linux. (https://docs.anaconda.com/anaconda/install/linux/) or (https://www.digitalocean.com/community/tutorials/how-to-install-anaconda-on-ubuntu-18-04-quickstart) etc.....

After installing ANACONDA you can easily install pyferret from it by these steps. Important thing is to create an new environment for pyferret (I created FERRET). This is because your linux is having its base environment which is not up to date on repository to install software e.g. CDO, FERRET, NCL etc.
Here is the command to install pyferret from ANACONDA cloud.

conda create -n FERRET -c conda-forge pyferret ferret_datasets --yes

In this command conda create is creating an environment named as FERRET (you can give any other name also like ferret7 etc.).

after running this command conda (Anaconda) will start and complete the installation for you under the environment name FERRET. Now close the terminal and open a new one  and type.

conda info --envs (this command will show you the environments in your linux system, I have 4 environment for each software I use)
# conda environments:
#
base                  *  /home/srathore/anaconda3
FERRET               /home/srathore/anaconda3/envs/FERRET
NCL                      /home/srathore/anaconda3/envs/NCL
POP                     /home/srathore/anaconda3/envs/POP

the Base is the basic environment of linux. it comes when you install linux. So right now I am in my base environment which is shown by asterisk sign (*) and your terminal will show like this (base) user@user-Latitude-E7470:~$.

Now you want to use Pyferret so you have to go in that environment and start using pyferret from there. Here is the command to activate the FERRET environment.

conda activate FERRET

now you are in FERRET environment so you can start using pyferret. After issuing this command your terminal will show like this (FERRET) user@user-Latitude-E7470:~$.This shows that your base environment is now changed to FERRET environment.

If you now issue the command (conda info --envs) to check the environment, it will appear like this (e.g. on my linux system)

# conda environments:
#
base                     /home/srathore/anaconda3
FERRET             * /home/srathore/anaconda3/envs/FERRET
NCL                      /home/srathore/anaconda3/envs/NCL
POP                     /home/srathore/anaconda3/envs/POP

the asterisk (*) is now shifted to FERRET environment from base environment.

Now lets suppose you want to deactivate the environment you are in currently. So simply type conda deactivate this will bring you back into base environment.

Similarly if you want to install CDO

This will show you how to install anaconda and CDO (https://code.mpimet.mpg.de/projects/cdo/wiki/Anaconda). I already gave you the link on how to install anaconda so after installing anaconda no need to repeat the step again mentione don CDO page. So just move to
conda config --add channels conda-forge

conda install cdo

Similarly you can find the cdo installation on t his link also (https://anaconda.org/conda-forge/cdo).

We hope this might help you to install many open source software quickly and easily.

Cheers, Saurabh

On Mon, Dec 23, 2019, 8:09 PM Ryo Furue <furue@xxxxxxxxxx> wrote:
Hi Venu,

On Mon, Dec 23, 2019 at 5:55 PM Venu <venux4@xxxxxxxxx> wrote:
I recently installed pyferret v7.5 in centos 7. But I can't use qt window with preinstalled PyQt5. It seems that pyferret v7.5 using python2.7 and there is no pyqt4 in centos 7 supporting with python2.7. Any suggestions and help in this matter are appreciated. 

I'm still new to PyFerret and I'm not sure if what I'm saying is correct . . . but, I think if you install the latest miniconda for yourself and then install PyFerret upon it, such dependency problems shouldn't happen, because conda automatically installs right versions of everything including Qt.

Hope this helps.

Cheers,
Ryo


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

Privacy Policy | Disclaimer | Accessibility Statement