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

[Windows ERROR] ImportError: DLL load failed while importing _spacecraft: The specified module could not be found!!! #143

Closed
xiaoJ136 opened this issue Jun 5, 2024 · 1 comment
Labels
bug Something isn't working triage Needs to be reviewed by a maintainer

Comments

@xiaoJ136
Copy link

xiaoJ136 commented Jun 5, 2024

When I execute python scenarioBasicOrbit.py, it shows "ImportError: DLL load failed while importing _spacecraft: The specified module could not be found" error, I do not know how to modify this error, please help me, this is very important to me! Thanks!

(.venv) (bsk_drl) PS D:\option\new_Basilisk\basilisk\examples> python scenarioBasicOrbit.py
Traceback (most recent call last):
  File "D:\option\new_Basilisk\basilisk\examples\scenarioBasicOrbit.py", line 219, in <module>
    from Basilisk.simulation import spacecraft
  File "d:\option\new_basilisk\basilisk\dist3\Basilisk\simulation\spacecraft.py", line 15, in <module>
    from . import _spacecraft
ImportError: DLL load failed while importing _spacecraft: 找不到指定的模块。

Here is some additional information I can provide: I found the file "_spacecraft.pyd" in the directory "D:\Option\new_Basilisk\basilisk\dist3\Basilisk\simulation", also in the same directory I found the file "spacecraft.py", I opened the "spacecraft.py" using notepad++ and found the following error location:

from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if __package__ or "." in __name__:
from . import _spacecraft
else:
import _spacecraft

Above is some of the information I provided that may help solve the problem, if you need more information, please let me know, I will provide the required information in the first place to solve the problem.
Thank you very much.

Version (please complete the following information):

  • Python: [e.g. 3.8]
  • Basilisk: [e.g. 2.3.0]
  • Platform: [e.g. Win10]
@xiaoJ136 xiaoJ136 added bug Something isn't working triage Needs to be reviewed by a maintainer labels Jun 5, 2024
@Mark2000
Copy link
Contributor

Mark2000 commented Jun 5, 2024

This is an issue with your Basilisk installation. Your version of python is likely too old for Basilisk and definitely too old for BSK-RL. Closing as this duplicates AVSLab/basilisk#711

@Mark2000 Mark2000 closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants