Closed haibianshifeng closed 7 years ago
I have updated setup.py. On my linux machine installing using pip install .
works. I have not tested it on windows yet. I will take a look at it in the coming days.
I use anaconda2 to install pypnm.
However, When I run "pip install petsc petsc4py", the errors appear.
https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22
2017-10-09 19:03 GMT+08:00 Karim Khayrat notifications@github.com:
I have updated setup.py. On my linux machine installing using pip install . works. I have not tested it on windows yet. I will take a look at it in the coming days.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khayratk/pypnm/issues/1#issuecomment-335126212, or mute the thread https://github.com/notifications/unsubscribe-auth/ASXYgl1N438tNZlOte99ZV1K1347LvUIks5sqf2MgaJpZM4PIYlh .
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
Many thanks for your help.
I had install the pypnm on my ubuntu 14.04. I run the example file.
However, the error appear as following "Importerror: no name pytrilinos"
How to solve it?
https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22
2017-10-10 19:35 GMT+08:00 Mailtrack Reminder reminders@mailtrack.io:
⚠️ Your email to reply+0125d8822a90632bbe5f12500252a5 1186faae583f132f7d92cf0000000115f3198c92a169ce0f274009@reply.github.com has not been opened yet. Be reminded in 24H https://mailtrack.io/reauth?url=https%3A%2F%2Fmailtrack.io%2Freminder%2Fschedule%3Fid%3D986e91adf74afe22616e69f34a4aaff4d4d36bb0%26delay%3D1_DAY&login_hint=liuleigbd%40gmail.com or 48H https://mailtrack.io/reauth?url=https%3A%2F%2Fmailtrack.io%2Freminder%2Fschedule%3Fid%3D986e91adf74afe22616e69f34a4aaff4d4d36bb0%26delay%3D2_DAYS&login_hint=liuleigbd%40gmail.com (disable https://mailtrack.io/reauth?url=https%3A%2F%2Fmailtrack.io%2Freminder%2Fdisable%3Fid%3D986e91adf74afe22616e69f34a4aaff4d4d36bb0&login_hint=liuleigbd%40gmail.com)
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
Which example file did you run? The multiscale example one requires PyTrilinos. The others currently should not. Unfortunately there is no pip installation possible for the PyTrilinos package. One has to download Trilinos and compile it with PyTrilinos enabled. Instructions for this can be found at https://trilinos.org/packages/pytrilinos/pytrilinos-faq/.
All examples are successful except multiscale example. I installed Trilions but failed.
I am solving the problems!
https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22
2017-10-10 22:13 GMT+08:00 Karim Khayrat notifications@github.com:
Which example file did you run? The multiscale example one requires PyTrilinos. The others currently should not. Unfortunately there is no pip installation possible for the PyTrilinos package. One has to download Trilinos and compile it with PyTrilinos enabled. Instructions for this can be found at https://trilinos.org/packages/pytrilinos/pytrilinos-faq/.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khayratk/pypnm/issues/1#issuecomment-335486248, or mute the thread https://github.com/notifications/unsubscribe-auth/ASXYgmuk5TQstce7GGJbAjWYILlWIHz7ks5sq3umgaJpZM4PIYlh .
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
I do not know how to install trilinos correctly, so the PyTrilinos can work.
https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22 <#>
2017-10-10 22:18 GMT+08:00 刘磊 liuleigbd@gmail.com:
All examples are successful except multiscale example. I installed Trilions but failed.
I am solving the problems!
https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22
2017-10-10 22:13 GMT+08:00 Karim Khayrat notifications@github.com:
Which example file did you run? The multiscale example one requires PyTrilinos. The others currently should not. Unfortunately there is no pip installation possible for the PyTrilinos package. One has to download Trilinos and compile it with PyTrilinos enabled. Instructions for this can be found at https://trilinos.org/packages/pytrilinos/pytrilinos-faq/.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khayratk/pypnm/issues/1#issuecomment-335486248, or mute the thread https://github.com/notifications/unsubscribe-auth/ASXYgmuk5TQstce7GGJbAjWYILlWIHz7ks5sq3umgaJpZM4PIYlh .
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288 <+86%20156%200328%209288>
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
Dear sir,
The had installed the PyTrilinos on my system. Then I used the command "from PyTrilinos import Epetra " to test the PyTrilinos, it works well.
However, the example quasistatic_flow_solvers work well before the PyTrilinos, after the PyTrilinos installed, All of the example can not run.
The error as following:( see the picture at attachment)
llei@llei-ThinkPad-Edge:~/pypnm/examples/quasistatic_flow_solver$ sudo
python quasistatic_drainage_imbibition.py
RuntimeError: module compiled against API version 0xb but this version of
numpy is 0x9
Traceback (most recent call last):
File "quasistatic_drainage_imbibition.py", line 3, in
I want to know the reason why it do not work.
Many Thanks for your help.
I am looking forward your letter. https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22 <#>
2017-10-11 22:21 GMT+08:00 Mailtrack Reminder reminders@mailtrack.io:
⚠️ Your email to reply+0125d882fcc7662fd6fd6117eea0a3 58f26c21ee67dfca5992cf0000000115f497a692a169ce0f274009@reply.github.com has not been opened yet. Be reminded in 24H https://mailtrack.io/reauth?url=https%3A%2F%2Fmailtrack.io%2Freminder%2Fschedule%3Fid%3Dccdeccd604f202c7a7c358625f502653d9f8dd47%26delay%3D1_DAY&login_hint=liuleigbd%40gmail.com or 48H https://mailtrack.io/reauth?url=https%3A%2F%2Fmailtrack.io%2Freminder%2Fschedule%3Fid%3Dccdeccd604f202c7a7c358625f502653d9f8dd47%26delay%3D2_DAYS&login_hint=liuleigbd%40gmail.com (disable https://mailtrack.io/reauth?url=https%3A%2F%2Fmailtrack.io%2Freminder%2Fdisable%3Fid%3Dccdeccd604f202c7a7c358625f502653d9f8dd47&login_hint=liuleigbd%40gmail.com)
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
Hi,
RuntimeError: module compiled against API version 0xb but this version of numpy is 0x9
This appears to be unrelated to the code, and related to your setup.
Try to update numpy as discussed here: https://stackoverflow.com/questions/33859531/runtimeerror-module-compiled-against-api-version-a-but-this-version-of-numpy-is
llei@llei-ThinkPad-Edge:~/pypnm/examples/multiscale_solver$ sudo python
fixed_sources_sinks.py
Traceback (most recent call last):
File "fixed_sources_sinks.py", line 9, in
https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22 <#>
2017-10-18 20:16 GMT+08:00 Karim Khayrat notifications@github.com:
Hi,
RuntimeError: module compiled against API version 0xb but this version of numpy is 0x9
This appears to be unrelated to the code, and related to your setup.
Try to update numpy as discussed here: https://stackoverflow.com/questions/33859531/runtimeerror-module-compiled- against-api-version-a-but-this-version-of-numpy-is
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khayratk/pypnm/issues/1#issuecomment-337571291, or mute the thread https://github.com/notifications/unsubscribe-auth/ASXYgqpLbSQkggWUi8EGHyQGrSUCZY_kks5stewYgaJpZM4PIYlh .
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
The reason why ‘RuntimeError: module compiled against API version 0xb but this version of numpy is 0x9’ appears is that two numpy install on system. And I had uninstalled one of them.
However, when I run the example,the same error appears like this:
llei@llei-ThinkPad-Edge:~/pypnm/examples/multiscale_solver$ sudo python
fixed_sources_sinks.py
Traceback (most recent call last):
File "fixed_sources_sinks.py", line 9, in
https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22 <#>
2017-10-18 20:30 GMT+08:00 刘磊 liuleigbd@gmail.com:
llei@llei-ThinkPad-Edge:~/pypnm/examples/multiscale_solver$ sudo python fixed_sources_sinks.py Traceback (most recent call last): File "fixed_sources_sinks.py", line 9, in
from pypnm.multiscale.multiscale_unstructured import MultiScaleSimUnstructured File "/usr/local/lib/python2.7/dist-packages/pypnm-0.1-py2.7. egg/pypnm/multiscale/multiscale_unstructured.py", line 6, in from pypnm.ams.msrsb import MSRSB File "/usr/local/lib/python2.7/dist-packages/pypnm-0.1-py2.7.egg/pypnm/ams/msrsb.py", line 4, in from PyTrilinos import Epetra, EpetraExt, IFPACK, AztecOO File "/home/llei/trilinos-install/lib/python2.7/site-packages/PyTrilinos/EpetraExt.py", line 258, in from . import Teuchos File "/home/llei/trilinos-install/lib/python2.7/site-packages/PyTrilinos/Teuchos.py", line 4397, in class DefaultComm: File "/home/llei/trilinos-install/lib/python2.7/site-packages/PyTrilinos/Teuchos.py", line 4399, in DefaultComm defaultComm = MpiComm(mpiCommunicator) File "/home/llei/trilinos-install/lib/python2.7/site-packages/PyTrilinos/Teuchos.py", line 4298, in init__ raise AttributeError("No constructor defined") AttributeError: No constructor defined https://mailtrack.io/ Sent with Mailtrack https://mailtrack.io/install?source=signature&lang=en&referral=liuleigbd@gmail.com&idSignature=22 <#m-1168125572298691670>
2017-10-18 20:16 GMT+08:00 Karim Khayrat notifications@github.com:
Hi,
RuntimeError: module compiled against API version 0xb but this version of numpy is 0x9
This appears to be unrelated to the code, and related to your setup.
Try to update numpy as discussed here: https://stackoverflow.com/questions/33859531/runtimeerror- module-compiled-against-api-version-a-but-this-version-of-numpy-is
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khayratk/pypnm/issues/1#issuecomment-337571291, or mute the thread https://github.com/notifications/unsubscribe-auth/ASXYgqpLbSQkggWUi8EGHyQGrSUCZY_kks5stewYgaJpZM4PIYlh .
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
Hello, This error, which is related to PyTrilinos, has been discussed here: https://trilinos.org/pipermail/trilinos-users/2017-January/005758.html. Seems there is an incompatibility with a swig library version.
Many thanks for your help.
The problems has been solved by using swig 3.0.10. This error is amazing.
https://mailtrack.io/ Sent with Mailtrack https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality <#>
2017-10-19 17:33 GMT+08:00 Karim Khayrat notifications@github.com:
Hello, This error, which is related to PyTrilinos, has been discussed here: https://trilinos.org/pipermail/trilinos-users/2017-January/005758.html. Seems there is an incompatibility with a swig library version.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khayratk/pypnm/issues/1#issuecomment-337853635, or mute the thread https://github.com/notifications/unsubscribe-auth/ASXYgv4dv_DU9WK6ozuLZvPOd_Sc19XZks5stxdQgaJpZM4PIYlh .
-- Lei Liu, PhD Candidate School of University Engineering, China University of Petroleum No. 66 , Changjiang West Road, Huangdao District, Qingdao, China Phone: +86 15603289288
I use Anaconda2 at Windows 7 64 bit.
When I run setup.py, the error appears.
The content of error are as following:
runfile('C:/Users/LeiL/Desktop/pypnm/setup.py', wdir='C:/Users/LeiL/Desktop/pypnm') Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/LeiL/Desktop/pypnm/setup.py', wdir='C:/Users/LeiL/Desktop/pypnm')
File "D:\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 880, in runfile execfile(filename, namespace)
File "D:\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 87, in execfile exec(compile(scripttext, filename, 'exec'), glob, loc)
File "C:/Users/LeiL/Desktop/pypnm/setup.py", line 1, in
from distutils.core import setup, find_packages
ImportError: cannot import name find_packages