GithubHelp home page GithubHelp logo

Comments (9)

gotthardp avatar gotthardp commented on May 29, 2024

I never tried Mac OS, but it should work. The MercuryAPI contains special build instructions for IOS (see REAME.IOS in mercuryapi-1.31.0.33/c). The wrapper is a tiny layer above the mercuryAPI, so the build problems usually come from the MercuryAPI. Iā€™d recommend you to build the API itself, then copy the .h and .a/.so somewhere and run the python build. For Windows and Linux it is automated, but Mac may need some tweaks before it works.

from python-mercuryapi.

rhaag71 avatar rhaag71 commented on May 29, 2024

@AaronHuus Did you ever figure this out, I am running into the same issue.

from python-mercuryapi.

mikcox avatar mikcox commented on May 29, 2024

Bumping this; I'm hitting the same issue! Anybody made any progress?

from python-mercuryapi.

gotthardp avatar gotthardp commented on May 29, 2024

@AaronHuus has made this setup.py that might work. Anyone willing to try this?
https://github.com/AaronHuus/python-mercuryapi/blob/feature/mac-os-support/setup.py

from python-mercuryapi.

AaronHuus avatar AaronHuus commented on May 29, 2024

I do not believe I ever fully got this working before being pulled on to something else

from python-mercuryapi.

Moebe1 avatar Moebe1 commented on May 29, 2024

Hi I am happy to help out with the mac issue. I have one that is not doing anything at the moment. I can have it ready in a day or two if needed.

from python-mercuryapi.

gotthardp avatar gotthardp commented on May 29, 2024

Hello everyone, using the machine from @Moebe1 I was able to build the code under MacOS X and install the Python extension.
When you have some time, please check if it works for you. Just download the fresh master (or pull and remove all the downloaded files) and try python setup.py build install.

from python-mercuryapi.

ddelano34 avatar ddelano34 commented on May 29, 2024

I know this is an older bug, but I am running into an issue building on MacOS X 10.15.6 with mercuryapi-1.31.4.35. I followed the instructions in the readme but get an 'unknown type name' error and an 'architecture not supported' error. Which version of Mac OS and Mercury API was the patch working on?

Most of the errors seem to come from the pthread.h file.
In file included from mercury.c:23: In file included from build/mercuryapi/include/tm_reader.h:55: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h:55: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t' typedef __int64_t __darwin_blkcnt_t; /...

from python-mercuryapi.

ddelano34 avatar ddelano34 commented on May 29, 2024

Finally figured out what the issue was! This is an issue with the XCode 12 version of python3 setting the -arch arm64 flag during the compile of the extension. I used homebrew to install official version of Python and it works.
This github issue led me to the solution: ycm-core/YouCompleteMe#3770 (comment)

Hopefully this will save someone else some time trying to figure out this issue.

from python-mercuryapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.