Coder Social home page Coder Social logo

Error on failing run about geohealthcheck HOT 4 CLOSED

geopython avatar geopython commented on August 21, 2024
Error on failing run

from geohealthcheck.

Comments (4)

justb4 avatar justb4 commented on August 21, 2024 1

Issue confirmed. Will fix. IMO a more reliable fix, independent of GHC working dir is to point to an absolute directory derived from the __file__ var for util.py, similar to how the templates dir is determined in line 117:

  loader_dir = os.path.join(os.path.dirname(__file__), 'templates')

from geohealthcheck.

archaeogeek avatar archaeogeek commented on August 21, 2024

Just as a further comment, I managed to get this to work by changing line https://github.com/geopython/GeoHealthCheck/blob/master/GeoHealthCheck/util.py#L121 to point at the directory translations rather than GeoHealthCheck/translations. I don't know (yet) whether this means that there's a difference between running the script manually, compared to running it to schedule.

from geohealthcheck.

justb4 avatar justb4 commented on August 21, 2024

Retested this by taking one OGC-server down, running the GHC 'run' (models.py run) and received email ok. So closing issue.

from geohealthcheck.

archaeogeek avatar archaeogeek commented on August 21, 2024

Confirmed working both manually and via cron. Thanks :-)

from geohealthcheck.

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.