Closed ajstewart closed 3 years ago
This error was caused by the pip install tkp
not being up-to-date with the current master version here (specifically management.py
which was missing the pipeline config load in the current pypi version).
Who can update the version on PyPi?
4.0 is the current release:
https://pypi.org/project/tkp/4.0/
We only upload released version of trap to pypi, so maybe a 4.1 or 4.0.1 should be made.
This confused me as according to the dates of everything it should be fine.
I tested it again earlier and simply installing via pip (pip install tkp
) gives a version where the delete dataset is broken - there's a difference in the management.py
delete function. When I looked at the code on here I noticed it was different to what I had, so re-installing from a git clone solved the problem. I tried pip install tkp
in a new environment again to confirm it was different and it was. Is it possible that some commits got lost at some stage? As the deldataset commit was done in November 2016 so I'm not sure why it's broken with the pip version.
Myself and the team in Amsterdam are planning a new 4.1 release later this year. We will add this as one of the things to resolve in that release.
there are some differences:
https://github.com/transientskp/tkp/compare/r4.0...master#diff-f1b1a9db1a592973e2ac19e7baa72220
basically, you are mixing the database/code of master release and 4.0, which is not expected to work.
EDIT: had to edit the URL since github formatting messes up the link somehow.
I have set this as an issue to hopefully solve in the upcoming release 5.0
This issue is likely also related to the following issues: #564 #556 So I have added them to the upcoming release 5.0
This issue is resolved when using the matching tkp version for both TraP and the TraP database (i.e. if not sure, make a new database with current TraP version). But you must also not use the latest version of sqlalchemy (see issue #586 ). So, for now, run the following:
pip install sqlalchemy==1.3
As this solves this issue, I am closing the issue.
When I tried to delete a dataset, which I had never tried before, I get the following error: