[MacPorts] #47926: py34-stfio import error
#47926: py34-stfio import error --------------------------+-------------------------------- Reporter: rrifkin600@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: py34-stfio --------------------------+-------------------------------- In python 3.4, importing the library stfio causes the following error: $ python Python 3.4.3 (default, May 25 2015, 18:48:21) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import stfio Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/__init__.py", line 6, in <module> from .stfio import * File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/stfio.py", line 33, in <module> _stfio = swig_import_helper() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/stfio.py", line 29, in swig_import_helper _mod = imp.load_module('_stfio', fp, pathname, description) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/imp.py", line 243, in load_module return load_dynamic(name, filename, file) ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/_stfio.so, 2): Symbol not found: __ZNKSt3__19basic_iosIcNS_11char_traitsIcEEE5widenEc Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/libstfio.dylib Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/libstfio.dylib
I need to use this library so I would appreciate your help very much. Thank you very much, Robert -- Ticket URL: <https://trac.macports.org/ticket/47926> MacPorts <https://www.macports.org/> Ports system for OS X
#47926: py34-stfio import error ---------------------------+------------------------ Reporter: rrifkin600@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py34-stfio | ---------------------------+------------------------ Changes (by ryandesign@…): * cc: rrifkin600@… (removed) * owner: macports-tickets@… => christsc@… Old description:
In python 3.4, importing the library stfio causes the following error:
$ python Python 3.4.3 (default, May 25 2015, 18:48:21) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import stfio Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/__init__.py", line 6, in <module> from .stfio import * File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/stfio.py", line 33, in <module> _stfio = swig_import_helper() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/stfio.py", line 29, in swig_import_helper _mod = imp.load_module('_stfio', fp, pathname, description) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/imp.py", line 243, in load_module return load_dynamic(name, filename, file) ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/_stfio.so, 2): Symbol not found: __ZNKSt3__19basic_iosIcNS_11char_traitsIcEEE5widenEc Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/libstfio.dylib Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/libstfio.dylib
I need to use this library so I would appreciate your help very much.
Thank you very much, Robert
New description: In python 3.4, importing the library stfio causes the following error: {{{ $ python Python 3.4.3 (default, May 25 2015, 18:48:21) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import stfio Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/__init__.py", line 6, in <module> from .stfio import * File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/stfio.py", line 33, in <module> _stfio = swig_import_helper() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/stfio.py", line 29, in swig_import_helper _mod = imp.load_module('_stfio', fp, pathname, description) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/imp.py", line 243, in load_module return load_dynamic(name, filename, file) ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/_stfio.so, 2): Symbol not found: __ZNKSt3__19basic_iosIcNS_11char_traitsIcEEE5widenEc Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/libstfio.dylib Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/libstfio.dylib }}}
I need to use this library so I would appreciate your help very much. Thank you very much, Robert -- -- Ticket URL: <https://trac.macports.org/ticket/47926#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47926: py34-stfio import error ---------------------------+------------------------ Reporter: rrifkin600@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py34-stfio | ---------------------------+------------------------ Comment (by ryandesign@…): Yes, I can reproduce that issue on my Yosemite machine. -- Ticket URL: <https://trac.macports.org/ticket/47926#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47926: py34-stfio import error ---------------------------+------------------------ Reporter: rrifkin600@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py34-stfio | ---------------------------+------------------------ Comment (by christsc@…): Seems to be related to the C++ library that is being used. The problem disappears when clang is replaced with g++-mp-4.9. -- Ticket URL: <https://trac.macports.org/ticket/47926#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47926: py34-stfio import error ---------------------------+------------------------ Reporter: rrifkin600@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py34-stfio | ---------------------------+------------------------ Comment (by christsc@…): Replying to [comment:3 ryandesign@…]:
Yes, I can reproduce that issue on my Yosemite machine.
What's the right way to address this issue? Should I set `configure.compiler` to `macports-gcc`? -- Ticket URL: <https://trac.macports.org/ticket/47926#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47926: py34-stfio import error ---------------------------+------------------------ Reporter: rrifkin600@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py34-stfio | ---------------------------+------------------------ Comment (by christsc@…): This problem has mysteriously disappeared on my system after doing {{{ sudo port selfupdate sudo port upgrade -u outdated sudo port -n upgrade --force py27-stfio py34-stfio }}} Can anyone else confirm? -- Ticket URL: <https://trac.macports.org/ticket/47926#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47926: py34-stfio import error ---------------------------+------------------------ Reporter: rrifkin600@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py34-stfio | ---------------------------+------------------------ Comment (by larryv@…): I still get an error, but it’s probably unrelated to this ticket. {{{ % python3.4 Python 3.4.3 (default, May 25 2015, 21:55:17) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import stfio Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/__init__.py", line 7, in <module> from . import stfio_plot as plot File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/stfio_plot.py", line 211, in <module> class StandardAxis(Subplot): NameError: name 'Subplot' is not defined }}}
Perhaps the original issue was caused by the faulty HDF5 1.8.15 release that was fixed in r137065? GDAL had an issue that has similarly cleared up (#47758). -- Ticket URL: <https://trac.macports.org/ticket/47926#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47926: py34-stfio import error ---------------------------+------------------------ Reporter: rrifkin600@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py34-stfio | ---------------------------+------------------------ Comment (by christsc@…): Replying to [comment:8 larryv@…]:
I still get an error, but it’s probably unrelated to this ticket. {{{ % python3.4 Python 3.4.3 (default, May 25 2015, 21:55:17) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import stfio Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/__init__.py", line 7, in <module> from . import stfio_plot as plot File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/stfio/stfio_plot.py", line 211, in <module> class StandardAxis(Subplot): NameError: name 'Subplot' is not defined }}}
Thanks for the report - I'll have to add py${python.version}-matplotlib to the dependencies
Perhaps the original issue was caused by the faulty HDF5 1.8.15 release that was fixed in r137065? GDAL had an issue that has similarly cleared up (#47758).
Yes that seems likely. -- Ticket URL: <https://trac.macports.org/ticket/47926#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#47926: py34-stfio import error ---------------------------+------------------------ Reporter: rrifkin600@… | Owner: christsc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: py34-stfio | ---------------------------+------------------------ Changes (by larryv@…): * status: new => closed * resolution: => fixed Comment: Okay, we’ll call this fixed by r137065. -- Ticket URL: <https://trac.macports.org/ticket/47926#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts