-
Notifications
You must be signed in to change notification settings - Fork 51
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 OMSimulator pip package #1285
Conversation
@arun3688 was this change tested on Windows? I am running OMSimulator from within OMEdit v1.24.0-dev-230-g20a061263e (64-bit), and on simulating an ssp, I get
It looks like that path is off by one level, there is one This was working in OM 1.23.1 |
@bilderbuchi i did a quick test in OMEdit and it works for me this is my omc version |
@bilderbuchi i think you are somehow having the old version of omsimulator, the current version of omsimulator checks for 3 directories up see the below code in
please make sure in your installed path |
No, I have ## look for dll in the OpenModelica top level directory or OMSimulator stand alone directory
if not os.path.exists(omslib):
if os.name == 'nt': # Windows
omslib = os.path.join(dirname, "../../bin", "libOMSimulator.dll")
dllDir = os.add_dll_directory(os.path.dirname(omslib))
dllSearchPath = True
else:
# attempt to fix #8163 on Linux
omslib = os.path.join(dirname, "..", "libOMSimulator.dll") I installed with the nightly installer from today, on Windows 10. I see some templating going on in OMSimulator/src/OMSimulatorPython/capi.py Line 15 in 6f4ecda
I'm guessing this is replaced during packaging the pip package, building the OMEdit installer or at install time? Something going wrong with OMSIMULATOR_PYTHON_RELATIVE_DLL_DIR , maybe here: OMSimulator/src/OMSimulatorPython/CMakeLists.txt Lines 13 to 21 in 6f4ecda
It looks to me like OPENMODELICA_NEW_CMAKE_BUILD could not be set when generating the nightly installer that I used?
|
@bilderbuchi Aha i see that i have complied omc via cmake and i guess the nightly builds still uses the |
Yes, that's what I did. Thanks! |
Should I create a separate ticket for tracking this, does that help you? |
@bilderbuchi it would be good if you can create a seperate ticket |
Related Issues
#1283
Purpose
This PR fixes the
OMSimulator pip package
according to the new cmake build system.TODO