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

test failer #144

Open
andu2013 opened this issue Mar 2, 2022 · 6 comments
Open

test failer #144

andu2013 opened this issue Mar 2, 2022 · 6 comments

Comments

@andu2013
Copy link

andu2013 commented Mar 2, 2022

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 andu2013 closed this as completed Mar 2, 2022
@andu2013 andu2013 reopened this Mar 2, 2022
@Armando123x
Copy link

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

@andu2013
Copy link
Author

andu2013 commented Mar 8, 2022

Not yet.

@bharding512
Copy link
Collaborator

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.

@dolson14
Copy link

dolson14 commented Aug 3, 2022

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

@panagiotispir
Copy link

@dolson14 have you fixed it and how?

@Zlydzen
Copy link

Zlydzen commented Jul 14, 2023

the same problem

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

6 participants