Python 3 support
It seems that currently mshr only works with Python 2 but other parts of FEniCS already support Python 3.
Comments (6)
-
-
reporter @benjamik Thanks for the fast response. It was my problem. I confirm that mshr runs in Python 3 without any problem once I specify python3 to cmake.
My mistake was that I thought the environment variables
FENICS_PYTHON_MAJOR_VERSION
andFENICS_PYTHON_MINOR_VERSION
used in FEniCS installation scripts elsewhere were respected by cmake but in this case it was not. In fact these variables were defined for something else. -
reporter - changed status to invalid
There was no problem with python 3 support.
-
Hello, when I run a code with 'import mshr' in python 3 it doesn't find mshr. I'm trying to fix it but I can not get into the link you wrote: http://fenicsproject.org:8010/builders/mshr-master-trusty-amd64-py3
May I need to belong this project? How can I joint them? Thank you!
-
This link is outdated now. How did you install mshr?
-
I installed fenics. I did: $sudo apt-get install python3-dolfin That was ok, but It is strange because if I import mshr in python 2 it runs ok, but it doesn't in python 3.
- Log in to comment
Do you have problem building or is it something else?
We have a buildbot that builds a py3 version (here: http://fenicsproject.org:8010/builders/mshr-master-trusty-amd64-py3 ), but maybe there are issues it doesn't catch?