Python _ctypes import error in OSX 10.6

I am very new to Python development and I have a problem with one of my applications on OSX.

Technologies used in this project

  • python 2.6
  • Django
  • google engine
  • rpx (openid)

There is no problem loading the site in my Windows application, but when I try to use the same application in OSX 10.6, I get the following problem:


ImportError at / rpx / rpx / login /

No module named _ctypes

Here where the error occurs:

/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ctypes/ init .py in

#

"" create and process C data types in Python "" "import os as _os, sys as _sys version =" 1.1.0 "from _ctypes import Union, Structure, Array


Any ideas? Thank!

+3
4

OS X 10.6 Python 2.6 ctypes. . , , ctypes. , - , - - ctypes.

Google App Engine . ctypes Google App Engine.

, Python 2.6, OS X Google App Engine. , , GAE .

GAE: http://code.google.com/p/googleappengine/issues/detail?id=985

GAE Python 2.5 (/usr/bin/python2.5) OS X.

+6

, . , , , - Python GAE /usr/bin/python 2.5.

python 2.5 macports python.

python 2.5 - OSX 10.6, python . GAE, 2.5.

FWIW GAE Launcher 1.4.1

+3

python 2.6.1 Mac OS X Snow Leopard 10.6.3.

:

1) python 2.5.2: http://www.python.org/download/releases/2.5.2/

2) GoogleAppEngineLauncher.app

3) "" → " Python:" "/usr/local/bin/python2.5"


python 2.6.1, GAE 2.5.

vitor... @gmail.com

+2

, , , , , . , .

0

Source: https://habr.com/ru/post/1735759/


All Articles