Coder Social home page Coder Social logo

Comments (2)

armgilles avatar armgilles commented on June 22, 2024

Dans Heroku

Lorsque qu'une fonction de vcub_keeper est lancé :

from vcub_keeper.production.data import get_data_from_api_by_station

station_json = get_data_from_api_by_station(station_id=19, 
                                                start_date='2020-10-14',
                                                stop_date='2020-10-17')

Il y a comme une sorte de cascade d'import qui se termine mal (uniquement dans heroku). Timeline de l'exécution :

  • vcub_keeper.production.data.get_data_from_api_by_station()
  • vcub_keeper.transform.features_factory
  • vcub_keeper.reader.reader.read_meteo()
  • from vcub_keeper.config import ROOT_DATA_RAW, ROOT_DATA_REF, ROOT_DATA_CLEAN
  • ROOT_DATA_RAW = ROOT_DIR + '/data/raw/' L'erreur est ici.

ROOT_DIR est égal à None malgré plusieurs modification dans config.py (2666e9c). Comme on est dans l'environnement de Heroku, on se retrouve à cet endroit /app/.heroku/python/lib/python3.8/site-packages/vcub_keeper/config.py inacessible pour un fichier de conf de variables d'env.

from vcub_keeper.

armgilles avatar armgilles commented on June 22, 2024

L'erreur est liée à une configuration Heroku. Il suffit d'ajouter une variable d'environnement dans Heroku https://devcenter.heroku.com/articles/config-vars

from vcub_keeper.

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.