pytroll / pyorbital

Orbital and astronomy computations in python
http://pyorbital.readthedocs.org/
GNU General Public License v3.0
224 stars 77 forks source link

ModuleNotFoundError: 'pyorbital' is not a package #79

Closed mnaranjo closed 2 years ago

mnaranjo commented 3 years ago

Hi, I have tried to perform the basic test described in the documentation after installing the package as indicated in the link (I have also tried it with a coda environment and I get the same result), pyorbital version 1.6.1.

from pyorbital.orbital import Orbital
from datetime import datetime
# Use current TLEs from the internet:
orb = Orbital("Suomi NPP")
now = datetime.utcnow()

However, with the first import line I get the following error.

from pyorbital.orbital import Orbital
ModuleNotFoundError: No module named 'pyorbital.orbital'; 'pyorbital' is not a package

Am I missing something obvious?

Thank you very much

djhoese commented 3 years ago

Do you have a directory or file named pyorbital in your current directory? Otherwise, are you sure you are running with the same python environment rhat you installed pyorbital into?

djhoese commented 3 years ago

Any update on this @mnaranjo?

@joleenf you said you experienced something similar?

joleenf commented 3 years ago

Yes. For me, pip install pyorbital solved the problem.