Skip to content

Error during the installation/execution of the command python setup.py bdist_wheel --universal #1

Open

Description

@benjicanal

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: [])
Lib_dans_lib

Next, I downloaded mingw 530_32 from Qt which is located here:
image

As well as the Visual studio compiler:
image

I added mingw to my PATH:
image

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:
image
image
image

When I run the code P24_example1, it thus gives me this error since the installation of the wheel was not completed :
image

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

Additional information:
Python = 3.9 / cffi = 1.15.1 / pycparser = 2.21
Operating System: Windows 11

Activity

  1. aceglia commented on Oct 3, 2023

    @aceglia

    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 :
    image
    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!

  2. HolgerNahrstaedt commented on Oct 5, 2023

    @HolgerNahrstaedt
    Contributor

    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.

  3. yunacu commented on Nov 29, 2023

    @yunacu

    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 : image 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!

  4. aceglia commented on Dec 4, 2023

    @aceglia

    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.

  5. ajellett commented on Dec 17, 2023

    @ajellett

    @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!

  6. aceglia commented on Dec 18, 2023

    @aceglia

    @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.

  7. ajellett commented on Dec 18, 2023

    @ajellett

    @aceglia Thank you so much! Your pyScienceMode is working for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions