Comments (3)
Thank you for the response @FuhuXia! This clears up a lot, it makes sense that installing duplicate/older requirements could cause issues. Currently I'm able to get away with not installing the requirements for the datajson extension, I ran a test harvest on https://open.gsa.gov/data.json and everything seems to have ran correctly.
from ckanext-datajson.
I was able to get it working by not installing the requirements after installing the extension, not sure why that fixed it though.
Updated dokcerfile.dev:
FROM ckan/ckan-dev:2.10
### Harvester ###
RUN pip3 install -e 'git+https://github.com/ckan/ckanext-harvest.git@master#egg=ckanext-harvest'
RUN pip3 install -r ${APP_DIR}/src/ckanext-harvest/pip-requirements.txt
# will also require gather_consumer and fetch_consumer processes running (please see https://github.com/ckan/ckanext-harvest)
## DCAT ###
RUN pip3 install -e 'git+https://github.com/ckan/ckanext-dcat.git#egg=ckanext-dcat'
RUN pip3 install -r ${APP_DIR}/src/ckanext-dcat/requirements.txt
### S3FileStore ###
RUN pip3 install -e 'git+https://github.com/keitaroinc/ckanext-s3filestore#egg=ckanext-s3filestore'
COPY plugins/s3filestore/uploader.py ${APP_DIR}/src/ckanext-s3filestore/ckanext/s3filestore/uploader.py
COPY plugins/s3filestore/click_commands.py ${APP_DIR}/src/ckanext-s3filestore/ckanext/s3filestore/click_commands.py
RUN pip3 install -r ${APP_DIR}/src/ckanext-s3filestore/requirements.txt
### DataJson ###
RUN pip3 install -e 'git+https://github.com/GSA/ckanext-datajson#egg=ckanext-datajson'
# Clone the extension(s) your are writing for your own project in the `src` folder
# to get them mounted in this image at runtime
# Copy custom initialization scripts
COPY docker-entrypoint.d/* /docker-entrypoint.d/
# Apply any patches needed to CKAN core or any of the built extensions (not the
# runtime mounted ones)
COPY patches ${APP_DIR}/patches
RUN for d in $APP_DIR/patches/*; do \
if [ -d $d ]; then \
for f in `ls $d/*.patch | sort -g`; do \
cd $SRC_DIR/`basename "$d"` && echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; patch -p1 < "$f" ; \
done ; \
fi ; \
done
from ckanext-datajson.
- Installing packages/versions defined in
ckanext-datajson/requirements.txt
is recommended. But since those packages are pretty general, most likely there are installed from other extensions or ckan core, so you might be able to get away without it. - Installing
ckanext-datajson/dev-requirements.txt
is not needed, unless you are doing datajson extension development and need to test your code change. - cd into ckanext-datajson/ and run setup is not needed since it is already installed by previous command
pip3 install
. - Not sure about the Alembic error message. Using your Dockerfile steps I could not replicated it. If you can remove docker/db containers/networks/volumes before each docker run, it might help to stop Alembic glitches.
- Do pay attention to the first line in the https://github.com/GSA/ckanext-datajson/blob/main/requirements.txt#L1-L2. I just noticed it defines a old version of harvest extention. I will have it updated to the latest stable release version of harvest, or you can grab the change from this PR to see if it helps to eliminate the Alembic error.
from ckanext-datajson.
Related Issues (17)
- Remove 'tags' and 'extrasRollup' fields
- Wrappers.mime_type_it not identifying formats
- Use CKAN dataset URI as identifier
- Use CKAN tags as POD keyword HOT 2
- Separate wrapper functions into CKAN core and extra
- Initialization Requires HTTPS access to project-open-data.cio.gov HOT 1
- Non Fork ckanext-datajson GitHub Project HOT 1
- ImportError: 'module' object has no attribute 'DataJsonPlugin' HOT 4
- data.json harvest improvements
- ImportError: 'module' object has no attribute 'DataJsonHarvester' HOT 1
- False positive validation error for URLs HOT 5
- 404 on /data.jsonld and internal server error on /pod/validate (wrong param count for do_validation())
- Upgrade this extension to CKAN 2.8 HOT 9
- Organization UI controls to manage data.json are not appearing HOT 8
- ImportError: cannot import name Feature HOT 1
- 404 errors for DCAT-US are not showing errors properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckanext-datajson.