[MacPorts] #51882: dolfin ImportError: No module named _common
#51882: dolfin ImportError: No module named _common --------------------------------+-------------------------------- Reporter: sarah_frank@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: dolfin importerror | Port: dolfin --------------------------------+-------------------------------- After installing dolfin through macports, I am unable to use it successfully. I get an error after importing: {{{
import dolfin Traceback (most recent call last): File "<stdin>", 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 25, in <module> _common = swig_import_helper() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/dolfin/cpp/common.py", line 24, in swig_import_helper return importlib.import_module('_common') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) ImportError: No module named _common }}}
It appeared that someone else had similar problems but it looked like they uninstalled and reinstalled macports to fix, but after trying a few different things and then uninstalling and reinstalling macports I am still getting the same error message. -- Ticket URL: <https://trac.macports.org/ticket/51882> MacPorts <https://www.macports.org/> Ports system for OS X
#51882: dolfin ImportError: No module named _common ----------------------------+-------------------------------- Reporter: sarah_frank@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: dolfin importerror Port: dolfin | ----------------------------+-------------------------------- Changes (by sean@…): * status: new => assigned * owner: macports-tickets@… => sean@… Comment: I'm about to push an updated version of dolfin so hopefully that will fix this. -- Ticket URL: <https://trac.macports.org/ticket/51882#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51882: dolfin ImportError: No module named _common ----------------------------+---------------------- Reporter: sarah_frank@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: dolfin | ----------------------------+---------------------- Changes (by mf2k@…): * keywords: dolfin importerror => -- Ticket URL: <https://trac.macports.org/ticket/51882#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51882: dolfin ImportError: No module named _common ----------------------------+---------------------- Reporter: sarah_frank@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: dolfin | ----------------------------+---------------------- Comment (by sean@…): Updated in r150520. Can you try to update and test? -- Ticket URL: <https://trac.macports.org/ticket/51882#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51882: dolfin ImportError: No module named _common ----------------------------+---------------------- Reporter: sarah_frank@… | Owner: sean@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: dolfin | ----------------------------+---------------------- Comment (by sarah_frank@…): I updated and I am no longer getting the ImportError. Thanks for your help! Replying to [comment:3 sean@…]:
Updated in r150520. Can you try to update and test?
-- Ticket URL: <https://trac.macports.org/ticket/51882#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51882: dolfin ImportError: No module named _common ----------------------------+-------------------- Reporter: sarah_frank@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: dolfin | ----------------------------+-------------------- Changes (by sean@…): * status: assigned => closed * resolution: => fixed Comment: Yay! -- Ticket URL: <https://trac.macports.org/ticket/51882#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#51882: dolfin ImportError: No module named _common ----------------------------+---------------------- Reporter: sarah_frank@… | Owner: sean@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: dolfin | ----------------------------+---------------------- Changes (by sarah_frank@…): * status: closed => reopened * resolution: fixed => Comment: Hello! I just updated my macports because I was having trouble installing py27-slepc4py but in the process there was a problem with rebuilding dolfin. I uninstalled dolfin, ran port upgrade outdated, and now when I try to reinstall dolfin I get the following error: {{{ Error: org.macports.build for port dolfin returned: command execution failed }}} I don't really understand the log file but I thought this part may be helpful: {{{ :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_dolfin/dolfin/work/dolfin-2016.1.0/build' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_dolfin/dolfin/work/dolfin-2016.1.0/build" && /usr/bin/make -j4 -w all VERBOSE=ON :info:build Exit code: 2 :error:build org.macports.build for port dolfin returned: command execution failed :debug:build Error code: CHILDSTATUS 19770 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" }}} -- Ticket URL: <https://trac.macports.org/ticket/51882#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#51882: dolfin ImportError: No module named _common ----------------------------+-------------------- Reporter: sarah_frank@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: dolfin | ----------------------------+-------------------- Changes (by mf2k@…): * status: reopened => closed * resolution: => fixed Comment: That is an entirely different issue and so you should open a new ticket. Also, without the complete main.log, I don't think sean will be able to help you. -- Ticket URL: <https://trac.macports.org/ticket/51882#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts