pyglow icon indicating copy to clipboard operation
pyglow copied to clipboard

test failer

Open andu2013 opened this issue 2 years ago • 6 comments

Hi, After successful installation in virtual environment, I faced the problem shown below for all modules while runing "pytest test/" Would you suggest me possible solution, Thanks! --------------------------------ERROR collecting test/test_hwm.py------------------------------------------------------ ImportError while importing test module '/home/wamlak/anaconda3/envs/pyglow/pyglow/test/test_hwm.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.8/importlib/init.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) test/test_hwm.py:5: in from src.pyglow import HWM src/pyglow/init.py:2: in from .pyglow import version # noqa F401 src/pyglow/pyglow.py:17: in from .iri import IRI # noqa E402 src/pyglow/iri.py:4: in from iri12py import iri_sub as iri12 E ModuleNotFoundError: No module named 'iri12py'

andu2013 avatar Mar 02 '22 08:03 andu2013

I have that same problem. Have you already fix it? Please

Armando123x avatar Mar 06 '22 14:03 Armando123x

Not yet.

andu2013 avatar Mar 08 '22 12:03 andu2013

Do any errors occur when installing IRI? Or does the problem first occur when pyglow is imported? Copying here the output of the installation might help with debugging.

bharding512 avatar Mar 15 '22 21:03 bharding512

I have a similar issue; I get the following error on import pyglow:

In [1]: import pyglow

ImportError Traceback (most recent call last) Input In [1], in <cell line: 1>() ----> 1 import pyglow

File /usr/lib/python3.10/site-packages/pyglow/init.py:2, in 1 from future import absolute_import ----> 2 from .pyglow import version # noqa F401 3 from .pyglow import Point # noqa F401 4 from .pyglow import Line # noqa F401

File /usr/lib/python3.10/site-packages/pyglow/pyglow.py:17, in 15 from .location_time import LocationTime # noqa E402 16 from . import constants # noqa E402 ---> 17 from .iri import IRI # noqa E402 18 from .hwm import HWM # noqa E402 19 from .msis import MSIS # noqa E402

File /usr/lib/python3.10/site-packages/pyglow/iri.py:4, in 1 import numpy as np 2 import os ----> 4 from iri12py import iri_sub as iri12 5 from iri16py import iri_sub as iri16 6 from iri16py import read_ig_rz, readapf107

ImportError: cannot import name 'iri_sub' from 'iri12py' (/usr/lib/python3.10/site-packages/iri12py.cpython-310-x86_64-linux-gnu.so)

In [2]:

build_output.txt

dolson14 avatar Aug 03 '22 03:08 dolson14

@dolson14 have you fixed it and how?

panagiotispir avatar Feb 03 '23 17:02 panagiotispir

the same problem

Zlydzen avatar Jul 14 '23 18:07 Zlydzen