Skip to content

[fix] ModuleNotFoundError: No module named 'ostk.core.OpenSpaceToolkitCorePy' when importing ostk.physics #547

@JohnKay-png

Description

@JohnKay-png

Hi,@lucas-bremond @vishwa2710 !I recently discovered this project and I'm very excited about it. I noticed that the project has quite a lot of dependencies, and I wonder if there is a cleaner or more lightweight way to use it. Also, it is still somewhat tricky to use this library in a Python environment—I hope the installation and usage process can be further optimized.I installed the ostk.astrodynamics package in a conda virtual environment using pip install ostk.astrodynamics, then ran the example code from your documentation. However, I encountered a ModuleNotFoundError related to OpenSpaceToolkitCorePy.

Steps to reproduce
Steps to reproduce the behavior :

from ostk.physics import Environment
from ostk.physics.time import Instant
from ostk.astrodynamics.trajectory import Orbit
from ostk.astrodynamics.trajectory.orbit.model import SGP4
from ostk.astrodynamics.trajectory.orbit.model.sgp4 import TLE

tle = TLE(
    '1 25544U 98067A   18231.17878740  .00000187  00000-0  10196-4 0  9994',
    '2 25544  51.6447  64.7824 0005971  73.1467  36.4366 15.53848234128316'
)

earth = Environment.default().access_celestial_object_with_name('Earth')

orbit = Orbit(SGP4(tle), earth)

orbit.get_state_at(Instant.now())

Error Traceback
ModuleNotFoundError: No module named 'ostk.core.OpenSpaceToolkitCorePy'

Environment
OS: Windows
Python Version: 3.12 (conda environment)
Installed OpenSpaceToolkit package(s):
ostk.astrodynamics (installed via pip)
How installed: pip install ostk.astrodynamics inside the conda environment

Additional context

I have confirmed that ostk.astrodynamics (and its dependencies) are installed in the correct environment, but it seems that some underlying binary modules like OpenSpaceToolkitCorePy are missing.
This issue persists even after trying pip install ostk-physics, ostk-mathematics, and ostk-core.

Questions
Is there any extra installation step required to get the binary dependencies such as OpenSpaceToolkitCorePy?
Is Windows supported for the ostk Python APIs, or are they Linux/macOS only?
Could you provide guidance on how to resolve this missing module issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions