Opened 9 years ago

Closed 9 years ago

#48072 closed defect (fixed)

dolfin @1.5.0_2 command "import dolfin" fails in python

Reported by: hgonzale (Humberto Gonzalez) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: dolfin

Description

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.

Change History (2)

comment:1 Changed 9 years ago by larryv (Lawrence Velázquez)

Cc: sean@… openmaintainer@… removed
Owner: changed from macports-tickets@… to sean@…

comment:2 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: newclosed

dolfin was updated to 1.6.0 in r140111 so that hopefully fixes this issue.

Note: See TracTickets for help on using tickets.