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

Importing tensorflow breaks unloadSpiceKernels #29

Open
Mark2000 opened this issue Aug 2, 2023 · 0 comments
Open

Importing tensorflow breaks unloadSpiceKernels #29

Mark2000 opened this issue Aug 2, 2023 · 0 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@Mark2000
Copy link
Contributor

Mark2000 commented Aug 2, 2023

Describe the bug
Importing tensorflow causes the unloadSpiceKernels call in BasicEnvironmentModel to fail.

To Reproduce
Steps to reproduce the behavior:

  1. Add import tensorflow as tf to the imports in an example script such as single_sat.py.
  2. Run the script.
  3. Error on shutdown:
Traceback (most recent call last):
  File "/Users/markstephenson/avslab/bsk_rl/bsk_rl/envs/GeneralSatelliteTasking/simulation/environment.py", line 224, in __del__
  File "/Users/markstephenson/avslab/basilisk/dist3/Basilisk/utilities/simIncludeGravBody.py", line 366, in unloadSpiceKernels
  File "/Users/markstephenson/avslab/basilisk/dist3/Basilisk/simulation/spiceInterface.py", line 245, in unloadSpiceKernel
AttributeError: 'NoneType' object has no attribute 'SpiceInterface_unloadSpiceKernel'

Expected behavior
Shouldn't raise that error. What's even going on!?

Version (please complete the following information):

  • Python: 3.10.11
  • Basilisk: 2.2.1b0
  • Plaform: MacOS 13.3.1(a)

Additional Context
Basilisk's spice example does not display this behavior.

@Mark2000 Mark2000 added bug Something isn't working wontfix This will not be worked on labels Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant