Opened 8 years ago

Last modified 8 years ago

#52960 assigned defect

Magicspp python API shared object file not loadable by python

Reported by: Marston Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc:
Port: magicspp

Description (last modified by larryv (Lawrence Velázquez))

Hi,

I recently installed magicspp via macport. I installed it as a variant of the CDO package as well as by itself (just for testing). Magics has a python API and should be callable from python 2.7. In ipython I tested the installation and _Magics.so failed to load. This occurs no matter if Magics is installed as a variant or stand-alone.

ls /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Magics/
_Magics.so*  __init__.py  macro.py     metgram.py
from Magics.macro import *
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-6b74c778760f> in <module>()
----> 1 from Magics.macro import *
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Magics/__init__.py in <module>()
     21         except ImportError:
     22             return importlib.import_module('_Magics')
---> 23     _Magics = swig_import_helper()
     24     del swig_import_helper
     25 elif _swig_python_version_info >= (2, 6, 0):
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Magics/__init__.py in swig_import_helper()
     20             return importlib.import_module(mname)
     21         except ImportError:
---> 22             return importlib.import_module('_Magics')
     23     _Magics = swig_import_helper()
     24     del swig_import_helper
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.pyc in import_module(name, package)
     35             level += 1
     36         name = _resolve_name(name[level:], package, level)
---> 37     __import__(name)
     38     return sys.modules[name]
ImportError: No module named _Magics

There is a newer version of Magicspp available at by the developer but this is not yet in the Macport archive.

Change History (3)

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

Description: modified (diff)
Owner: set to tenomoto
Port: magicspp added
Status: newassigned

comment:2 Changed 8 years ago by Marston

Correction to the text: "...and _Magics.so failed to lead." Should be "and _Magics.so failed to load".

comment:3 Changed 8 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Note: See TracTickets for help on using tickets.