Closed ricsxn closed 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.
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.
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'
The test was executed on top of: Ubuntu 18.04 Python 3.6.9 pipenv, version 2018.11.26