Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems installing GribMagic #20

Open
Linuxuser1234 opened this issue Oct 30, 2021 · 5 comments
Open

Problems installing GribMagic #20

Linuxuser1234 opened this issue Oct 30, 2021 · 5 comments

Comments

@Linuxuser1234
Copy link

Linuxuser1234 commented Oct 30, 2021

Hi. When i run the file i keep getting invalid syntax when i run python setup.py install.

@amotl amotl changed the title hi when i run the file i keep getting invalid syntax when i run python setup.py install Problems installing GribMagic Oct 30, 2021
@amotl
Copy link
Member

amotl commented Oct 30, 2021

Dear @awipslinuxuser,

thanks for writing in. I just verified it works when aiming for a development sandbox [1]:

git clone https://github.com/earthobservations/gribmagic.git
cd gribmagic
python3 -m venv .venv
source .venv/bin/activate
python setup.py develop

python -V
Python 3.9.7

gribmagic --help

Commands:
  dwd      DWD GRIB data downloader.
  install  Install helper programs.
  smith    Toolsmith.
  unity    Unified NWP data downloader.

For a regular installation, you might just want to use pip, like:

python3 -m venv .venv
source .venv/bin/activate
pip install gribmagic --upgrade

Let me know if you still observe any problems. If so, please share a more detailed error message.

With kind regards,
Andreas.

[1] There is also a section in the documentation about the development sandbox, see https://github.com/earthobservations/gribmagic/#development.

@amotl
Copy link
Member

amotl commented Oct 30, 2021

All right. This program does not have a GUI, please use the CLI.

@Linuxuser1234
Copy link
Author

Linuxuser1234 commented Oct 30, 2021

@amotl the one script i cant run is in the demo folder that is magics.py it keeps saying

Traceback (most recent call last):
  File "magics.py", line 4, in <module>
    from magics import macro as magics
  File "/home/kali/Desktop/gribmagic-main/demo/magics.py", line 4, in <module>
    from magics import macro as magics
ImportError: cannot import name macro

@amotl
Copy link
Member

amotl commented Oct 30, 2021

Dear @awipslinuxuser,

thanks for sharing the traceback. This essentially means that the Magics program and/or its Python bindings are not installed on your machine. There is some documentation about this at the section about the bbox tool, see [1]. YMMV.

In the best case, to get it running, you would invoke something along the lines of

apt-get install --yes libmagplus3v5
pip install gribmagic[plotting]

and then run the gribmagic program [2].

With kind regards,
Andreas.

[1] https://github.com/earthobservations/gribmagic#run-bbox-tool
[2] The main subsystems available from this package are exposed via the gribmagic program entrypoint, this is probably the CLI interface you might want to use. All programs in the demo folder are actually just scribbles, I probably should rename this folder to spikes.

@Linuxuser1234
Copy link
Author

ok thats what i didn't do ok because i did install macro also I'm developing a software for weather radar on python if you want to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants