简体   繁体   English

在平面名称空间中找不到预期的ImportError dlopen()符号

[英]Importerror dlopen () symbol not found expected in flat namespace

I'm trying to install the SPAMS (SPArse Modeling Software) toolbox for python. 我正在尝试为SPA安装SPAMS (SPArse建模软件)工具箱。 The building and installing seem to be ok, but when I test the installation I get this error: 构建和安装似乎还可以,但是当我测试安装时,出现此错误:

 ImportError: dlopen(/Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so, 2): Symbol not found: _GOMP_critical_end
  Referenced from: /Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so
  Expected in: flat namespace
 in /Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so

I checked all the answers but nothing worked and I'm stuck. 我检查了所有答案,但没有任何效果,被卡住了。 I work on Mac OS X Lion 10.7.5, with virtual env, python 2.7.1, IDE PyCharm 5.0.6. 我在Mac OS X Lion 10.7.5,虚拟环境,python 2.7.1,IDE PyCharm 5.0.6上工作。 The version of gcc is: gcc的版本是:

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

Following the suggestion of the AMICO (Accelerated Microstructure Imaging via Convex Optimization) Python package support forum, it was due to my gcc, which doesn't have openmp by default. 建议的中埃美柯 Python包支持论坛(通过凸优化加速组织成像),这是由于我的gcc,其默认情况下不具有OpenMP的。 Commenting few lines in the setup.py file did the trick. 注释setup.py文件中的几行即可达到目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决ImportError: dlopen(): Symbol not found:.... Expected in: flat namespace - How to solve ImportError: dlopen(): Symbol not found:.... Expected in: flat namespace 符号未找到,预期在:平面命名空间 - Symbol not found, Expected in: flat namespace 找不到符号:_mpfr_acos,应在以下位置输入:平面名称空间 - Symbol not found: _mpfr_acos, Expected in: flat namespace MacOSX + Boost_Python + PyFTGL: - 未找到符号,预期在:flat namespace - MacOSX + Boost_Python + PyFTGL :- Symbol not found, expected in: flat namespace SWIG for C ++,未找到符号:预期用于:平面名称空间 - SWIG for C++, Symbol not found: Expected in: flat namespace “符号未找到/预期位于:平面名称空间”实际上是什么意思? - What does "Symbol not found / Expected in: flat namespace" actually mean? ImportError:dlopen(…):找不到符号:__PyCodecInfo_GetIncrementalDecoder - ImportError: dlopen(…): Symbol not found: __PyCodecInfo_GetIncrementalDecoder 使用 pdftotext 导入错误 - 在平面命名空间中找不到符号 - Import error using pdftotext - symbol not found in flat namespace 为什么我会收到此错误“ImportError: dlopen(...): Symbol not found”? 当我在 python 上导入我的库时 - Why do I get this error “ImportError: dlopen(…): Symbol not found”? when I import my library on python 在 Python 中使用 dlopen 找不到符号 - Symbol not found using dlopen in Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM