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

AttributeError: module 'opensim' has no attribute 'simulation' Error #2867

Closed
ItayCoifman opened this issue Aug 27, 2020 · 4 comments
Closed

Comments

@ItayCoifman
Copy link

ItayCoifman commented Aug 27, 2020

hey, I am a new user at OpenSim just trying to import it to my py code (Via Conda env-Pycharm):

`C:\Users\itayc\anaconda3\envs\openSim\python.exe "C:/Users/itayc/ExoSkeleton Project/Python/Test_0.py"
Traceback (most recent call last):
File "C:/Users/itayc/ExoSkeleton Project/Python/Test_0.py", line 1, in
import opensim
File "C:\Users\itayc\anaconda3\envs\openSim\lib\site-packages\opensim-4.1-py3.7.egg\opensim_init_.py", line 1, in
from .actuators import *
File "C:\Users\itayc\anaconda3\envs\openSim\lib\site-packages\opensim-4.1-py3.7.egg\opensim\actuators.py", line 334, in
class CoordinateActuator(opensim.simulation.ScalarActuator):
AttributeError: module 'opensim' has no attribute 'simulation'

Process finished with exit code 1

when I tried running my code on Spyder, it worked fine... what could be the problem?

@jenhicks
Copy link
Member

jenhicks commented Sep 1, 2020

@nickbianco Any ideas?

@jenhicks jenhicks added this to the User Requests and Bugs milestone Sep 1, 2020
@aymanhab
Copy link
Member

aymanhab commented Sep 1, 2020

This is the same symptom of python 3.8 not supported by our current version of SWIG as discussed elsewhere #2869

@ItayCoifman
Copy link
Author

So after I have set the Specific environment for python 3.7, and install the OpenSim once again at the same specific env everything works for now...

@jenhicks
Copy link
Member

jenhicks commented Sep 2, 2020

Closing since we have the existing issue for Python 3.8

@jenhicks jenhicks closed this as completed Sep 2, 2020
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

3 participants