[MacPorts] #43076: Swig version error using Dolfin
#43076: Swig version error using Dolfin -----------------------+-------------------------------- Reporter: mwathen@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: -----------------------+-------------------------------- I updated macports today and it installed the new version of swig. Unfortunately other libraries that I'm using depend on the the previous version but I'm not sure how to go back to this one. Here is the error I get when running my python script Traceback (most recent call last): File "../FEniCS/PoissonExample/poisson.py", line 45, in <module> f = Expression("(pow(x[0]-0.5,2)-4*pow(x[1]-0.5,4))") File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/functions/expression.py", line 582, in __new__ [generic_function_members]) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions additional_declarations)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/expressions.py", line 142, in compile_expression_code code, additional_declarations=additional_declarations) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/jit.py", line 60, in mpi_jit return local_jit(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/compilemodule.py", line 406, in compile_extension_module check_swig_version(compiled_module) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/compilemodule.py", line 252, in check_swig_version (cpp.__swigversion__, compiled_module.swigversion)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/cpp/common.py", line 2296, in dolfin_error return _common.dolfin_error(*args) RuntimeError: *** ------------------------------------------------------------------------- *** DOLFIN encountered an error. If you are not able to resolve this issue *** using the information listed below, you can ask for help at *** *** fenics@fenicsproject.org *** *** Remember to include the error message listed below and, if possible, *** include a *minimal* running example to reproduce the error. *** *** ------------------------------------------------------------------------- *** Error: Unable to compiling extension module. *** Reason: Incompatible swig versions detected. DOLFIN swig version is not the same as extension module swig version: '2.0.11' != '3.0.0' . *** Where: This error was encountered inside compilemodule.py. *** Process: 0 *** *** DOLFIN version: 1.3.0 *** Git changeset: *** ------------------------------------------------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/43076> MacPorts <http://www.macports.org/> Ports system for OS X
#43076: Swig version error using Dolfin ------------------------+---------------------- Reporter: mwathen@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: | ------------------------+---------------------- Changes (by sean@…): * status: new => assigned * owner: macports-tickets@… => sean@… Old description:
I updated macports today and it installed the new version of swig. Unfortunately other libraries that I'm using depend on the the previous version but I'm not sure how to go back to this one. Here is the error I get when running my python script
Traceback (most recent call last): File "../FEniCS/PoissonExample/poisson.py", line 45, in <module> f = Expression("(pow(x[0]-0.5,2)-4*pow(x[1]-0.5,4))") File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/functions/expression.py", line 582, in __new__ [generic_function_members]) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions additional_declarations)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/expressions.py", line 142, in compile_expression_code code, additional_declarations=additional_declarations) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/jit.py", line 60, in mpi_jit return local_jit(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/compilemodule.py", line 406, in compile_extension_module check_swig_version(compiled_module) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/compilemodule.py", line 252, in check_swig_version (cpp.__swigversion__, compiled_module.swigversion)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/cpp/common.py", line 2296, in dolfin_error return _common.dolfin_error(*args) RuntimeError:
*** ------------------------------------------------------------------------- *** DOLFIN encountered an error. If you are not able to resolve this issue *** using the information listed below, you can ask for help at *** *** fenics@fenicsproject.org *** *** Remember to include the error message listed below and, if possible, *** include a *minimal* running example to reproduce the error. *** *** ------------------------------------------------------------------------- *** Error: Unable to compiling extension module. *** Reason: Incompatible swig versions detected. DOLFIN swig version is not the same as extension module swig version: '2.0.11' != '3.0.0' . *** Where: This error was encountered inside compilemodule.py. *** Process: 0 *** *** DOLFIN version: 1.3.0 *** Git changeset: *** -------------------------------------------------------------------------
New description: I updated macports today and it installed the new version of swig. Unfortunately other libraries that I'm using depend on the the previous version but I'm not sure how to go back to this one. Here is the error I get when running my python script {{{ Traceback (most recent call last): File "../FEniCS/PoissonExample/poisson.py", line 45, in <module> f = Expression("(pow(x[0]-0.5,2)-4*pow(x[1]-0.5,4))") File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/functions/expression.py", line 582, in __new__ [generic_function_members]) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions additional_declarations)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/expressions.py", line 142, in compile_expression_code code, additional_declarations=additional_declarations) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/jit.py", line 60, in mpi_jit return local_jit(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/compilemodule.py", line 406, in compile_extension_module check_swig_version(compiled_module) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/compilemodules/compilemodule.py", line 252, in check_swig_version (cpp.__swigversion__, compiled_module.swigversion)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/cpp/common.py", line 2296, in dolfin_error return _common.dolfin_error(*args) RuntimeError: *** ------------------------------------------------------------------------- *** DOLFIN encountered an error. If you are not able to resolve this issue *** using the information listed below, you can ask for help at *** *** fenics@fenicsproject.org *** *** Remember to include the error message listed below and, if possible, *** include a *minimal* running example to reproduce the error. *** *** ------------------------------------------------------------------------- *** Error: Unable to compiling extension module. *** Reason: Incompatible swig versions detected. DOLFIN swig version is not the same as extension module swig version: '2.0.11' != '3.0.0' . *** Where: This error was encountered inside compilemodule.py. *** Process: 0 *** *** DOLFIN version: 1.3.0 *** Git changeset: *** ------------------------------------------------------------------------- }}} -- -- Ticket URL: <https://trac.macports.org/ticket/43076#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43076: Swig version error using Dolfin ------------------------+---------------------- Reporter: mwathen@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: | ------------------------+---------------------- Comment (by sean@…): Looks like the FEniCS ports need to be rev bumped. If someone else can test this, please do so since I might not get to this tonight. -- Ticket URL: <https://trac.macports.org/ticket/43076#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43076: Swig version error using Dolfin ------------------------+---------------------- Reporter: mwathen@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: | ------------------------+---------------------- Comment (by mwathen@…): Replying to [comment:2 sean@…]:
Looks like the FEniCS ports need to be rev bumped. If someone else can test this, please do so since I might not get to this tonight.
Is there any other outputs that you need to be able to fix this? -- Ticket URL: <https://trac.macports.org/ticket/43076#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43076: Swig version error using Dolfin ------------------------+---------------------- Reporter: mwathen@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: py-ffc | ------------------------+---------------------- Changes (by macsforever2000@…): * port: => py-ffc -- Ticket URL: <https://trac.macports.org/ticket/43076#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43076: Swig version error using Dolfin ------------------------+---------------------- Reporter: mwathen@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: py-ffc | ------------------------+---------------------- Comment (by mwathen@…): Replying to [comment:4 macsforever2000@…]: What do you mean by set to py-ffc? -- Ticket URL: <https://trac.macports.org/ticket/43076#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43076: Swig version error using Dolfin ------------------------+---------------------- Reporter: mwathen@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: py-ffc | ------------------------+---------------------- Comment (by sean@…): Replying to [comment:5 mwathen@…]:
Replying to [comment:4 macsforever2000@…]:
What do you mean by set to py-ffc?
It was just a hint for other macports devs. -- Ticket URL: <https://trac.macports.org/ticket/43076#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#43076: Swig version error using Dolfin ------------------------+-------------------- Reporter: mwathen@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: py-ffc | ------------------------+-------------------- Changes (by sean@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r118781. Thanks for the report! -- Ticket URL: <https://trac.macports.org/ticket/43076#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts