AndrewAnnex / SpiceyPy

SpiceyPy: a Pythonic Wrapper for the SPICE Toolkit.
MIT License
384 stars 84 forks source link

v4.0.3 : "function 'bodeul_' not found" after update #437

Closed bogpok closed 2 years ago

bogpok commented 2 years ago

Describe the bug After I updated spiceypy to 4.0.3 it throws an error on importing the module:

Traceback (most recent call last): File "p_jup_sys.py", line 6, in import spiceypy as spice File "D:\AnacondaPy\lib\site-packages\spiceypy__init.py", line 27, in from .spiceypy import * File "D:\AnacondaPy\lib\site-packages\spiceypy\spiceypy.py", line 36, in from .utils.libspicehelper import libspice File "D:\AnacondaPy\lib\site-packages\spiceypy\utils\libspicehelper.py", line 80, in c_double_p, File "D:\AnacondaPy\lib\ctypes\init.py", line 377, in getattr func = self.getitem(name) File "D:\AnacondaPy\lib\ctypes\init.py", line 382, in getitem__ func = self._FuncPtr((name_orordinal, self)) AttributeError: function 'bodeul' not found

Desktop (please complete the following information):

How can I manage it?

bogpok commented 2 years ago

I just have installed spiceypy on usual python and ran it from PowerShell:

Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32

and 4.0.3 version works fine. So I guess there was a problem with installation or there is a problem with conda, I will try to reinstall whole conda package.

AndrewAnnex commented 2 years ago

Yeah I don’t know how this issue could have happened, maybe you didn’t install spiceypy using the conda forge distribution? The root cause of the error is some issue with the shared library, either it was missing or corrupted somehow, but I am not sure how you would have run into it.

Let me know how it goes

-Andrew Annex

On Feb 7, 2022, at 6:21 AM, Bogdan Pokrepin @.***> wrote:

 I just have installed spiceypy on usual python and ran it from PowerShell:

Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32

and 4.0.3 version works fine. So I guess there was a problem with installation or there is a problem with conda, I will try to reinstall whole conda package.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

bogpok commented 2 years ago

It was installed exactly as it says here i. e. conda config --add channels conda-forge conda install spiceypy

jessemapel commented 2 years ago

What version of cspice did you get? You can use conda list cspice to see.

If you have an older version of cspice, it could be missing https://github.com/conda-forge/cspice-feedstock/pull/19 as bodeul_ is one of the functions that's a part of the library, but not documented in cspice.

bogpok commented 2 years ago

@jessemapel, nice clue, and I still think it was some conda problem with gathering libraries, because when I tried to reinstall spiceypy and other libs, it always got stuck on "Solving environment", even in trying to change conda version itself. So, I simply uninstalled whole conda package and installed it like fresh new. Again, on fresh conda, spiceypy v4.0.3 works fine. Sorry for bothering 😊