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!!! #711

Open
xiaye2401 opened this issue Jun 4, 2024 · 0 comments

Comments

@xiaye2401
Copy link

xiaye2401 commented Jun 4, 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.
Uploading error.jpg…

@xiaye2401 xiaye2401 changed the title ImportError: DLL load failed while importing _spacecraft: The specified module could not be found!!! [Windows ERROR] ImportError: DLL load failed while importing _spacecraft: The specified module could not be found!!! Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant