#48072: dolfin @1.5.0_2 command "import dolfin" fails in python ------------------------+-------------------------------- Reporter: hgonzale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: dolfin ------------------------+-------------------------------- Running the following command: {{{ % python -c "import dolfin" }}} generates the following error: {{{ Traceback (most recent call last): File "<string>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/__init__.py", line 16, in <module> from . import cpp File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/cpp/__init__.py", line 42, in <module> exec("from . import %s" % module_name) File "<string>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/cpp/common.py", line 132, in <module> __pythonversion__ = "%d.%d.%d"%(tuple(map(int, [tmp[2], tmp[4], tmp[6]]))) ValueError: invalid literal for int() with base 10: 'a' }}} I'm using python version 2.7.10, installed using Macports. -- Ticket URL: <https://trac.macports.org/ticket/48072> MacPorts <https://www.macports.org/> Ports system for OS X