I am working on a python project (I have python 2.7) that uses the eBay SDK module found here: https://github.com/timotheus/ebaysdk-python
I was able to install ebaysdk
but had trouble when running my program that imports it:
Nicole-MacBook-Air:python nicole$ python ebayToHTML.py
Traceback (most recent call last):
File "ebayToHTML.py", line 2, in <module>
from ebaysdk import finding
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ebaysdk-0.1.7-py2.7.egg/ebaysdk/__init__.py", line 3, in <module>
import yaml, pycurl, urllib
ImportError: No module named pycurl
Before running into this issue, I had to install yaml
, which took a little research but eventually worked out. Now, though, I cannot get pycurl
to install. I have tried a number of commands such as sudo easy_install pycurl
, sudo pip install pycurl
, and, from another posted question, sudo env ARCHFLAGS="-arch x86_64" easy_install setuptools pycurl==7.19.0
.
All of these give a huge display of ...undeclared
errors, which seem to come down to the following message:
src/pycurl.c:61:4: error: src/pycurl.c:61:4: error: #error "Need libcurl version 7.19.0 or greater to compile pycurl."
But it seems that I have this libcurl
as necessary (provided this is the way to check for it?):
Nicole-MacBook-Air:python nicole$ curl-config --version
libcurl 7.19.7
Someone else seemed to have a similar issue here: pycurl install đ already have min. libcurl version
…but the answers are a little over my head and I haven’t had any luck trying out the different commands given in some of them.
I’m not sure what to do now; is this just a Snow Leopard issue that would be better avoided by (sorry if this is a dumb generalization) just upgrading my OS? I am not very knowledgeable on this and don’t know if wrangling with these dependencies will be worth it.
EDIT: Here is the long traceback I get with sudo easy_install pycurl
:
Nicole-MacBook-Air:python nicole$ sudo easy_install pycurl
Searching for pycurl
Reading http://pypi.python.org/simple/pycurl/
Reading http://pycurl.sourceforge.net/
Reading http://pycurl.sourceforge.net/download/
Best match: pycurl 7.19.0
Downloading http://pycurl.sourceforge.net/download/pycurl-7.19.0.tar.gz
Processing pycurl-7.19.0.tar.gz
Writing /tmp/easy_install-k4bkjB/pycurl-7.19.0/setup.cfg
Running pycurl-7.19.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-k4bkjB/pycurl-7.19.0/egg-dist-tmp-EB2TOP
Using curl-config (libcurl 7.19.7)
src/pycurl.c:61:4: error: src/pycurl.c:61:4: error: #error "Need libcurl version 7.19.0 or greater to compile pycurl."
src/pycurl.c:85:4: warning: #warning "libcurl was compiled with SSL support, but configure could not determine which " "library was used; thus no SSL crypto locking callbacks will be set, which may " "cause random crashes on SSL requests"
#error "Need libcurl version 7.19.0 or greater to compile pycurl."
src/pycurl.c:85:4: warning: #warning "libcurl was compiled with SSL support, but configure could not determine which " "library was used; thus no SSL crypto locking callbacks will be set, which may " "cause random crashes on SSL requests"
src/pycurl.c:1134: error: syntax error before âopensocket_callbackâ
src/pycurl.c:1134: error: syntax error before âcurlsocktypeâ
src/pycurl.c: In function âopensocket_callbackâ:src/pycurl.c:1134: error: syntax error before âopensocket_callbackâ
src/pycurl.c:1134: error: syntax error before âcurlsocktypeâ
src/pycurl.c: In function âopensocket_callbackâ:
src/pycurl.c:1142: error: âCURL_SOCKET_BADâ undeclared (first use in this function)
src/pycurl.c:1142: error: (Each undeclared identifier is reported only once
src/pycurl.c:1142: error: for each function it appears in.)
src/pycurl.c:1144: error: âclientpâ undeclared (first use in this function)
src/pycurl.c:1148: error: âaddressâ undeclared (first use in this function)
src/pycurl.c:1142: error: âCURL_SOCKET_BADâ undeclared (first use in this function)
src/pycurl.c:1142: error: (Each undeclared identifier is reported only once
src/pycurl.c:1142: error: for each function it appears in.)
src/pycurl.c:1144: error: âclientpâ undeclared (first use in this function)
src/pycurl.c:1148: error: âaddressâ undeclared (first use in this function)
src/pycurl.c: In function âdo_curl_setoptâ:
src/pycurl.c:1599: error: âCURLOPT_COOKIELISTâ undeclared (first use in this function)
src/pycurl.c:1623: error: âCURLOPT_FTP_ALTERNATIVE_TO_USERâ undeclared (first use in this function)
src/pycurl.c:1624: error: âCURLOPT_SSH_PUBLIC_KEYFILEâ undeclared (first use in this function)
src/pycurl.c:1625: error: âCURLOPT_SSH_PRIVATE_KEYFILEâ undeclared (first use in this function)
src/pycurl.c:1626: error: âCURLOPT_COPYPOSTFIELDSâ undeclared (first use in this function)
src/pycurl.c:1627: error: âCURLOPT_SSH_HOST_PUBLIC_KEY_MD5â undeclared (first use in this function)
src/pycurl.c:1628: error: âCURLOPT_CRLFILEâ undeclared (first use in this function)
src/pycurl.c:1629: error: âCURLOPT_ISSUERCERTâ undeclared (first use in this function)
src/pycurl.c: In function âdo_curl_setoptâ:
src/pycurl.c:1599: error: âCURLOPT_COOKIELISTâ undeclared (first use in this function)
src/pycurl.c:1623: error: âCURLOPT_FTP_ALTERNATIVE_TO_USERâ undeclared (first use in this function)
src/pycurl.c:1624: error: âCURLOPT_SSH_PUBLIC_KEYFILEâ undeclared (first use in this function)
src/pycurl.c:1625: error: âCURLOPT_SSH_PRIVATE_KEYFILEâ undeclared (first use in this function)
src/pycurl.c:1626: error: âCURLOPT_COPYPOSTFIELDSâ undeclared (first use in this function)
src/pycurl.c:1627: error: âCURLOPT_SSH_HOST_PUBLIC_KEY_MD5â undeclared (first use in this function)
src/pycurl.c:1628: error: âCURLOPT_CRLFILEâ undeclared (first use in this function)
src/pycurl.c:1629: error: âCURLOPT_ISSUERCERTâ undeclared (first use in this function)
src/pycurl.c:2020: error: nested functions are disabled, use -fnested-functions to re-enable
src/pycurl.c:2020: error: syntax error before âopensocket_cbâ
src/pycurl.c:2071: error: âCURLOPT_OPENSOCKETFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:2075: error: âopensocket_cbâ undeclared (first use in this function)
src/pycurl.c:2076: error: âCURLOPT_OPENSOCKETDATAâ undeclared (first use in this function)
src/pycurl.c:2020: error: nested functions are disabled, use -fnested-functions to re-enable
src/pycurl.c:2020: error: syntax error before âopensocket_cbâ
src/pycurl.c:2071: error: âCURLOPT_OPENSOCKETFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:2075: error: âopensocket_cbâ undeclared (first use in this function)
src/pycurl.c:2076: error: âCURLOPT_OPENSOCKETDATAâ undeclared (first use in this function)
src/pycurl.c: In function âdo_curl_getinfoâ:
src/pycurl.c:2159: error: âCURLINFO_LASTSOCKETâ undeclared (first use in this function)
src/pycurl.c:2174: error: âCURLINFO_FTP_ENTRY_PATHâ undeclared (first use in this function)
src/pycurl.c:2175: error: âCURLINFO_REDIRECT_URLâ undeclared (first use in this function)
src/pycurl.c:2176: error: âCURLINFO_PRIMARY_IPâ undeclared (first use in this function)
src/pycurl.c:2194: error: âCURLINFO_APPCONNECT_TIMEâ undeclared (first use in this function)
src/pycurl.c:2218: error: âCURLINFO_COOKIELISTâ undeclared (first use in this function)
src/pycurl.c: At top level:
src/pycurl.c:2341: error: syntax error before âcurl_socket_tâ
src/pycurl.c: In function âmulti_socket_callbackâ:
src/pycurl.c:2354: error: âuserpâ undeclared (first use in this function)
src/pycurl.c:2355: error: âeasyâ undeclared (first use in this function)
src/pycurl.c:2365: error: âsocketpâ undeclared (first use in this function)
src/pycurl.c:2371: error: âwhatâ undeclared (first use in this function)
src/pycurl.c:2371: error: âsâ undeclared (first use in this function)
src/pycurl.c: In function âdo_multi_setoptâ:
src/pycurl.c:2452: error: âCURLMOPT_LASTENTRYâ undeclared (first use in this function)
src/pycurl.c:2461: error: âCURLMOPT_PIPELININGâ undeclared (first use in this function)
src/pycurl.c:2464: error: âCURLMOPT_MAXCONNECTSâ undeclared (first use in this function)
src/pycurl.c:2479: error: nested functions are disabled, use -fnested-functions to re-enable
src/pycurl.c:2479: error: syntax error before ât_cbâ
src/pycurl.c:2480: error: nested functions are disabled, use -fnested-functions to re-enable
src/pycurl.c:2480: error: syntax error before âs_cbâ
src/pycurl.c:2483: error: âCURLMOPT_SOCKETFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:2484: error: âs_cbâ undeclared (first use in this function)
src/pycurl.c:2485: error: âCURLMOPT_SOCKETDATAâ undeclared (first use in this function)
src/pycurl.c:2489: error: âCURLMOPT_TIMERFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:2490: error: ât_cbâ undeclared (first use in this function)
src/pycurl.c:2491: error: âCURLMOPT_TIMERDATAâ undeclared (first use in this function)
src/pycurl.c: In function âdo_multi_assignâ:
src/pycurl.c:2537: error: âcurl_socket_tâ undeclared (first use in this function)
src/pycurl.c:2537: error: syntax error before âsocketâ
src/pycurl.c: In function âdo_multi_socket_actionâ:
src/pycurl.c:2562: error: âcurl_socket_tâ undeclared (first use in this function)
src/pycurl.c:2562: error: syntax error before âsocketâ
src/pycurl.c: In function âdo_curl_getinfoâ:
src/pycurl.c:2159: error: âCURLINFO_LASTSOCKETâ undeclared (first use in this function)
src/pycurl.c:2174: error: âCURLINFO_FTP_ENTRY_PATHâ undeclared (first use in this function)
src/pycurl.c:2175: error: âCURLINFO_REDIRECT_URLâ undeclared (first use in this function)
src/pycurl.c:2176: error: âCURLINFO_PRIMARY_IPâ undeclared (first use in this function)
src/pycurl.c:2194: error: âCURLINFO_APPCONNECT_TIMEâ undeclared (first use in this function)
src/pycurl.c:2218: error: âCURLINFO_COOKIELISTâ undeclared (first use in this function)
src/pycurl.c: At top level:
src/pycurl.c:2341: error: syntax error before âcurl_socket_tâ
src/pycurl.c: In function âmulti_socket_callbackâ:
src/pycurl.c:2354: error: âuserpâ undeclared (first use in this function)
src/pycurl.c:2355: error: âeasyâ undeclared (first use in this function)
src/pycurl.c:2365: error: âsocketpâ undeclared (first use in this function)
src/pycurl.c:2371: error: âwhatâ undeclared (first use in this function)
src/pycurl.c:2371: error: âsâ undeclared (first use in this function)
src/pycurl.c: In function âdo_multi_setoptâ:
src/pycurl.c:2452: error: âCURLMOPT_LASTENTRYâ undeclared (first use in this function)
src/pycurl.c:2461: error: âCURLMOPT_PIPELININGâ undeclared (first use in this function)
src/pycurl.c:2464: error: âCURLMOPT_MAXCONNECTSâ undeclared (first use in this function)
src/pycurl.c:2479: error: nested functions are disabled, use -fnested-functions to re-enable
src/pycurl.c:2479: error: syntax error before ât_cbâ
src/pycurl.c:2480: error: nested functions are disabled, use -fnested-functions to re-enable
src/pycurl.c:2480: error: syntax error before âs_cbâ
src/pycurl.c:2483: error: âCURLMOPT_SOCKETFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:2484: error: âs_cbâ undeclared (first use in this function)
src/pycurl.c:2485: error: âCURLMOPT_SOCKETDATAâ undeclared (first use in this function)
src/pycurl.c:2489: error: âCURLMOPT_TIMERFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:2490: error: ât_cbâ undeclared (first use in this function)
src/pycurl.c:2491: error: âCURLMOPT_TIMERDATAâ undeclared (first use in this function)
src/pycurl.c: In function âdo_multi_assignâ:
src/pycurl.c:2537: error: âcurl_socket_tâ undeclared (first use in this function)
src/pycurl.c:2537: error: syntax error before âsocketâ
src/pycurl.c: In function âdo_multi_socket_actionâ:
src/pycurl.c:2562: error: âcurl_socket_tâ undeclared (first use in this function)
src/pycurl.c:2562: error: syntax error before âsocketâ
src/pycurl.c: In function âinitpycurlâ:
src/pycurl.c:3546: error: âCURLE_TFTP_NOTFOUNDâ undeclared (first use in this function)
src/pycurl.c:3547: error: âCURLE_TFTP_PERMâ undeclared (first use in this function)
src/pycurl.c:3548: error: âCURLE_TFTP_DISKFULLâ undeclared (first use in this function)
src/pycurl.c:3549: error: âCURLE_TFTP_ILLEGALâ undeclared (first use in this function)
src/pycurl.c:3550: error: âCURLE_TFTP_UNKNOWNIDâ undeclared (first use in this function)
src/pycurl.c:3551: error: âCURLE_TFTP_EXISTSâ undeclared (first use in this function)
src/pycurl.c:3552: error: âCURLE_TFTP_NOSUCHUSERâ undeclared (first use in this function)
src/pycurl.c:3553: error: âCURLE_CONV_FAILEDâ undeclared (first use in this function)
src/pycurl.c:3554: error: âCURLE_CONV_REQDâ undeclared (first use in this function)
src/pycurl.c:3555: error: âCURLE_SSL_CACERT_BADFILEâ undeclared (first use in this function)
src/pycurl.c:3556: error: âCURLE_REMOTE_FILE_NOT_FOUNDâ undeclared (first use in this function)
src/pycurl.c:3557: error: âCURLE_SSHâ undeclared (first use in this function)
src/pycurl.c:3558: error: âCURLE_SSL_SHUTDOWN_FAILEDâ undeclared (first use in this function)
src/pycurl.c:3592: error: âCURLFTPMETHOD_DEFAULTâ undeclared (first use in this function)
src/pycurl.c:3593: error: âCURLFTPMETHOD_MULTICWDâ undeclared (first use in this function)
src/pycurl.c:3594: error: âCURLFTPMETHOD_NOCWDâ undeclared (first use in this function)
src/pycurl.c:3595: error: âCURLFTPMETHOD_SINGLECWDâ undeclared (first use in this function)
src/pycurl.c:3707: error: âCURLOPT_OPENSOCKETFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:3709: error: âCURLOPT_IGNORE_CONTENT_LENGTHâ undeclared (first use in this function)
src/pycurl.c:3710: error: âCURLOPT_COOKIELISTâ undeclared (first use in this function)
src/pycurl.c:3711: error: âCURLOPT_FTP_SKIP_PASV_IPâ undeclared (first use in this function)
src/pycurl.c:3712: error: âCURLOPT_FTP_FILEMETHODâ undeclared (first use in this function)
src/pycurl.c:3713: error: âCURLOPT_CONNECT_ONLYâ undeclared (first use in this function)
src/pycurl.c:3714: error: âCURLOPT_LOCALPORTâ undeclared (first use in this function)
src/pycurl.c:3715: error: âCURLOPT_LOCALPORTRANGEâ undeclared (first use in this function)
src/pycurl.c:3716: error: âCURLOPT_FTP_ALTERNATIVE_TO_USERâ undeclared (first use in this function)
src/pycurl.c:3717: error: âCURLOPT_MAX_SEND_SPEED_LARGEâ undeclared (first use in this function)
src/pycurl.c:3718: error: âCURLOPT_MAX_RECV_SPEED_LARGEâ undeclared (first use in this function)
src/pycurl.c:3719: error: âCURLOPT_SSL_SESSIONID_CACHEâ undeclared (first use in this function)
src/pycurl.c:3720: error: âCURLOPT_SSH_AUTH_TYPESâ undeclared (first use in this function)
src/pycurl.c:3721: error: âCURLOPT_SSH_PUBLIC_KEYFILEâ undeclared (first use in this function)
src/pycurl.c:3722: error: âCURLOPT_SSH_PRIVATE_KEYFILEâ undeclared (first use in this function)
src/pycurl.c:3723: error: âCURLOPT_FTP_SSL_CCCâ undeclared (first use in this function)
src/pycurl.c:3724: error: âCURLOPT_TIMEOUT_MSâ undeclared (first use in this function)
src/pycurl.c:3725: error: âCURLOPT_CONNECTTIMEOUT_MSâ undeclared (first use in this function)
src/pycurl.c:3726: error: âCURLOPT_HTTP_TRANSFER_DECODINGâ undeclared (first use in this function)
src/pycurl.c:3727: error: âCURLOPT_HTTP_CONTENT_DECODINGâ undeclared (first use in this function)
src/pycurl.c:3728: error: âCURLOPT_NEW_FILE_PERMSâ undeclared (first use in this function)
src/pycurl.c:3729: error: âCURLOPT_NEW_DIRECTORY_PERMSâ undeclared (first use in this function)
src/pycurl.c:3730: error: âCURLOPT_POST301â undeclared (first use in this function)
src/pycurl.c:3731: error: âCURLOPT_PROXY_TRANSFER_MODEâ undeclared (first use in this function)
src/pycurl.c:3732: error: âCURLOPT_COPYPOSTFIELDSâ undeclared (first use in this function)
src/pycurl.c:3733: error: âCURLOPT_SSH_HOST_PUBLIC_KEY_MD5â undeclared (first use in this function)
src/pycurl.c:3735: error: âCURLOPT_CRLFILEâ undeclared (first use in this function)
src/pycurl.c:3736: error: âCURLOPT_ISSUERCERTâ undeclared (first use in this function)
src/pycurl.c:3737: error: âCURLOPT_ADDRESS_SCOPEâ undeclared (first use in this function)
src/pycurl.c:3739: error: âCURLMOPT_TIMERFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:3740: error: âCURLMOPT_SOCKETFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:3741: error: âCURLMOPT_PIPELININGâ undeclared (first use in this function)
src/pycurl.c:3742: error: âCURLMOPT_MAXCONNECTSâ undeclared (first use in this function)
src/pycurl.c:3773: error: âCURLSSH_AUTH_ANYâ undeclared (first use in this function)
src/pycurl.c:3774: error: âCURLSSH_AUTH_NONEâ undeclared (first use in this function)
src/pycurl.c:3775: error: âCURLSSH_AUTH_PUBLICKEYâ undeclared (first use in this function)
src/pycurl.c:3776: error: âCURLSSH_AUTH_PASSWORDâ undeclared (first use in this function)
src/pycurl.c:3777: error: âCURLSSH_AUTH_HOSTâ undeclared (first use in this function)
src/pycurl.c:3778: error: âCURLSSH_AUTH_KEYBOARDâ undeclared (first use in this function)
src/pycurl.c:3779: error: âCURLSSH_AUTH_DEFAULTâ undeclared (first use in this function)
src/pycurl.c:3788: error: âCURLINFO_APPCONNECT_TIMEâ undeclared (first use in this function)
src/pycurl.c:3804: error: âCURLINFO_REDIRECT_URLâ undeclared (first use in this function)
src/pycurl.c:3805: error: âCURLINFO_PRIMARY_IPâ undeclared (first use in this function)
src/pycurl.c:3812: error: âCURLINFO_COOKIELISTâ undeclared (first use in this function)
src/pycurl.c:3813: error: âCURLINFO_LASTSOCKETâ undeclared (first use in this function)
src/pycurl.c:3814: error: âCURLINFO_FTP_ENTRY_PATHâ undeclared (first use in this function)
src/pycurl.c:3825: error: âCURL_CSELECT_INâ undeclared (first use in this function)
src/pycurl.c:3826: error: âCURL_CSELECT_OUTâ undeclared (first use in this function)
src/pycurl.c:3827: error: âCURL_CSELECT_ERRâ undeclared (first use in this function)
src/pycurl.c:3828: error: âCURL_SOCKET_TIMEOUTâ undeclared (first use in this function)
src/pycurl.c:3829: error: âCURL_POLL_NONEâ undeclared (first use in this function)
src/pycurl.c:3830: error: âCURL_POLL_INâ undeclared (first use in this function)
src/pycurl.c:3831: error: âCURL_POLL_OUTâ undeclared (first use in this function)
src/pycurl.c:3832: error: âCURL_POLL_INOUTâ undeclared (first use in this function)
src/pycurl.c:3833: error: âCURL_POLL_REMOVEâ undeclared (first use in this function)
src/pycurl.c: In function âinitpycurlâ:
src/pycurl.c:3546: error: âCURLE_TFTP_NOTFOUNDâ undeclared (first use in this function)
src/pycurl.c:3547: error: âCURLE_TFTP_PERMâ undeclared (first use in this function)
src/pycurl.c:3548: error: âCURLE_TFTP_DISKFULLâ undeclared (first use in this function)
src/pycurl.c:3549: error: âCURLE_TFTP_ILLEGALâ undeclared (first use in this function)
src/pycurl.c:3550: error: âCURLE_TFTP_UNKNOWNIDâ undeclared (first use in this function)
src/pycurl.c:3551: error: âCURLE_TFTP_EXISTSâ undeclared (first use in this function)
src/pycurl.c:3552: error: âCURLE_TFTP_NOSUCHUSERâ undeclared (first use in this function)
src/pycurl.c:3553: error: âCURLE_CONV_FAILEDâ undeclared (first use in this function)
src/pycurl.c:3554: error: âCURLE_CONV_REQDâ undeclared (first use in this function)
src/pycurl.c:3555: error: âCURLE_SSL_CACERT_BADFILEâ undeclared (first use in this function)
src/pycurl.c:3556: error: âCURLE_REMOTE_FILE_NOT_FOUNDâ undeclared (first use in this function)
src/pycurl.c:3557: error: âCURLE_SSHâ undeclared (first use in this function)
src/pycurl.c:3558: error: âCURLE_SSL_SHUTDOWN_FAILEDâ undeclared (first use in this function)
src/pycurl.c:3592: error: âCURLFTPMETHOD_DEFAULTâ undeclared (first use in this function)
src/pycurl.c:3593: error: âCURLFTPMETHOD_MULTICWDâ undeclared (first use in this function)
src/pycurl.c:3594: error: âCURLFTPMETHOD_NOCWDâ undeclared (first use in this function)
src/pycurl.c:3595: error: âCURLFTPMETHOD_SINGLECWDâ undeclared (first use in this function)
src/pycurl.c:3707: error: âCURLOPT_OPENSOCKETFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:3709: error: âCURLOPT_IGNORE_CONTENT_LENGTHâ undeclared (first use in this function)
src/pycurl.c:3710: error: âCURLOPT_COOKIELISTâ undeclared (first use in this function)
src/pycurl.c:3711: error: âCURLOPT_FTP_SKIP_PASV_IPâ undeclared (first use in this function)
src/pycurl.c:3712: error: âCURLOPT_FTP_FILEMETHODâ undeclared (first use in this function)
src/pycurl.c:3713: error: âCURLOPT_CONNECT_ONLYâ undeclared (first use in this function)
src/pycurl.c:3714: error: âCURLOPT_LOCALPORTâ undeclared (first use in this function)
src/pycurl.c:3715: error: âCURLOPT_LOCALPORTRANGEâ undeclared (first use in this function)
src/pycurl.c:3716: error: âCURLOPT_FTP_ALTERNATIVE_TO_USERâ undeclared (first use in this function)
src/pycurl.c:3717: error: âCURLOPT_MAX_SEND_SPEED_LARGEâ undeclared (first use in this function)
src/pycurl.c:3718: error: âCURLOPT_MAX_RECV_SPEED_LARGEâ undeclared (first use in this function)
src/pycurl.c:3719: error: âCURLOPT_SSL_SESSIONID_CACHEâ undeclared (first use in this function)
src/pycurl.c:3720: error: âCURLOPT_SSH_AUTH_TYPESâ undeclared (first use in this function)
src/pycurl.c:3721: error: âCURLOPT_SSH_PUBLIC_KEYFILEâ undeclared (first use in this function)
src/pycurl.c:3722: error: âCURLOPT_SSH_PRIVATE_KEYFILEâ undeclared (first use in this function)
src/pycurl.c:3723: error: âCURLOPT_FTP_SSL_CCCâ undeclared (first use in this function)
src/pycurl.c:3724: error: âCURLOPT_TIMEOUT_MSâ undeclared (first use in this function)
src/pycurl.c:3725: error: âCURLOPT_CONNECTTIMEOUT_MSâ undeclared (first use in this function)
src/pycurl.c:3726: error: âCURLOPT_HTTP_TRANSFER_DECODINGâ undeclared (first use in this function)
src/pycurl.c:3727: error: âCURLOPT_HTTP_CONTENT_DECODINGâ undeclared (first use in this function)
src/pycurl.c:3728: error: âCURLOPT_NEW_FILE_PERMSâ undeclared (first use in this function)
src/pycurl.c:3729: error: âCURLOPT_NEW_DIRECTORY_PERMSâ undeclared (first use in this function)
src/pycurl.c:3730: error: âCURLOPT_POST301â undeclared (first use in this function)
src/pycurl.c:3731: error: âCURLOPT_PROXY_TRANSFER_MODEâ undeclared (first use in this function)
src/pycurl.c:3732: error: âCURLOPT_COPYPOSTFIELDSâ undeclared (first use in this function)
src/pycurl.c:3733: error: âCURLOPT_SSH_HOST_PUBLIC_KEY_MD5â undeclared (first use in this function)
src/pycurl.c:3735: error: âCURLOPT_CRLFILEâ undeclared (first use in this function)
src/pycurl.c:3736: error: âCURLOPT_ISSUERCERTâ undeclared (first use in this function)
src/pycurl.c:3737: error: âCURLOPT_ADDRESS_SCOPEâ undeclared (first use in this function)
src/pycurl.c:3739: error: âCURLMOPT_TIMERFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:3740: error: âCURLMOPT_SOCKETFUNCTIONâ undeclared (first use in this function)
src/pycurl.c:3741: error: âCURLMOPT_PIPELININGâ undeclared (first use in this function)
src/pycurl.c:3742: error: âCURLMOPT_MAXCONNECTSâ undeclared (first use in this function)
src/pycurl.c:3773: error: âCURLSSH_AUTH_ANYâ undeclared (first use in this function)
src/pycurl.c:3774: error: âCURLSSH_AUTH_NONEâ undeclared (first use in this function)
src/pycurl.c:3775: error: âCURLSSH_AUTH_PUBLICKEYâ undeclared (first use in this function)
src/pycurl.c:3776: error: âCURLSSH_AUTH_PASSWORDâ undeclared (first use in this function)
src/pycurl.c:3777: error: âCURLSSH_AUTH_HOSTâ undeclared (first use in this function)
src/pycurl.c:3778: error: âCURLSSH_AUTH_KEYBOARDâ undeclared (first use in this function)
src/pycurl.c:3779: error: âCURLSSH_AUTH_DEFAULTâ undeclared (first use in this function)
src/pycurl.c:3788: error: âCURLINFO_APPCONNECT_TIMEâ undeclared (first use in this function)
src/pycurl.c:3804: error: âCURLINFO_REDIRECT_URLâ undeclared (first use in this function)
src/pycurl.c:3805: error: âCURLINFO_PRIMARY_IPâ undeclared (first use in this function)
src/pycurl.c:3812: error: âCURLINFO_COOKIELISTâ undeclared (first use in this function)
src/pycurl.c:3813: error: âCURLINFO_LASTSOCKETâ undeclared (first use in this function)
src/pycurl.c:3814: error: âCURLINFO_FTP_ENTRY_PATHâ undeclared (first use in this function)
src/pycurl.c:3825: error: âCURL_CSELECT_INâ undeclared (first use in this function)
src/pycurl.c:3826: error: âCURL_CSELECT_OUTâ undeclared (first use in this function)
src/pycurl.c:3827: error: âCURL_CSELECT_ERRâ undeclared (first use in this function)
src/pycurl.c:3828: error: âCURL_SOCKET_TIMEOUTâ undeclared (first use in this function)
src/pycurl.c:3829: error: âCURL_POLL_NONEâ undeclared (first use in this function)
src/pycurl.c:3830: error: âCURL_POLL_INâ undeclared (first use in this function)
src/pycurl.c:3831: error: âCURL_POLL_OUTâ undeclared (first use in this function)
src/pycurl.c:3832: error: âCURL_POLL_INOUTâ undeclared (first use in this function)
src/pycurl.c:3833: error: âCURL_POLL_REMOVEâ undeclared (first use in this function)
lipo: can't figure out the architecture type of: /var/tmp//cc1gGI6G.out
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
In case it helps, here is this, too. It says it cannot find it, and nothing more đ :
Nicole-MacBook-Air:python nicole$ sudo port install py27-curl
Error: Port py27-curl not found
EDIT 2: Finally, I supposedly installed pycurl successfully:
Nicole-MacBook-Air:python nicole$ sudo port install py27-curl
Password:
---> Computing dependencies for py27-curl
---> Dependencies to be installed: curl curl-ca-bundle
---> Fetching archive for curl-ca-bundle
---> Attempting to fetch curl-ca-bundle-7.30.0_0.darwin_10.noarch.tbz2 from http://packages.macports.org/curl-ca-bundle
---> Attempting to fetch curl-ca-bundle-7.30.0_0.darwin_10.noarch.tbz2.rmd160 from http://packages.macports.org/curl-ca-bundle
---> Installing curl-ca-bundle @7.30.0_0
---> Activating curl-ca-bundle @7.30.0_0
---> Cleaning curl-ca-bundle
---> Fetching archive for curl
---> Attempting to fetch curl-7.30.0_0+ssl.darwin_10.x86_64.tbz2 from http://packages.macports.org/curl
---> Attempting to fetch curl-7.30.0_0+ssl.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/curl
---> Installing curl @7.30.0_0+ssl
---> Activating curl @7.30.0_0+ssl
---> Cleaning curl
---> Fetching archive for py27-curl
---> Attempting to fetch py27-curl-7.19.0_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/py27-curl
---> Attempting to fetch py27-curl-7.19.0_0.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/py27-curl
---> Installing py27-curl @7.19.0_0
---> Activating py27-curl @7.19.0_0
---> Cleaning py27-curl
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
But then this! :
Nicole-MacBook-Air:python nicole$ python
Python 2.7.4 (v2.7.4:026ee0057e2d, Apr 6 2013, 10:15:50)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycurl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pycurl
What is going on here?
3
Answers
while installing
pycurl
witheasy_install
i have faced the error which is posted here, so i have tried macports.. .on 10.6.8.. .and it has been installed successfully and working::Also to install
yaml
is very easy with macports, just runsudo port install py27-yaml
in your terminal.. .You possibly have two python installations, one that comes with MacBookPro in /usr/bin/python and the other defaulted by macports to /opt/local/bin/python.
Try this if this works:
This worked for me on OSX 10.8.3, which is backwards from the pycurl documentation