Skip to content

Not compatible to jupyter notebooks - exodus #2

@PedroNogueira404

Description

@PedroNogueira404

When using python 3.11.13 importing exodus, it gives error in the first importing line


ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 1
----> 1 from reddutils import exodus
2 exopop = exodus.Exoplanet_Archive('NasaExoplanetArchive')
3 exopop.display()

File ~/anaconda3/lib/python3.11/site-packages/reddutils/exodus/init.py:9
7 import numpy as np
8 import pandas as pd
----> 9 from PyAstronomy import pyasl
10 from tabulate import tabulate
11 import os

File ~/anaconda3/lib/python3.11/site-packages/PyAstronomy/init.py:5
3 import os
4 import importlib
----> 5 from PyAstronomy.pyaC import pyaPermanent
7 class PyAIS:
8 """
9 PyAstronomy Import Status
10 """

File ~/anaconda3/lib/python3.11/site-packages/PyAstronomy/pyaC/init.py:12
9 from .output import matrix2doutput
10 from .simiof import SimIOF
---> 12 from .mtools import *

File ~/anaconda3/lib/python3.11/site-packages/PyAstronomy/pyaC/mtools/init.py:4
2 from .integrat import ibtrapz
3 from .zerocross import zerocross1d
----> 4 from .toolbox import degtorad, radtodeg, farat

File ~/anaconda3/lib/python3.11/site-packages/PyAstronomy/pyaC/mtools/toolbox.py:3
1 from future import division
2 import numpy as np
----> 3 import scipy.special as ss
5 def degtorad(d):
6 """
7 Convert degrees into radians.
8
(...)
17 The angle converted into radians.
18 """

File ~/anaconda3/lib/python3.11/site-packages/scipy/special/init.py:821
818 from ._ufuncs import *
820 # Replace some function definitions from _ufuncs to add Array API support
--> 821 from ._support_alternative_backends import (
822 log_ndtr, ndtr, ndtri, erf, erfc, i0, i0e, i1, i1e, gammaln,
823 gammainc, gammaincc, logit, expit, entr, rel_entr, xlogy,
824 chdtr, chdtrc, betainc, betaincc, stdtr)
826 from . import _basic
827 from ._basic import *

File ~/anaconda3/lib/python3.11/site-packages/scipy/special/_support_alternative_backends.py:6
3 import functools
5 import numpy as np
----> 6 from scipy._lib._array_api import (
7 array_namespace, scipy_namespace_for, is_numpy
8 )
9 from . import _ufuncs
10 # These don't really need to be imported, but otherwise IDEs might not realize
11 # that these are defined in this file / report an error in init.py

File ~/anaconda3/lib/python3.11/site-packages/scipy/_lib/_array_api.py:18
15 import numpy.typing as npt
17 from scipy._lib import array_api_compat
---> 18 from scipy._lib.array_api_compat import (
19 is_array_api_obj,
20 size as xp_size,
21 numpy as np_compat,
22 device as xp_device,
23 is_numpy_namespace as is_numpy,
24 is_cupy_namespace as is_cupy,
25 is_torch_namespace as is_torch,
26 is_jax_namespace as is_jax,
27 is_array_api_strict_namespace as is_array_api_strict
28 )
30 all = [
31 '_asarray', 'array_namespace', 'assert_almost_equal', 'assert_array_almost_equal',
32 'get_xp_devices',
(...)
38 'xp_take_along_axis', 'xp_unsupported_param_msg', 'xp_vector_norm',
39 ]
42 # To enable array API and strict array-like input validation

File ~/anaconda3/lib/python3.11/site-packages/scipy/_lib/array_api_compat/numpy/init.py:1
----> 1 from numpy import * # noqa: F403
3 # from numpy import * doesn't overwrite these builtin names
4 from numpy import abs, max, min, round # noqa: F401

File ~/anaconda3/lib/python3.11/site-packages/numpy/init.py:751, in getattr(attr)
0 <Error retrieving source code with stack_data see ipython/ipython#13598>

ModuleNotFoundError: No module named 'numpy.char'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions