ckan / ckanext-dcat

CKAN ♥ DCAT
164 stars 142 forks source link

DCAT installation error #283

Closed ivanDvernitsky closed 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 && \