Closed miguelcleon closed 6 years ago
@lsetiawan @ocefpaf I updated code for django 2.0.1 and python 3.6 travis is still failing though. Maybe something I did with the travis.yml
is wrong?
hs_restclient
isn't on a conda channel, maybe it can be added to conda-forge? This is a python REST client for hydroshare.org I'm using to export data. https://pypi.python.org/pypi/hs_restclient I added it as a pip install in travis.yml
oh I see django-fixture-magic is also not on a conda channel.
@miguelcleon see https://github.com/conda-forge/staged-recipes/pull/4839
Once that PR is merged those packages will be available on the conda-forge channel.
Great, thanks @ocefpaf it looks like travis got passed the enivronment build errors and is now encountering issues in the ODM2 Admin code I need to look at. One more django package will need to be added to conda-forge for this social-auth-app-django
can that be added as well?
One more django package will need to be added to conda-forge for this
social-auth-app-django
can that be added as well?
Yep. See https://github.com/conda-forge/staged-recipes/pull/4840
The error on travis is now OSError: /home/travis/miniconda/envs/TEST/lib/libgdal.so: cannot open shared object file: No such file or directory
Maybe need to install gdal in travis.yml? gdal has been a requirement for a long time so I'm not sure.
Maybe need to install gdal in travis.yml?
Not really. It is something else. Let me check this later today and I'll get back to you.
For the last update the error was psycopg2.OperationalError: FATAL: role "user" does not exist
, I've added a blank ODM2 database which was missing. I'm not sure how travis sets up postgresql. @lsetiawan ? Maybe I need the travis.yml from the testing branch? I think I've been building off an older one.
it's failing on test execution.
changing setup.py didn't help I'm still gettingpsycopg2.OperationalError: FATAL: role "user" does not exist
The problem I think has to do with the test database django creates for testing.
I thought maybe I fixed it but now I'm getting the below error which seems odd. @ocefpaf any ideas about this?
$ if [[ $TEST_TARGET == 'default' ]]; then python $TRAVIS_BUILD_DIR/manage.py test tests/; python fi
/home/travis/.travis/job_stages: eval: line 58: syntax error: unexpected end of file
The command "if [[ $TEST_TARGET == 'default' ]]; then python $TRAVIS_BUILD_DIR/manage.py test tests/; python fi" exited with 1.
I think I see it.
Yes!! it worked thanks much @ocefpaf and @lsetiawan ! 🍾 🎆
updates for compatability with django 2.0 and python 3.6. Also updates for exporting to hydroshare functionality.