windows installation

151 views
Skip to first unread message

Doruk ISIK

unread,
Nov 3, 2022, 4:20:41 PM11/3/22
to pysph-users
Hello,

I have been using DualSPHysics for the last 5 years, I have decided to try PySPH as it provides more flexibility.

I am having problems with Windows installation. I have installed all the dependencies, but when I try 

>> pip install --no-cache-dir --no-build-isolation pysph

the installation starts but then throws an error. Please see attached the cmd log. 

I would highly appreciate any help. 

Thanks! 
pysoh_install.txt

Doruk ISIK

unread,
Nov 3, 2022, 9:16:48 PM11/3/22
to pysph-users
I tried using git

After this, I did 

$ python setup.py install

It did proceed to install (see attached file 1), but when I run the tests it returns 30 errors(attached file _test). 
pysph_test.txt
pysoh_install2.txt

A Dinesh

unread,
Nov 3, 2022, 10:25:14 PM11/3/22
to Doruk ISIK, pysph-users
Hi Doruk,

I have done a google search with the above error. Can you try

`pip install wheel`

or

`pip3 install wheel`


Feel free to follow up. Hopefully this solves the problem.

--
You received this message because you are subscribed to the Google Groups "pysph-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pysph-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pysph-users/c502ce29-d133-4de0-8f01-69ca56e1527bn%40googlegroups.com.

Doruk ISIK

unread,
Nov 3, 2022, 11:37:05 PM11/3/22
to pysph-users
Hello,

I tried it with python v3.9, I also tried pip install wheel. 

Unfortunately, I am still getting the exact same errors. 

Doruk ISIK

unread,
Nov 3, 2022, 11:50:03 PM11/3/22
to pysph-users
Please see the attachment for the log. 
pySph_error.txt

Prabhu Ramachandran

unread,
Nov 4, 2022, 5:42:18 AM11/4/22
to pysph...@googlegroups.com
Hi,

Could you try upgrading your MSVC build tools to use the 2022 version?  _Pragma was introduced in C99 which perhaps your version of MSVC does not support.  You can try this Microsoft Visual C++ Redistributable for Visual Studio 2022. For instance see here: https://wiki.python.org/moin/WindowsCompilers

You can find these from https://visualstudio.microsoft.com/downloads/ 

This is what our current CI builds use too: https://github.com/pypr/pysph/actions/runs/3366986277/jobs/5584039141
and they have been working fine so I suspect that this should resolve your issue.

Do let us know if this helps or if there are issues.

HTH.

cheers,
Prabhu

Doruk ISIK

unread,
Nov 4, 2022, 2:10:55 PM11/4/22
to pysph-users
Hello, 
I really appreciate the help! Thank you first of all. 

I did upgrade VS to 2022, and then run python setup.py install, it seems like I did not get the errors I was getting. But, now when I try to 

pysph test 

or 

pysph run anycase.py 

it returns "failed to create process." 

See the installation log in the attachment. 
pySph_error2.txt

Doruk ISIK

unread,
Nov 4, 2022, 9:38:25 PM11/4/22
to pysph-users
Hello again,

So after uninstalling python 11, I had the path pointing to python 11 directory in environment variables. After correcting it, I was able to install it. pysph -test still returns errors (see attachment). However, I was able to run a couple of examples. 

I cannot use the viewer for some reason, but it is no big deal because I was able to import all to Paraview. I have not tested different features yet, I am not sure what is causing some tests to fail. 
errorTest_2.txt

Prabhu Ramachandran

unread,
Nov 4, 2022, 9:57:44 PM11/4/22
to pysph...@googlegroups.com
Glad it worked for you.

The tests all passed, many were skipped because of the configuration but none of them failed, there are some deprecation warnings from pytest that we need to look at but they are currently harmless.

What issue are you running into with the viewer?  You should be able to a pip install mayavi and a pip install pyside2 (or pyqt5) to get that working. The viewer can be quite convenient.

Prabhu

Doruk ISIK

unread,
Nov 4, 2022, 10:17:04 PM11/4/22
to pysph-users
I had mayavi installed but not pyside2. It works now. Thank you so much! 

Doruk

Reply all
Reply to author
Forward
0 new messages