ckan / ckan-docker

Scripts and images to run CKAN using Docker Compose
84 stars 161 forks source link

can't install DCAT #151

Open ivanDvernitsky opened 1 month ago

ivanDvernitsky commented 1 month ago

When trying to install DCAT with the script provided in dockerfile.dev I immediately get an error trying to build Docker.

RUN  pip3 install -e git+https://github.com/ckan/ckanext-dcat.git@v0.0.6#egg=ckanext-dcat && \
     pip3 install -r https://raw.githubusercontent.com/ckan/ckanext-dcat/v0.0.6/requirements.txt
'done'
11.34 Collecting rdflib==4.2.1 (from -r https://raw.githubusercontent.com/ckan/ckanext-dcat/v0.0.6/requirements.txt (line 1))
11.45   Downloading rdflib-4.2.1.tar.gz (889 kB)
11.57      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 889.5/889.5 kB 8.2 MB/s eta 0:00:00
12.31   Preparing metadata (setup.py): started
13.17   Preparing metadata (setup.py): finished with status 'error'
13.17   error: subprocess-exited-with-error
13.17   
13.17   × python setup.py egg_info did not run successfully.
13.17   │ exit code: 1
13.17   ╰─> [11 lines of output]
13.17       no previously-included directories found matching 'docs/_build'
13.17       warning: no previously-included files matching '*.pyc' found anywhere in distribution
13.17       warning: no previously-included files matching '*$py.class' found anywhere in distribution
13.17       Traceback (most recent call last):
13.17         File "<string>", line 2, in <module>
13.17         File "<pip-setuptools-caller>", line 34, in <module>
13.17         File "/tmp/pip-install-f2p4v6n1/rdflib_977d0e9dfa1c4a449cab88b10d46a7ee/setup.py", line 46, in <module>
13.17           kwargs['src_root'] = setup_python3()
13.17         File "/tmp/pip-install-f2p4v6n1/rdflib_977d0e9dfa1c4a449cab88b10d46a7ee/setup.py", line 30, in setup_python3
13.17           util.run_2to3(outfiles_2to3)
13.17       AttributeError: module 'distutils.util' has no attribute 'run_2to3'
13.17       [end of output]
13.17   
13.17   note: This error originates from a subprocess, and is likely not a problem with pip.
13.18 error: metadata-generation-failed

Tried to replace it with a later version compatable with CKAN 2.10

#RUN  pip3 install -e git+https://github.com/ckan/ckanext-dcat.git@v1.5.0#egg=ckanext-dcat && \ 
#pip3 install -r ${APP_DIR}/src/ckanext-dcat/requirements.txt && \

I get the same problem when trying to install DOI

vijaynyaya commented 1 month ago

I've been getting the same error for all the CKAN extensions that I attempted to install. For now, I'm using the install from source method by relying on docker-compose.dev.yml and setting the SRC_EXTENSIONS_DIR environment variable to ${APP_DIR}/src

emiliopardo commented 2 weeks ago

I've been getting the same error for all the CKAN extensions that I attempted to install. For now, I'm using the install from source method by relying on docker-compose.dev.yml and setting the SRC_EXTENSIONS_DIR environment variable to ${APP_DIR}/src

Please

Can you explain your solution? step by step

I have de same problem

thx