AndrewAnnex / SpiceyPy

SpiceyPy: a Pythonic Wrapper for the SPICE Toolkit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bogpok opened this issue · comments

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_or_ordinal, self))
AttributeError: function 'bodeul
' not found

Desktop (please complete the following information):

  • SpiceyPy Version: 4.0.3
  • OS: Windows 10
  • OS Architecture 64bit
  • Python Version and Architecture: Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

How can I manage it?

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.

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

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 conda-forge/cspice-feedstock#19 as bodeul_ is one of the functions that's a part of the library, but not documented in cspice.

@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 😊