-
Notifications
You must be signed in to change notification settings - Fork 25
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
Installation Issue- Building Wheel for PDSim error #89
Comments
You need to install a compiler as described in the docs, and also in the error message. Did you do a git clone? That is required to make sure all the dependencies are properly included. |
Thank you very much for the response. I have installed TortuiseGit and followed this instructions: "Option A: If you installed TortoiseGit, In Windows Explorer, go to a folder where you want to put the source code for PDSim. Right-click and select “Git Clone…”. Use the URL https://github.com/ibell/pdsim." |
Looks like git is not available at the terminal, which is ok, but it is good idea to add git to the path in general. Did you install a compiler? |
I have installed Minconda and Visual Studio toolbox |
Which Visual Studio? |
Microsoft Visual C++ 2015-2019 Redistributed (x86) - 14.28.29325 |
That's not what you need - see the link in the error message: https://visualstudio.microsoft.com/visual-cpp-build-tools/ |
I have both of them installed; the Visual Studio community 2022 (2) and Visual Studio Build Tools 2022 |
Hmm, that should be sufficient. Can you do instead: |
I have submitted the command in the cmd terminal window I got an: |
Right, you need to do: |
I followed the same process with all the uninstalled packages CoolProp and numpy. Eventually, when I submitted the python setup.py build? |
How about instead : |
Just tested on my windows machine and wheel building is fine |
FWIW, I have installed VS community 2022 |
still getting the same error |
Should I do the installation form VS or terminal should be fine ? |
That's an interesting idea. Can you try that? In principle terminal should be ok, but it will depend on the details of how you installed. |
I tried to run it thou VS build tool terminal, and from the VS terminal itself. it resulted in the same error. Is it possible that I should change something in the setup file to the pyproject file? |
Can you post the entire terminal output from your command to the error? Not sure it will be illuminating, but I don't have any great ideas at present. |
Good morning, the massage is Obtaining file:///C:/Users/tolik/pdsim × Building editable for PDSim (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. |
Can you post the output when you run from a Visual Studio shell? It seems like your config is messed up on your computer if python cannot find |
Ian, thank you very much for looking into this; here is the error message from Visual Studio from the power shell; the code that I ran was "pip install -e ." PS C:\Users\tolik\pdsim> pip install -e . × Building editable for PDSim (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. |
I am running out of ideas, it should not behave like this. In your developer prompt, can you do this:
|
Hey Ian, I was able to install and run the PDSim at the end, but the problem was that it couldn't build the wheels and finish the installation. The missing step was to go into the Visual studio build tools and install the C++ package (it is a two-step installation process that was needed). Thank you very much for your time and for looking into it. Looking forward to get some results out of the software Have a great day |
That is great to hear. I somehow thought that the C++ tooling was installed by default so I didn't think to mention that. Good to know. |
Dear community,
I am trying to Install PDSim to work on my machine using Anaconda interpreter and PyCharm. I get the following error massage when I do the "pip install -e ." command.
I verified that I have the required packages and that they are updated, but the error remains.
Would appreciate any advice on how to resolve the matter.
Thank you very much for helping
" Building wheel for PDSim (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for PDSim (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Error: Command '['git', 'rev-parse', 'HEAD']' returned non-zero exit status 128.
Unable to extract the git revision, set to placeholder
Error: Command '['git', 'rev-parse', '--abbrev-ref', 'HEAD']' returned non-zero exit status 128.
Unable to extract the git branch, set to placeholder
to be written to init.py:
version = '2.14'
git_revision = '????'
git_branch = '????'
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PDSim
Failed to build PDSim
ERROR: Could not build wheels for PDSim, which is required to install pyproject.toml-based projects
"
The text was updated successfully, but these errors were encountered: