Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda installation under Python 3.6 on Mac #541

Closed
ghareth opened this issue Jun 12, 2018 · 2 comments
Closed

Conda installation under Python 3.6 on Mac #541

ghareth opened this issue Jun 12, 2018 · 2 comments

Comments

@ghareth
Copy link

ghareth commented Jun 12, 2018

Also reported on tpaviot/oce#692. Moved issue as suggested by @aothms

I have been running pythonocc successfully installed using conda under Python 2.7 within both my Windows(32-bit Python) and MacOS (64-bit Python) environments.

Upgrading my pythonocc installations to Python 3.6, pythonocc has successfully installed in Windows (using 32-bit Python) while the MacOs installation suffers from the following error:

import OCC.gp 

Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

@aothms commented ...

I also ran into this publishing builds for my own project. What I ended up doing is not to link to the python dylib at compile time and allow the linker to ignore the missing symbols. It's been years since I looked into this, but I remember this to be somewhat common practice on OS X.

Set flags: https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/conda/build.sh#L10
Link conditionally: https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcwrap/CMakeLists.txt#L59

@danZib posted workaround ...
The issue was fixed for me after switching miniconda3 for miniconda2

@rainman110
Copy link
Collaborator

rainman110 commented Jun 16, 2018

The reason is, that pythonocc core may not be linked anymore to libpython. Please have a look here:https://groups.google.com/a/continuum.io/forum/m/#!topic/anaconda/057P4uNWyCU

I fixed it for our dlr packages. See our patch: https://github.com/DLR-SC/tigl-conda/blob/master/python-occ_0.17/link_python.patch

tpaviot added a commit that referenced this issue Jan 12, 2019
tpaviot added a commit that referenced this issue Jan 12, 2019
tpaviot added a commit that referenced this issue Jan 12, 2019
tpaviot added a commit that referenced this issue Jan 12, 2019
more apple stuff

fixed Addons compilation
@tpaviot
Copy link
Owner

tpaviot commented Jan 13, 2019

Fixed by PR #613 thanks @rainman110 for the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants