-
Notifications
You must be signed in to change notification settings - Fork 330
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
DLL Load Fail, not working on Conda, Python 3.8, 3.10, 3.11 #3497
Comments
The instructions you followed can only work for python version 3.8 since that's the version of python that the application is built against, if you intend to use OpenSim in any other setting. I strongly recommend you use the conda package as it is self contained. Python 3.8 changed how path is handled, so to avoid the changes to the PATH, PYTHONPATH and all the variations that can and will change the behavior between python 3.7, 3.8, and later versions, please use Conda. If that resolves your problem please close this issue, otherwise describe the behavior in conda environment WITHOUT setting either Path or Pythonpath to any other OpenSim installation. |
Hi @BullAJ, this is a known issue (#3450, for your reference @aymanhab). As a temporary workaround, you can call the following code at the top of any Python scripts you want to run:
Where |
Thanks @nickbianco but the issue you pointed to was specific to having a local build so I'm not sure it applies here. Would be good to sort that out so we can either fix documentation or the package if needed. |
@aymanhab, the issue will occur why you try to manually install any OpenSim install into a conda environment, whether it's from a local build or downloaded from SimTK.org. If a conda environment is detected, the
This works fine for the conda package builds of OpenSim, but breaks any manual local installs. |
@nickbianco The branch used to build conda packages does not have this line as it knows its target environment
So, indeed a local install from master or from a prebuilt application will exhibit the issue but a proper direct conda install from anaconda.org will not. Appreciate if you can confirm @BullAJ |
Please excuse me as I am not as familiar with Conda, but looking back on your replies and the documentation made me realize I was previously only doing manual install. Do please correct my understanding if my explanation below is wrong. I did manage to get Python 3.8 via manual install ( I am attempting the conda install with Python 3.10 now. |
To clarify, the manual install was with downloaded binaries from simtk.org. Also, can confirm conda package install does not work for me in the conda base environment, for whatever reason. I get the same behavior as in the original post. Would I need to uninstall somehow in order to get the conda package to work? I would prefer the conda package if possible |
@BullAJ the title of the issue mentioned Conda so I assumed that it was your goal environment. As such my suggestion was to remove changes made to path, pythonpath and install using the one line install as described here The page above has windows builds up to python 3.9 so you should test with python 3.9, I'm uploading 3.10 and 3.11 builds shortly. My worry about your environment is that it has been polluted with many attempts at installation in the base environment that it's hard to start clean to assess. I'd remove all opensim packages from your base environment before you start. |
Packages for 310, 311 on windows are there now. I look forward to hear how it goes. |
Conda package installed just fine on Python 3.10. I won't bother with 3.11 as Conda does not build for that yet, that I have seen. Marking as closed. Thank you for the help! |
I get this error after following the instructions to install OpenSim 4.4 for python, here
I have also viewed similar issues that have since been resolved, but none of them were able to help me. Some were not relevant, and others I got a different outcome. I have tried with conda using the provided environment with Python 3.8, the base conda environment with Python 3.10, and without a conda environment on Python 3.11. The same error occurs each time.
Perhaps there is something I am missing when installing? Is this a case where I should try uninstalling Osim altogether? What version of Python is Opensim 4.4 meant for?
Thank you in advance!
The text was updated successfully, but these errors were encountered: