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

[fix] ostk python import error in virtual environments #398

Open
viconnex opened this issue May 16, 2024 · 0 comments
Open

[fix] ostk python import error in virtual environments #398

viconnex opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@viconnex
Copy link

Bug description

Hello! Thanks a lot for sharing this very powerful library!
OSTk dependencies work when installed in a python based docker container.

However, I get import errors when I simply pip install open-space-toolkit-astrodynamics in a python virtual environment:

> from ostk.physics.unit import Angle
Traceback (most recent call last)
  File "./ostk-project/main.py", line 1, in <module>
    from ostk.physics.unit import Angle
  File "./ostk-project/.venv/lib/python3.11/site-packages/ostk/physics/__init__.py", line 3, in <module>
    from ostk.io import *
  File "./ostk-project/.venv/lib/python3.11/site-packages/ostk/io/__init__.py", line 3, in <module>
    from ostk.core import *
  File "./ostk-project/.venv/lib/python3.11/site-packages/ostk/core/__init__.py", line 3, in <module>
    from .OpenSpaceToolkitCorePy import *
ModuleNotFoundError: No module named 'ostk.core.OpenSpaceToolkitCorePy'

Steps to reproduce

  1. Buy a macbook
  2. Create a local python virtual environment
pyenv local 3.11.3
python -m venv .venv
source .venv/bin/activate
  1. Install dependency pip install open-space-toolkit-astrodynamics==8.2.0
  2. Import ostk in a python shell
python
> from ostk.physics.unit import Angle

Expected behavior

No error when importing modules.

Additional context

I'm on Mac OS Sonoma 14.4.1

Thank you for your help!

@viconnex viconnex added the bug Something isn't working label May 16, 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
Projects
None yet
Development

No branches or pull requests

1 participant