You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error during the installation/execution of the command python setup.py bdist_wheel --universal #1
Hello,
I am encountering a problem during the installation/usage of the ScienceMode 4 wrapper on Windows.
Indeed, I created a new Anaconda environment and I am using Python with version 3.9.
First, I downloaded and unzipped the library ScienceMode4_c_library, then copied and pasted this library into the Lib folder of my environment: [])
Next, I downloaded mingw 530_32 from Qt which is located here:
As well as the Visual studio compiler:
I added mingw to my PATH:
Then, I went to the path where the wrapper is located and specifically where the setup.py file is. I entered the command "python setup.py bdist_wheel --universal" and here are the errors I got:
When I run the code P24_example1, it thus gives me this error since the installation of the wheel was not completed :
So, I do not understand what is not working.
I hope you can assist me with resolving these issues, or guide me towards the necessary steps to ensure a successful installation and utilization of the ScienceMode 4 wrapper on Windows. Your assistance would be highly appreciated, and I look forward to your guidance. Thank you very much in advance
Hello @HolgerNahrstaedt, thanks to make the scienceMode library available on python. We succeed to adress the first issue which was due to misplacement of some files. But we are struggling with another one :
Here the library linked "libsmpt.lib" is not built and therefore not found by the compiler. I have visual studio installed so I really don't know from where come the error. I hope you will be abble to help. However I will continue to search deeper.
Thanks!
Hello @HolgerNahrstaedt, thanks to make the scienceMode library available on python. We succeed to adress the first issue which was due to misplacement of some files. But we are struggling with another one : Here the library linked "libsmpt.lib" is not built and therefore not found by the compiler. I have visual studio installed so I really don't know from where come the error. I hope you will be abble to help. However I will continue to search deeper. Thanks!
We are having the same issue, could you plase share with us how you solved it? Thanks!
We did it thanks to the lib that @HolgerNahrstaedt shared. We created the directory lib/ and put the .lib file in it. Otherwise we followed the procedure.
@aceglia@benjicanal Could you clarify how you fixed the first error, "Unable to invoke 'cpp'. Make sure its path was passed correctly"? I followed the given procedure and your steps but I have been unable to correct this error. Thanks!
@ajellett we copied the unzipped file in a folder inside the clone of the repo named lib.
Unzip the correct version of the smpt library and copy the lib into the lib directory. On Windows, build artifacts from ScienceMode4_c_library can be used.
If you are struggling with the installation, we made a python wrapper of the sciencemode library here pyScienceMode where you will find a pre-build wheel (!!! be careful this one work only for python 3.10 and conflict may appear!!!) and you can just follow our installation procedure. It is not the best way but can be a shortcut to start something for you. If you still want build the wheel I will try to help you but even with the same procedure a colleague of mine was not able to build it.
Activity
aceglia commentedon Oct 3, 2023
Hello @HolgerNahrstaedt, thanks to make the scienceMode library available on python. We succeed to adress the first issue which was due to misplacement of some files. But we are struggling with another one :

Here the library linked "libsmpt.lib" is not built and therefore not found by the compiler. I have visual studio installed so I really don't know from where come the error. I hope you will be abble to help. However I will continue to search deeper.
Thanks!
HolgerNahrstaedt commentedon Oct 5, 2023
Please try the libsmpt.lib from https://github.com/ScienceMode/ScienceMode4_c_library/releases/tag/v4.0.0 and copy the missing libsmpt.lib into the lib directory which I have added now to the github repo.
yunacu commentedon Nov 29, 2023
We are having the same issue, could you plase share with us how you solved it? Thanks!
aceglia commentedon Dec 4, 2023
We did it thanks to the lib that @HolgerNahrstaedt shared. We created the directory lib/ and put the .lib file in it. Otherwise we followed the procedure.
ajellett commentedon Dec 17, 2023
@aceglia @benjicanal Could you clarify how you fixed the first error, "Unable to invoke 'cpp'. Make sure its path was passed correctly"? I followed the given procedure and your steps but I have been unable to correct this error. Thanks!
aceglia commentedon Dec 18, 2023
@ajellett we copied the unzipped file in a folder inside the clone of the repo named lib.
Unzip the correct version of the smpt library and copy the lib into the lib directory. On Windows, build artifacts from ScienceMode4_c_library can be used.
If you are struggling with the installation, we made a python wrapper of the sciencemode library here pyScienceMode where you will find a pre-build wheel (!!! be careful this one work only for python 3.10 and conflict may appear!!!) and you can just follow our installation procedure. It is not the best way but can be a shortcut to start something for you. If you still want build the wheel I will try to help you but even with the same procedure a colleague of mine was not able to build it.
ajellett commentedon Dec 18, 2023
@aceglia Thank you so much! Your pyScienceMode is working for me!