Code Monkey home page Code Monkey logo

Comments (8)

dtip avatar dtip commented on May 21, 2024 1

@oldtree2008 if you activate your conda environment MAGPLUS_HOME should be automatically set.

from magics-python.

StephanSiemen avatar StephanSiemen commented on May 21, 2024

Hi @prise6 ,
Did you get any error/warning messages? This seems to happen the the shapefiles wwhihc contain the coastlines can not be found at runtime. But there should be messages on that?!
Can not see this on any of my tests environments, but just downloading an Ubuntu 18.04 ...
Get back to you
Stephan

from magics-python.

StephanSiemen avatar StephanSiemen commented on May 21, 2024

Hi @prise6 ,
unfortunately, I can not reproduce your problem. Under Ubuntu 18.04 with mini conda I get the coastlines. Could you please try the python code
magics.info()
after your lines and tell us what you get?
Thanks

from magics-python.

prise6 avatar prise6 commented on May 21, 2024

Hi @StephanSiemen,
Thank you for your answer.
I do not have any warning or errors when using magics. This is the reason why i'm a bit lost.
Is there a debug mode i can turn on ?

Here is the executed code you ask:

magics.info()

Checking Magics: Magics 4.0.0 (64 bit)
Configuration files found in /opt/conda

I use docker, here's my Dockerfile:

FROM jupyter/tensorflow-notebook:7f1482f5a136

USER root

RUN apt-get update && \
    apt-get install -y \
    libmagplus3v5 \ 
    libproj-dev \
    proj-data \
    proj-bin \
    gdal-bin \
    libgeos-dev \
    libssl1.0.0 \
    libssl-dev

RUN conda install -y -c conda-forge python-eccodes cartopy Magics=4.0.0

USER $NB_UID

Can you tell me where i shoud find my shapefiles wwhihc in my system ?

Thank you again.

from magics-python.

StephanSiemen avatar StephanSiemen commented on May 21, 2024

Hi @prise6 ,
I can currently not try your setup, but I noticed that you install Magics through apt-get and Conda. You do not need the apt-get one if you have Conda since Magics 4.0. Perhaps there is a mismatch if both versions are installed? Please try remove the installation of Magics through apt-get ("libmagplus3v5") and see if this helps.
Cheers

from magics-python.

prise6 avatar prise6 commented on May 21, 2024

@StephanSiemen ,
I removed libmagplus3v5 and build my image, unfortunately it doesn't work :/
Could it be a permission problem ?

from magics-python.

oldtree2008 avatar oldtree2008 commented on May 21, 2024

I have the same problem.
Unable to open /home/xxxx/anaconda3.shp or /home/xxxx/anaconda3.SHP.
Magics-ERROR: Can not open Shapefile /home/xxxx/anaconda3Magics

But selfcheck is Ok
python -m Magics selfcheck
Checking Magics: Magics 4.1.0 (64 bit)
Configuration files found in /home/xxxx/anaconda3
Found: Magics 'Magics 4.1.0 (64 bit)'.

from magics-python.

oldtree2008 avatar oldtree2008 commented on May 21, 2024

I have solved the problem. just set Environment variant MAGPLUS_HOME=/home/xxxx/anaconda3.

from magics-python.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.