binux / pyspider

A Powerful Spider(Web Crawler) System in Python.
http://docs.pyspider.org/
Apache License 2.0
16.41k stars 3.69k forks source link

python3.7 error #844

Open zmjios opened 5 years ago

zmjios commented 5 years ago

Building wheels for collected packages: pyspider, pycurl, Flask-Login, tornado, PyYAML, jsmin Running setup.py bdist_wheel for pyspider ... done Stored in directory: /Users/zengmingjian/Library/Caches/pip/wheels/39/60/ec/9ba1af9e0798333d32198784880b8cc5b22f00a81801c6fcec Running setup.py bdist_wheel for pycurl ... error Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/pt/9nxbnsp14278rpqr6bkk475r0000gp/T/pip-install-qq3r1wbx/pycurl/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /private/var/folders/pt/9nxbnsp14278rpqr6bkk475r0000gp/T/pip-wheel-g2itdmpc --python-tag cp37: Using curl-config (libcurl 7.54.0) running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.7 creating build/lib.macosx-10.14-x86_64-3.7/curl copying python/curl/init.py -> build/lib.macosx-10.14-x86_64-3.7/curl running build_ext building 'pycurl' extension creating build/temp.macosx-10.14-x86_64-3.7 creating build/temp.macosx-10.14-x86_64-3.7/src clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/opt/openssl/include -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/docstrings.c -o build/temp.macosx-10.14-x86_64-3.7/src/docstrings.o In file included from src/docstrings.c:4: In file included from src/pycurl.h:4: /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:30:10: warning: non-portable path to file ''; specified path differs in case from file name on disk [-Wnonportable-include-path]

include

       ^~~~~~~~~~
       <String.h>

In file included from src/docstrings.c:4: In file included from src/pycurl.h:4: In file included from /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:30: In file included from /usr/local/include/string.h:25: In file included from /usr/local/include/plist/Node.h:25: /usr/local/include/plist/plist.h:161:28: error: unknown type name 'uint64_t' plist_t plist_new_uint(uint64_t val); ^ /usr/local/include/plist/plist.h:180:45: error: unknown type name 'uint64_t' plist_t plist_new_data(const char val, uint64_t length); ^ /usr/local/include/plist/plist.h:199:27: error: unknown type name 'uint64_t' plist_t plist_new_uid(uint64_t val); ^ /usr/local/include/plist/plist.h:437:43: error: unknown type name 'uint64_t' void plist_get_uint_val(plist_t node, uint64_t val); ^ /usr/local/include/plist/plist.h:457:55: error: unknown type name 'uint64_t' void plist_get_data_val(plist_t node, char *val, uint64_t length); ^ /usr/local/include/plist/plist.h:476:42: error: unknown type name 'uint64_t' void plist_get_uid_val(plist_t node, uint64_t val); ^ /usr/local/include/plist/plist.h:520:43: error: unknown type name 'uint64_t' void plist_set_uint_val(plist_t node, uint64_t val); ^ /usr/local/include/plist/plist.h:540:60: error: unknown type name 'uint64_t' void plist_set_data_val(plist_t node, const char val, uint64_t length); ^ /usr/local/include/plist/plist.h:559:42: error: unknown type name 'uint64_t' void plist_set_uid_val(plist_t node, uint64_t val); ^ In file included from src/docstrings.c:4: In file included from src/pycurl.h:4: In file included from /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:30: In file included from /usr/local/include/string.h:25: /usr/local/include/plist/Node.h:26:10: fatal error: 'cstddef' file not found

include

       ^~~~~~~~~

1 warning and 10 errors generated. error: command 'clang' failed with exit status 1


Failed building wheel for pycurl Running setup.py clean for pycurl Running setup.py bdist_wheel for Flask-Login ... done Stored in directory: /Users/zengmingjian/Library/Caches/pip/wheels/39/10/74/d68194e28d5f7a83de5f66e5b2deff5ccbb424fe45e6b0e927 Running setup.py bdist_wheel for tornado ... done Stored in directory: /Users/zengmingjian/Library/Caches/pip/wheels/72/bf/f4/b68fa69596986881b397b18ff2b9af5f8181233aadcc9f76fd Running setup.py bdist_wheel for PyYAML ... done Stored in directory: /Users/zengmingjian/Library/Caches/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f Running setup.py bdist_wheel for jsmin ... done Stored in directory: /Users/zengmingjian/Library/Caches/pip/wheels/64/f4/de/9667d84f759289edf5442220997c6d4334637a6bb2a7b90f73 Successfully built pyspider Flask-Login tornado PyYAML jsmin Failed to build pycurl Installing collected packages: itsdangerous, Werkzeug, MarkupSafe, Jinja2, click, Flask, chardet, cssselect, lxml, pycurl, certifi, idna, urllib3, requests, Flask-Login, u-msgpack-python, six, tblib, PyYAML, defusedxml, jsmin, wsgidav, tornado, pyquery, pyspider Running setup.py install for pycurl ... error Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/pt/9nxbnsp14278rpqr6bkk475r0000gp/T/pip-install-qq3r1wbx/pycurl/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/pt/9nxbnsp14278rpqr6bkk475r0000gp/T/pip-record-24sgu0fk/install-record.txt --single-version-externally-managed --compile: Using curl-config (libcurl 7.54.0) running install running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.7 creating build/lib.macosx-10.14-x86_64-3.7/curl copying python/curl/init.py -> build/lib.macosx-10.14-x86_64-3.7/curl running build_ext building 'pycurl' extension creating build/temp.macosx-10.14-x86_64-3.7 creating build/temp.macosx-10.14-x86_64-3.7/src clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/opt/openssl/include -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/docstrings.c -o build/temp.macosx-10.14-x86_64-3.7/src/docstrings.o In file included from src/docstrings.c:4: In file included from src/pycurl.h:4: /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:30:10: warning: non-portable path to file ''; specified path differs in case from file name on disk [-Wnonportable-include-path]

include

         ^~~~~~~~~~
         <String.h>
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:4:
In file included from /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:30:
In file included from /usr/local/include/string.h:25:
In file included from /usr/local/include/plist/Node.h:25:
/usr/local/include/plist/plist.h:161:28: error: unknown type name 'uint64_t'
    plist_t plist_new_uint(uint64_t val);
                           ^
/usr/local/include/plist/plist.h:180:45: error: unknown type name 'uint64_t'
    plist_t plist_new_data(const char *val, uint64_t length);
                                            ^
/usr/local/include/plist/plist.h:199:27: error: unknown type name 'uint64_t'
    plist_t plist_new_uid(uint64_t val);
                          ^
/usr/local/include/plist/plist.h:437:43: error: unknown type name 'uint64_t'
    void plist_get_uint_val(plist_t node, uint64_t * val);
                                          ^
/usr/local/include/plist/plist.h:457:55: error: unknown type name 'uint64_t'
    void plist_get_data_val(plist_t node, char **val, uint64_t * length);
                                                      ^
/usr/local/include/plist/plist.h:476:42: error: unknown type name 'uint64_t'
    void plist_get_uid_val(plist_t node, uint64_t * val);
                                         ^
/usr/local/include/plist/plist.h:520:43: error: unknown type name 'uint64_t'
    void plist_set_uint_val(plist_t node, uint64_t val);
                                          ^
/usr/local/include/plist/plist.h:540:60: error: unknown type name 'uint64_t'
    void plist_set_data_val(plist_t node, const char *val, uint64_t length);
                                                           ^
/usr/local/include/plist/plist.h:559:42: error: unknown type name 'uint64_t'
    void plist_set_uid_val(plist_t node, uint64_t val);
                                         ^
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:4:
In file included from /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:30:
In file included from /usr/local/include/string.h:25:
/usr/local/include/plist/Node.h:26:10: fatal error: 'cstddef' file not found
#include <cstddef>
         ^~~~~~~~~
1 warning and 10 errors generated.
error: command 'clang' failed with exit status 1

----------------------------------------

Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/pt/9nxbnsp14278rpqr6bkk475r0000gp/T/pip-install-qq3r1wbx/pycurl/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/pt/9nxbnsp14278rpqr6bkk475r0000gp/T/pip-record-24sgu0fk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/pt/9nxbnsp14278rpqr6bkk475r0000gp/T/pip-install-qq3r1wbx/pycurl/

zmjios commented 5 years ago

can anybody reslove this question?

yangtianyu92 commented 5 years ago

just can run in python3.6

imic07 commented 5 years ago

image image