inveniosoftware / invenio-cli

CLI module for Invenio
https://invenio-cli.readthedocs.io
MIT License
10 stars 43 forks source link

pipenv install fails using invenio-rdm-extension-demo #91

Closed ricsxn closed 4 years ago

ricsxn commented 4 years ago

I'm facing a problem while installing the demo extension as published at:

git clone https://github.com/ppanero/invenio-rdm-extension-demo.git

however the problem exists also using:

cookiecutter https://github.com/inveniosoftware/cookiecutter-invenio-module

Below the output using: 'invenio-rdm-extension-demo'

(local-invenio-rdm) ubuntu@fgtest:~/invenioRDM/infnrdm$ pipenv install --pre -e ../invenio-rdm-extension-demo
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Installing -e ../invenio-rdm-extension-demo…
Adding invenio-rdm-extension-demo to Pipfile's [packages]…
✔ Installation Succeeded 
Installing dependencies from Pipfile.lock (56f3e3)…
An error occurred while installing uwsgi==2.0.18 --hash=sha256:4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583! Will try again.
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 184/184 — 00:00:50
Installing initially failed dependencies…
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/invenioRDM/local-invenio-rdm/lib/python3.6/site-packages/pipenv/core.py", line 1992, in do_install
[pipenv.exceptions.InstallError]:       skip_lock=skip_lock,
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/invenioRDM/local-invenio-rdm/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/invenioRDM/local-invenio-rdm/lib/python3.6/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/invenioRDM/local-invenio-rdm/lib/python3.6/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/invenioRDM/local-invenio-rdm/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting uwsgi==2.0.18', '  Using cached uwsgi-2.0.18.tar.gz (801 kB)', 'Building wheels for collected packages: uwsgi', '  Building wheel for uwsgi (setup.py): started', "  Building wheel for uwsgi (setup.py): finished with status 'error'", '  Running setup.py clean for uwsgi', 'Failed to build uwsgi', 'Installing collected packages: uwsgi', '    Running setup.py install for uwsgi: started', "    Running setup.py install for uwsgi: finished with status 'error'"]
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', '   command: /home/ubuntu/invenioRDM/local-invenio-rdm/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-py23xinj/uwsgi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-py23xinj/uwsgi/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 /tmp/pip-wheel-gxrm79zt', '       cwd: /tmp/pip-install-py23xinj/uwsgi/', '  Complete output (97 lines):', "  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'descriptions'", '    warnings.warn(msg)', '  running bdist_wheel', '  running build', '  running build_py', '  creating build', '  creating build/lib', '  copying uwsgidecorators.py -> build/lib', '  warning: build_py: byte-compiling is disabled, skipping.', '  ', '  installing to build/bdist.linux-x86_64/wheel', '  running install', '  using profile: buildconf/default.ini', "  detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/7/include', '/usr/local/include', '/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed', '/usr/include/x86_64-linux-gnu', '/usr/include']", '  Patching "bin_name" to properly install_scripts dir', '  detected CPU cores: 4', '  configured CFLAGS: -O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_VERSION="\\"2.0.18\\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="18" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\\"\\"" -DUWSGI_YAML -DUWSGI_SSL -DUWSGI_PLUGIN_DIR="\\".\\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"', '  *** uWSGI compiling server core ***', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/utils.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/protocol.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/socket.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/logging.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/master.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/master_utils.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/emperor.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/notify.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/mule.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/subscription.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/stats.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/sendfile.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/async.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/master_checks.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/fifo.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/offload.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/io.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/static.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/websockets.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/spooler.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/snmp.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/exceptions.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/config.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/setup_utils.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/clock.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/init.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/buffer.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/reader.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/writer.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/alarm.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/cron.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/hooks.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/plugins.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/lock.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/cache.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/daemons.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/errors.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/hash.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/master_events.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/chunked.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/queue.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/event.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/signal.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/strings.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/progress.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/timebomb.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/ini.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/fsmon.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/mount.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/metrics.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/plugins_builder.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/sharedarea.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/rpc.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/gateway.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/loop.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/cookie.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/querystring.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/rb_timers.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/transformations.o', '  [thread 2][x86_64-linux-gnu-gcc -pthread] core/uwsgi.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] proto/base.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] proto/uwsgi.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] proto/http.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] proto/fastcgi.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] proto/scgi.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] proto/puwsgi.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] lib/linux_ns.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/yaml.o', '  [thread 3][x86_64-linux-gnu-gcc -pthread] core/ssl.o', '  [thread 0][x86_64-linux-gnu-gcc -pthread] core/legion.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/dot_h.o', '  [thread 1][x86_64-linux-gnu-gcc -pthread] core/config_py.o', '  *** uWSGI compiling embedded plugins ***', '  [thread 1][x86_64-linux-gnu-gcc -pthread] plugins/python/python_plugin.o', '  In file included from plugins/python/python_plugin.c:1:0:', '  plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: No such file or directory', '   #include <Python.h>', '            ^~~~~~~~~~', '  compilation terminated.', '  ----------------------------------------', '  ERROR: Failed building wheel for uwsgi', '    ERROR: Command errored out with exit status 1:', '     command: /home/ubuntu/invenioRDM/local-invenio-rdm/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-py23xinj/uwsgi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-py23xinj/uwsgi/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' install --record /tmp/pip-record-wchlpyw_/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/invenioRDM/local-invenio-rdm/include/site/python3.6/uwsgi', '         cwd: /tmp/pip-install-py23xinj/uwsgi/', '    Complete output (106 lines):', "    /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'descriptions'", '      warnings.warn(msg)', '    running install', '    using profile: buildconf/default.ini', "    detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/7/include', '/usr/local/include', '/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed', '/usr/include/x86_64-linux-gnu', '/usr/include']", '    Patching "bin_name" to properly install_scripts dir', '    detected CPU cores: 4', '    configured CFLAGS: -O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_VERSION="\\"2.0.18\\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="18" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\\"\\"" -DUWSGI_YAML -DUWSGI_SSL -DUWSGI_PLUGIN_DIR="\\".\\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"', '    *** uWSGI compiling server core ***', '    core/utils.o is up to date', '    core/protocol.o is up to date', '    core/socket.o is up to date', '    core/logging.o is up to date', '    core/master.o is up to date', '    core/master_utils.o is up to date', '    core/emperor.o is up to date', '    core/notify.o is up to date', '    core/mule.o is up to date', '    core/subscription.o is up to date', '    core/stats.o is up to date', '    core/sendfile.o is up to date', '    core/async.o is up to date', '    core/master_checks.o is up to date', '    core/fifo.o is up to date', '    core/offload.o is up to date', '    core/io.o is up to date', '    core/static.o is up to date', '    core/websockets.o is up to date', '    core/spooler.o is up to date', '    core/snmp.o is up to date', '    core/exceptions.o is up to date', '    core/config.o is up to date', '    core/setup_utils.o is up to date', '    core/clock.o is up to date', '    core/init.o is up to date', '    core/buffer.o is up to date', '    core/reader.o is up to date', '    core/writer.o is up to date', '    core/alarm.o is up to date', '    core/cron.o is up to date', '    core/hooks.o is up to date', '    core/plugins.o is up to date', '    core/lock.o is up to date', '    core/cache.o is up to date', '    core/daemons.o is up to date', '    core/errors.o is up to date', '    core/hash.o is up to date', '    core/master_events.o is up to date', '    core/chunked.o is up to date', '    core/queue.o is up to date', '    core/event.o is up to date', '    core/signal.o is up to date', '    core/strings.o is up to date', '    core/progress.o is up to date', '    core/timebomb.o is up to date', '    core/ini.o is up to date', '    core/fsmon.o is up to date', '    core/mount.o is up to date', '    core/metrics.o is up to date', '    core/plugins_builder.o is up to date', '    core/sharedarea.o is up to date', '    core/rpc.o is up to date', '    core/gateway.o is up to date', '    core/loop.o is up to date', '    core/cookie.o is up to date', '    core/querystring.o is up to date', '    core/rb_timers.o is up to date', '    core/transformations.o is up to date', '    core/uwsgi.o is up to date', '    proto/base.o is up to date', '    proto/uwsgi.o is up to date', '    proto/http.o is up to date', '    proto/fastcgi.o is up to date', '    proto/scgi.o is up to date', '    proto/puwsgi.o is up to date', '    lib/linux_ns.o is up to date', '    core/yaml.o is up to date', '    core/ssl.o is up to date', '    core/legion.o is up to date', '    [thread 1][x86_64-linux-gnu-gcc -pthread] core/dot_h.o', '    [thread 2][x86_64-linux-gnu-gcc -pthread] core/config_py.o', '    *** uWSGI compiling embedded plugins ***', '    [thread 0][x86_64-linux-gnu-gcc -pthread] plugins/python/python_plugin.o', '    [thread 3][x86_64-linux-gnu-gcc -pthread] plugins/python/pyutils.o', '    [thread 2][x86_64-linux-gnu-gcc -pthread] plugins/python/pyloader.o', '    [thread 1][x86_64-linux-gnu-gcc -pthread] plugins/python/wsgi_handlers.o', '    In file included from plugins/python/python_plugin.c:1:0:', '    plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: No such file or directory', '     #include <Python.h>', '              ^~~~~~~~~~', '    compilation terminated.', '    In file included from plugins/python/pyutils.c:1:0:', '    plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: No such file or directory', '     #include <Python.h>', '              ^~~~~~~~~~', '    compilation terminated.', '    In file included from plugins/python/pyloader.c:1:0:', '    plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: No such file or directory', '     #include <Python.h>', '              ^~~~~~~~~~', '    compilation terminated.', '    In file included from plugins/python/wsgi_handlers.c:1:0:', '    plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: No such file or directory', '     #include <Python.h>', '              ^~~~~~~~~~', '    compilation terminated.', '    ----------------------------------------', 'ERROR: Command errored out with exit status 1: /home/ubuntu/invenioRDM/local-invenio-rdm/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-py23xinj/uwsgi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-py23xinj/uwsgi/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' install --record /tmp/pip-record-wchlpyw_/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/invenioRDM/local-invenio-rdm/include/site/python3.6/uwsgi Check the logs for full command output.']
ERROR: ERROR: Package installation failed...
  ☤  ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:10

The test was executed on top of: Ubuntu 18.04 Python 3.6.9 pipenv, version 2018.11.26

ricsxn commented 4 years ago

I've been able to get a successful module installation:

(local-invenio-rdm) ubuntu@fgtest:~/invenioRDM$ cookiecutter https://github.com/inveniosoftware/cookiecutter-invenio-module
You've downloaded /home/ubuntu/.cookiecutters/cookiecutter-invenio-module before. Is it okay to delete and re-download it? [yes]: 
project_name [Invenio-FunGenerator]: infnmod
project_shortname [infnmod]: 
package_name [infnmod]: 
github_repo [inveniosoftware/infnmod]: 
description [Invenio module that adds more fun to the platform.]: 
author_name [CERN]: 
author_email [info@inveniosoftware.org]: 
year [2020]: 
copyright_holder [CERN]: 
copyright_by_intergovernmental [True]: 
superproject [Invenio]: 
transifex_project [infnmod]: 
extension_class [infnmod]: 
config_prefix [INFNMOD]: 
-------------------------------------------------------------------------------

Skeleton generated.
Please fix the following TODOs before you use the generated files:
./docs/conf.py-317-# Example configuration for intersphinx: refer to the Python standard library.
./docs/conf.py-318-intersphinx_mapping = {
./docs/conf.py-319-    'python': ('https://docs.python.org/', None),
./docs/conf.py:320:    # TODO: Configure external documentation references, eg:
./docs/conf.py-321-    # 'Flask-Admin': ('https://flask-admin.readthedocs.io/en/latest/', None),
./docs/conf.py-322-}
./docs/conf.py-323-
--
./README.rst-25-
./README.rst-26-Invenio module that adds more fun to the platform.
./README.rst-27-
./README.rst:28:TODO: Please provide feature overview of module
./README.rst-29-
./README.rst-30-Further documentation is available on
./README.rst-31-https://infnmod.readthedocs.io/
--
./.travis.yml-52-  provider: pypi
./.travis.yml-53-  user: inveniosoftware
./.travis.yml-54-  password:
./.travis.yml:55:    secure: TODO:PYPISECUREHASH
./.travis.yml-56-  distributions: "compile_catalog sdist bdist_wheel"
./.travis.yml-57-  on:
./.travis.yml-58-    tags: true
--
./infnmod/templates/infnmod/index.html-8-{%- extends config.INFNMOD_BASE_TEMPLATE %}
./infnmod/templates/infnmod/index.html-9-
./infnmod/templates/infnmod/index.html-10-{%- block page_body %}
./infnmod/templates/infnmod/index.html:11:TODO: Example template, please remove if you do not need it.
./infnmod/templates/infnmod/index.html-12-{{_('Welcome to %(module_name)s', module_name=module_name)}}
./infnmod/templates/infnmod/index.html-13-{%- endblock %}
./infnmod/templates/infnmod/index.html-14-
--
./infnmod/views.py-7-
./infnmod/views.py-8-"""Invenio module that adds more fun to the platform."""
./infnmod/views.py-9-
./infnmod/views.py:10:# TODO: This is an example file. Remove it if you do not need it, including
./infnmod/views.py-11-# the templates and static folders as well as the test case.
./infnmod/views.py-12-
./infnmod/views.py-13-from __future__ import absolute_import, print_function
--
./infnmod/ext.py-19-
./infnmod/ext.py-20-    def __init__(self, app=None):
./infnmod/ext.py-21-        """Extension initialization."""
./infnmod/ext.py:22:        # TODO: This is an example of translation string with comment. Please
./infnmod/ext.py-23-        # remove it.
./infnmod/ext.py-24-        # NOTE: This is a note to a translator.
./infnmod/ext.py-25-        _('A translation string')
--
./infnmod/config.py-7-
./infnmod/config.py-8-"""Invenio module that adds more fun to the platform."""
./infnmod/config.py-9-
./infnmod/config.py:10:# TODO: This is an example file. Remove it if your package does not use any
./infnmod/config.py-11-# extra configuration variables.
./infnmod/config.py-12-
./infnmod/config.py-13-INFNMOD_DEFAULT_VALUE = 'foobar'
--
./requirements-devel.txt-5-# infnmod is free software; you can redistribute it and/or modify it under
./requirements-devel.txt-6-# the terms of the MIT License; see LICENSE file for more details.
./requirements-devel.txt-7-#
./requirements-devel.txt:8:# TODO: Add development versions of some important dependencies here to get a
./requirements-devel.txt-9-#       warning when there are breaking upstream changes, e.g.:
./requirements-devel.txt-10-#
./requirements-devel.txt-11-#     -e git+git://github.com/mitsuhiko/werkzeug.git#egg=Werkzeug
--
./tests/conftest.py-28-def celery_config():
./tests/conftest.py-29-    """Override pytest-invenio fixture.
./tests/conftest.py-30-
./tests/conftest.py:31:    TODO: Remove this fixture if you add Celery support.
./tests/conftest.py-32-    """
./tests/conftest.py-33-    return {}
./tests/conftest.py-34-
--
./.tx/config-5-# infnmod is free software; you can redistribute it and/or modify it under
./.tx/config-6-# the terms of the MIT License; see LICENSE file for more details.
./.tx/config-7-
./.tx/config:8:# TODO: Transifex integration
./.tx/config-9-#
./.tx/config-10-# 1) Create message catalog:
./.tx/config-11-#    $ python setup.py extract_messages
--
./setup.py-58-    version=version,
./setup.py-59-    description=__doc__,
./setup.py-60-    long_description=readme + '\n\n' + history,
./setup.py:61:    keywords='invenio TODO',
./setup.py-62-    license='MIT',
./setup.py-63-    author='CERN',
./setup.py-64-    author_email='info@inveniosoftware.org',
--
./setup.py-77-        'invenio_i18n.translations': [
./setup.py-78-            'messages = infnmod',
./setup.py-79-        ],
./setup.py:80:        # TODO: Edit these entry points to fit your needs.
./setup.py-81-        # 'invenio_access.actions': [],
./setup.py-82-        # 'invenio_admin.actions': [],
./setup.py-83-        # 'invenio_assets.bundles': [],
--
./MANIFEST.in-5-# infnmod is free software; you can redistribute it and/or modify it under
./MANIFEST.in-6-# the terms of the MIT License; see LICENSE file for more details.
./MANIFEST.in-7-
./MANIFEST.in:8:# TODO: Generate this manifest file by running the following commands:
./MANIFEST.in-9-# (please sort the lines in this file after running below commands)
./MANIFEST.in-10-#
./MANIFEST.in-11-#  git init
(local-invenio-rdm) ubuntu@fgtest:~/invenioRDM$ cd invenio-infn/
(local-invenio-rdm) ubuntu@fgtest:~/invenioRDM/invenio-infn$ pipenv install --pre -e ../infnmod
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Creating a Pipfile for this project…
Installing -e ../infnmod…
Adding infnmod to Pipfile's [packages]…
✔ Installation Succeeded 
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
✔ Success! 
Updated Pipfile.lock (51000a)!
Installing dependencies from Pipfile.lock (51000a)…
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 11/11 — 00:00:04

feel free to close the issue if you are not capable to reproduce the problem.

fenekku commented 4 years ago

Hi @ricsxn !

Sorry for the late reply. The original error seems to be missing python headers:

Python.h: No such file or directory', ' #include '

Make sure to have this package libpython3.6-dev installed. Seems like you figured it out, so I will close this. Thanks for reporting, we will have better requirements documentation.