Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > R: embedding python in macOS 10.6

Thread Tools

R: embedding python in macOS 10.6
Posts: n/a
sorry, my error; in order to achieve what written before, i had to link to the
libpython2.6.a that i find downloading the surce code.
instead, if I link to the one of the distributed version, i get the following
missing required architecture x86_64 in file.
i tried to build with the -m32 option,but then to that message, another is
added for the object file
file was built for i386 which is not the architecture being linked (x86_64)

>----Messaggio originale----
>Da: Removed)
>Data: 29/09/2010 16.06
>A: <(E-Mail Removed)>
>Ogg: embedding python in macOS 10.6
>hi there,
>i'm trying to embed python in a c++ code.i'm starting with the example in

>tutorial.i've problem with setting up the enveiroment.
>I've installed python with the distributed version (i.e., i did not, as a
>start, build it myself); i added the library where both python.h and

>are stored and i linked to libpython2.6.a (which is, in the distributed
>version, an alias).
>the program builds and links correctely, but if I try to run it, i get the
>following error:
>Could not find platform independent libraries <prefix>
>Could not find platform dependent libraries <exec_prefix>
>Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>'import site' failed; use -v for traceback
>Traceback (most recent call last):
> File "<string>", line 1, in <module>
>ImportError: No module named time
>what is the problem?
>in my .profile i have set PATH: /Library/Frameworks/Python.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
embedding python in macOS 10.6 Python 1 10-28-2010 03:49 PM
Python IDE for MacOS-X Jean Guillaume Pyraksos Python 3 01-19-2010 07:10 PM
Install Python 3.0 dmg to macos 10.5 silverburgh Python 1 05-06-2009 12:07 PM
Do MacOS X dmg installers still only provide 32 bit Pythonframework? Graham Dumpleton Python 3 03-10-2009 12:51 AM
Python 2.5 and Unicode on MacOS Michael J. Fromberger Python 1 09-21-2006 05:42 PM