Giter VIP home page Giter VIP logo

Comments (5)

Mandalka avatar Mandalka commented on May 26, 2024

Thanks for you bug report. The packages are running with this settings for the LTS versions. This happens if new Django version on newer Ubuntu versions and Debian testing.

Will change that so it runs on all.

from open-semantic-search-apps.

caelor avatar caelor commented on May 26, 2024

Thanks. I was conscious that Ubuntu 18.04 is schedule to be a new LTS build so I thought it was worth raising to be ready.

from open-semantic-search-apps.

Mandalka avatar Mandalka commented on May 26, 2024

If there are errors for example on crawling because of that:

After setting to relative paths you can do
cd /var/lib/opensemanticsearch
python3 manage.py migrate
so the DB upgrade should work with newer Django versions, too instead of failing because of absolute path settings.

from open-semantic-search-apps.

hpiedcoq avatar hpiedcoq commented on May 26, 2024

Thanks for driving me here.

So as far as I understand I have to remove the leading slash of both :

open-semantic-search-apps/src/csv_manager/models.py

Line 12 in 3260c48
 file = models.FileField(upload_to='**/**var/opensemanticsearch/csv', blank = True) 

and

open-semantic-search-apps/src/ontologies/models.py

Line 16 in 3260c48
file = models.FileField(upload_to='**/**var/opensemanticsearch/ontologies', blank = True) 

I did it then try to

cd /var/lib/opensemanticsearch
python3 manage.py migrate

but it doesn't work.

from open-semantic-search-apps.

Mandalka avatar Mandalka commented on May 26, 2024

With 9a2e6e5 the Django apps now use relative paths for management of uploads, so new installations / the new package should run on new Django and coming Ubuntu LTS version, too.

If Linux is upgraded on an existing installations, you have to remove the leading path /var/lib/opensemanticsearch/ from the paths csv and ontologies in your Django database located in /var/lib/opensemanticsearch/db.sqlite3 ...

If a fresh installation (no entries in database!) failed, just delete the database /var/lib/opensemanticsearch/db.sqlite3 before upgrade with new package.

from open-semantic-search-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.