stanfordnmbl / osim-rl

Reinforcement learning environments with musculoskeletal models
http://osim-rl.stanford.edu/
MIT License
877 stars 248 forks source link

Mac OS error with :python -c "import opensim" #204

Open katUTC opened 4 years ago

katUTC commented 4 years ago

Hello, Having reinstalled anaconda and conferred with my collaborators concerning the issues I am having installing for a MacOS, I have decided to post concerning this issue. I've found that someone else had the same issue and posted in a forum elsewhere with no response. The installation goes without error until the step: python -c "import opensim"

which gives the following error: Fatal Python error: PyThreadState_Get: no current thread

Abort trap: 6

conda info gives: active environment : opensim-rl active env location : /Users/kat/anaconda2/envs/opensim-rl shell level : 2 user config file : /Users/kat/.condarc populated config files : /Users/kat/.condarc conda version : 4.6.11 conda-build version : 3.17.8 python version : 2.7.16.final.0 base environment : /Users/kat/anaconda2 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/osx-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /Users/kat/anaconda2/pkgs /Users/kat/.conda/pkgs envs directories : /Users/kat/anaconda2/envs /Users/kat/.conda/envs platform : osx-64 user-agent : conda/4.6.11 requests/2.21.0 CPython/2.7.16 Darwin/18.7.0 OSX/10.14.6 UID:GID : 501:20 netrc file : None offline mode : False

and Conda list gives: WARNING: The conda.compat module is deprecated and will be removed in a future release.

packages in environment at /Users/kat/anaconda2/envs/opensim-rl:

#

Name Version Build Channel

ca-certificates 2019.9.11 hecc5488_0 conda-forge certifi 2019.6.16 py36_1 conda-forge cloudpickle 1.2.2 pypi_0 pypi curl 7.65.3 h22ea746_0 conda-forge cycler 0.10.0 pypi_0 pypi expat 2.2.5 h6de7cb9_1003 conda-forge future 0.17.1 pypi_0 pypi gettext 0.19.8.1 h46ab8bc_1002 conda-forge git 2.23.0 pl526hbdf3604_2 conda-forge gym 0.14.0 pypi_0 pypi kiwisolver 1.1.0 pypi_0 pypi krb5 1.16.3 hcfa6398_1001 conda-forge lapack 3.6.1 ha44fe06_2 conda-forge libcurl 7.65.3 h16faf7d_0 conda-forge libcxx 4.0.1 hcfea43d_1
libcxxabi 4.0.1 hcfea43d_1
libedit 3.1.20181209 hb402a30_0
libffi 3.2.1 h475c297_4
libgfortran 3.0.1 h93005f0_2
libiconv 1.15 h01d97ff_1005 conda-forge libssh2 1.8.2 hcdc9a53_2 conda-forge matplotlib 3.1.1 pypi_0 pypi ncurses 6.1 h0a44026_1
numpy 1.17.2 pypi_0 pypi openblas 0.2.19 0 kidzik opensim 4.0.0 py36_17 kidzik openssl 1.1.1c h01d97ff_0 conda-forge osim-rl 3.0.6 pypi_0 pypi pcre 8.41 h0a44026_1003 conda-forge perl 5.26.2 haec8ef5_1006 conda-forge pip 19.2.3 py36_0
pyglet 1.3.2 pypi_0 pypi pyparsing 2.4.2 pypi_0 pypi python 3.6.9 h359304d_0
python-dateutil 2.8.0 pypi_0 pypi readline 7.0 h1de35cc_5
redis 3.3.8 pypi_0 pypi scipy 1.3.1 pypi_0 pypi setuptools 41.2.0 py36_0
six 1.12.0 pypi_0 pypi sqlite 3.29.0 ha441bb4_0
timeout-decorator 0.4.1 pypi_0 pypi tk 8.6.9 h2573ce8_1003 conda-forge wheel 0.33.6 py36_0
xz 5.2.4 h1de35cc_4
zlib 1.2.11 h1de35cc_3

Aside: I have tried on anaconda 3 and anaconda 2 which give the exact same errors.

I'ld be ever so grateful for some advice to get this to work on a Mac. Thank you so much in advance.

-Kat

vittorione94 commented 4 years ago

@katUTC did you find a solution to this? I have the exact same problem!

(opensim-rl) Vittorios-MBP:OpenSimChallenge vittorio$ conda list
# packages in environment at /Users/vittorio/opt/anaconda3/envs/opensim-rl:
#
# Name                    Version                   Build  Channel
ca-certificates           2019.11.27                    0  
certifi                   2019.11.28               py36_0  
cloudpickle               1.2.2                    pypi_0    pypi
cycler                    0.10.0                   pypi_0    pypi
expat                     2.2.6                h0a44026_0  
future                    0.18.2                   pypi_0    pypi
git                       2.23.0          pl526h6951d83_0  
gym                       0.15.4                   pypi_0    pypi
kiwisolver                1.1.0                    pypi_0    pypi
krb5                      1.16.4               hddcf347_0  
lapack                    3.6.1                ha44fe06_2    conda-forge
libcurl                   7.67.0               h051b688_0  
libcxx                    4.0.1                hcfea43d_1  
libcxxabi                 4.0.1                hcfea43d_1  
libedit                   3.1.20181209         hb402a30_0  
libffi                    3.2.1                h475c297_4  
libgfortran               3.0.1                h93005f0_2  
libiconv                  1.15              h01d97ff_1005    conda-forge
libssh2                   1.8.2                ha12b0ac_0  
matplotlib                3.1.2                    pypi_0    pypi
ncurses                   6.1                  h0a44026_1  
numpy                     1.18.1                   pypi_0    pypi
openblas                  0.2.19                        0    kidzik
opencv-python             4.1.2.30                 pypi_0    pypi
opensim                   4.0.0                   py36_17    kidzik
openssl                   1.1.1d               h1de35cc_3  
osim-rl                   3.0.11                   pypi_0    pypi
pcre                      8.43                 h0a44026_0  
perl                      5.26.2            haec8ef5_1006    conda-forge
pip                       19.3.1                   py36_0  
pyglet                    1.3.2                    pypi_0    pypi
pyparsing                 2.4.6                    pypi_0    pypi
python                    3.6.10               h359304d_0  
python-dateutil           2.8.1                    pypi_0    pypi
readline                  7.0                  h1de35cc_5  
redis                     3.3.11                   pypi_0    pypi
scipy                     1.4.1                    pypi_0    pypi
setuptools                44.0.0                   py36_0  
six                       1.13.0                   pypi_0    pypi
sqlite                    3.30.1               ha441bb4_0  
timeout-decorator         0.4.1                    pypi_0    pypi
tk                        8.6.8                ha441bb4_0  
wheel                     0.33.6                   py36_0  
xz                        5.2.4                h1de35cc_4  
zlib                      1.2.11               h1de35cc_3
hhdqirui commented 2 years ago

Hi! Does anyone have a solution for this problem? I also have this problem.