[PYTHON] What to do with Magics install

I couldn't find a solution

What is Magics

Magics is ECMWF's weather plotting software that can be accessed directly with python or with Metview.

function

It supports plotting of isobars, wind turbines, observations, satellite images, symbols, text, axes, and graphs.

You can plot GRIB data, Gaussian grids, evenly spaced grids, and fit data.

Installation method

$ pip install magics Since there are system dependencies, if you have Ubuntu 18.04, please install libmagplus3v5. $ sudo apt-get install libmagplus3v5

From here, I get an error. The container uses this from ubuntu

gcr.io/deeplearning-platform-release/tf2-cpu.2-3



 I get an error when I type the following command

!python -m Magics selfcheck

Traceback (most recent call last): File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/opt/conda/lib/python3.7/site-packages/Magics/main.py", line 36, in main() File "/opt/conda/lib/python3.7/site-packages/Magics/main.py", line 25, in main from . import macro File "/opt/conda/lib/python3.7/site-packages/Magics/macro.py", line 14, in from . import Magics File "/opt/conda/lib/python3.7/site-packages/Magics/Magics.py", line 206, in py_open = dll.py_open File "/opt/conda/lib/python3.7/ctypes/init.py", line 377, in getattr func = self.getitem(name) File "/opt/conda/lib/python3.7/ctypes/init.py", line 382, in getitem func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /usr/lib/x86_64-linux-gnu/libMagPlus.so.3: undefined symbol: py_open


 Since there is no py_open, install it with pip

pip install pyopen

I get an error, so I'll do this too pip install netCDF4

Finally the error is resolved !nosetests

I try again, but after all an error python -m Magics selfcheck


 Installation guide is here
https://confluence.ecmwf.int/display/MAGP/Installation+Guide

 The version of Magics is 4.0.0 in the document, but in the following package
 It is 1.5.0.
https://pypi.org/project/Magics/








Recommended Posts

What to do with Magics install
What to do with PYTHON release?
What to do if you can't install pyaudio with pip #Python
What to do if you get a UnicodeDecodeError with pip install
Note: What to do if pip install fails
What to do if pyenv install does not proceed with an error
What to do if you can't install with pip in babun environment
What to do if pip install fails in Xcode 5.1
Links to do what you want with Sublime Text
What to do if pip install fails to install dependent libraries
What to do when Ubuntu crashes
[AWS] What to do when you want to pip with Lambda
What to do if yum breaks
How to install python-pip with ubuntu20.04LTS
To do tail recursion with Python2
What to do if you can't sort files with subscripts
Easy to install pyspark with conda
What to do when an error occurs with import _ssl
Unable to install Python with pyenv
What to do if `pip install matplotlib` fails on Mac
I want to do ○○ with Pandas
How to install mysql-connector with pip3
What to do if pip install mysqlclient fails on MacOS
What to do to get tensorflow-gpu to work
How to install Anaconda with pyenv
Python | What you can do with Python
[Beanstalk] What to do when an error occurs with import uuid
What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1
What to do if you can't build your project with Maven
How to do arithmetic with Django template
How to install DLIB with 2020 / CUDA enabled
What you can do with API vol.1
I want to pip install with PythonAnywhere
How to do portmanteau test with python
What you can do with programming skills
What to do after installing Linux (Ubuntu)
How to install zsh (with .zshrc customization)
Let's summarize what you want to do.
How to install python3 with docker centos
What skills do I need to program with the FBX SDK Python?
What to do if you can't find well with grep's -f option
What to do if you couldn't send an email to Yahoo with Python.
What to do if ipython and python start up with different versions
What to do if you get lost in file reference with FileNotFoundError
What to do if the Chainer (Windows) sample mnist terminates with WinError 183.
What to do if the server doesn't start with python manage.py runserver
What to do if an error occurs when importing numpy with VScode
What to do if you get a TypeError with numpy min, max
What to do if you get Could not fetch URL 443 with pip
How to do multi-core parallel processing with python
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
[Python] What I did to do Unit Test
What to do if mod_fcgid cannot resolve UnicodeEncodeError
I wanted to install Python 3.4.3 with Homebrew + pyenv
[For beginners] What to do after installing Anaconda
What to do if rails s doesn't work
How to install OpenGM on OSX with macports
What to do if pip cannot be installed
What to do when PermissionError of tempfile.mkstemp occurs
What to do if atom autocomplete-python doesn't work