ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

gcc/gevent errors during pyArango installation #145

Closed logan169 closed 5 years ago

logan169 commented 5 years ago

Hi,

I've tried to install pyArango from the repo and had some errors that I've never seen before. It seems to be some gcc errors associated with gevent (see end of terminal log).

I think this issue may be associated with last commit in date as I didn't had this issue 2 days ago while running the same operation.

Update: I've tried to do the same operation with dev branch whose last commit was 29days ago and got same issue so its not related to the last commit but to gevent it self.

Here is a complet terminal output for the operation:

master:~/Documents/test/pyArango$ python setup.py develop
running develop
running egg_info
writing pyArango.egg-info/PKG-INFO
writing dependency_links to pyArango.egg-info/dependency_links.txt
writing entry points to pyArango.egg-info/entry_points.txt
writing requirements to pyArango.egg-info/requires.txt
writing top-level names to pyArango.egg-info/top_level.txt
reading manifest file 'pyArango.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pyArango.egg-info/SOURCES.txt'
running build_ext
Creating /home/master/miniconda3/envs/bluwr/lib/python3.7/site-packages/pyArango.egg-link (link to .)
pyArango 1.3.3 is already the active version in easy-install.pth
Installing sample script to /home/master/miniconda3/envs/bluwr/bin

Installed /home/master/Documents/test/pyArango
Processing dependencies for pyArango==1.3.3
Searching for gevent
Reading https://pypi.org/simple/gevent/
Downloading https://files.pythonhosted.org/packages/53/4a/076bd8c6d3328381bdec816ba7f078276dd4618eb2fe289bec172779d5ff/gevent-1.5a1.tar.gz#sha256=1141c62acee22328436cb09a7e1bcc6f652e88cf913d5de1066b38b6af7e221d
Best match: gevent 1.5a1
Processing gevent-1.5a1.tar.gz
Writing /tmp/easy_install-c77ctjiz/gevent-1.5a1/setup.cfg
Running gevent-1.5a1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-c77ctjiz/gevent-1.5a1/egg-dist-tmp-0g1r_rj4
/home/master/miniconda3/envs/bluwr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'cffi_modules'
  warnings.warn(msg)
warning: no files found matching 'changelog.rst'
warning: no files found matching 'Makefile.ext'
warning: no files found matching 'known_failures.py'
warning: no files found matching '.pep8'
no previously-included directories found matching '*/__pycache__'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.o' found anywhere in distribution
warning: no previously-included files matching '*.lo' found anywhere in distribution
warning: no previously-included files matching '*.la' found anywhere in distribution
warning: no previously-included files matching '.dirstamp' found anywhere in distribution
warning: no previously-included files matching 'config.log' found anywhere in distribution
warning: no previously-included files matching 'config.status' found anywhere in distribution
warning: no previously-included files matching 'config.cache' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.coverage' found under directory 'src/greentest'
no previously-included directories found matching 'src/greentest/htmlcov'
warning: no previously-included files matching 'stamp-h?' found under directory 'deps/c-ares'
warning: no previously-included files matching 'ares_build.h.orig' found under directory 'deps/c-ares'
warning: no previously-included files matching '_corecffi.c' found under directory 'src/gevent'
warning: no previously-included files found matching 'configure-output'
warning: no previously-included files found matching 'configure-output.txt'
warning: no previously-included files found matching 'deps/TAGS'
warning: no previously-included files found matching 'deps/c-ares/ares_build.h'
warning: no previously-included files found matching 'deps/c-ares/ares_config.h'
warning: no previously-included files found matching 'deps/c-ares/libcares.pc'
warning: no previously-included files found matching 'deps/c-ares/libtool'
warning: no previously-included files found matching 'deps/c-ares/Makefile'
no previously-included directories found matching 'deps/c-ares/.deps'
no previously-included directories found matching 'deps/c-ares/.libs'
no previously-included directories found matching 'deps/libev/.deps'
no previously-included directories found matching 'deps/libev/.libs'
warning: no previously-included files matching 'Makefile' found under directory 'deps/libev'
warning: no previously-included files matching 'libtool' found under directory 'deps/libev'
warning: no previously-included files matching 'stamp-h?' found under directory 'deps/libev'
warning: no previously-included files matching 'config.h' found under directory 'deps/libev'
no previously-included directories found matching 'deps/libuv/.deps'
no previously-included directories found matching 'deps/libuv/.libs'
no previously-included directories found matching 'deps/libuv/src/.deps'
no previously-included directories found matching 'deps/libuv/src/unix/.deps'
no previously-included directories found matching 'deps/libuv/src/win/.deps'
no previously-included directories found matching 'deps/libuv/test/.deps'
no previously-included directories found matching 'deps/libuv/autom4te.cache'
no previously-included directories found matching 'deps/libuv/m4'
warning: no previously-included files matching 'Makefile' found under directory 'deps/libuv'
warning: no previously-included files matching 'Makefile.in' found under directory 'deps/libuv'
warning: no previously-included files matching 'ar-lib' found under directory 'deps/libuv'
warning: no previously-included files matching 'aclocal.m4' found under directory 'deps/libuv'
warning: no previously-included files matching 'compile' found under directory 'deps/libuv'
warning: no previously-included files matching 'configure' found under directory 'deps/libuv'
warning: no previously-included files matching 'depcomp' found under directory 'deps/libuv'
warning: no previously-included files matching 'install-sh' found under directory 'deps/libuv'
warning: no previously-included files matching 'libtool' found under directory 'deps/libuv'
warning: no previously-included files matching 'libuv.pc' found under directory 'deps/libuv'
warning: no previously-included files matching 'ltmain.sh' found under directory 'deps/libuv'
warning: no previously-included files matching 'missing' found under directory 'deps/libuv'
Running '(cd  "/tmp/easy_install-c77ctjiz/gevent-1.5a1/deps/libev"  && sh ./configure -C > configure-output.txt )' in /tmp/easy_install-c77ctjiz/gevent-1.5a1
Embedding c-ares <_setuputils.ConfiguringBuildExt object at 0x7f7111ae4e10> <_setuputils.Extension('gevent.resolver.cares') at 0x7f7111b37358>
Inserted  build/temp.linux-x86_64-3.7/c-ares in include dirs ['build/temp.linux-x86_64-3.7/c-ares', 'src/gevent/resolver', '/tmp/easy_install-c77ctjiz/gevent-1.5a1/deps/c-ares']
Running '(cd  "/tmp/easy_install-c77ctjiz/gevent-1.5a1/deps/c-ares"  && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi   && sh ./configure --disable-dependency-tracking -C CONFIG_COMMANDS=   && cp ares_config.h ares_build.h "$OLDPWD"   && cat ares_build.h   && if [ -r ares_build.h.orig ]; then mv ares_build.h.orig ares_build.h; fi) > configure-output.txt' in /tmp/easy_install-c77ctjiz/gevent-1.5a1/build/temp.linux-x86_64-3.7/c-ares
gcc: error: src/gevent/_greenlet_primitives.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/greenlet.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/_hub_primitives.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/_tracer.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/_hub_local.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/_waiter.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/local.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/_semaphore.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/_abstract_linkable.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/_ident.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/_imap.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/event.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/queue.c: Aucun fichier ou dossier de ce type
gcc: error: src/gevent/libev/corecext.c: Aucun fichier ou dossier de ce type
error: Setup script exited with error: command 'gcc' failed with exit status 1

Cheers.

logan169 commented 5 years ago

I know the issue is maybe more specific to gevent installation, but just wanted to flag it out here as well as it seems to be new.

tariqdaouda commented 5 years ago

Thanks for bringing that up. Gevent doesn't play well with different versions of python and breaks some parts of python's native MP module. Removed it as hard dependency, and reverted back to requests as the default (on the dev branch for now). Users can install it if they wish to use it.