Giter Site home page Giter Site logo

Comments (6)

davidusb-geek avatar davidusb-geek commented on July 18, 2024

Hi @GeoDerp, any idea why is this happening.
The code is trying to look for those files at: /app/src/emhass/data/
But actually they are in: /usr/local/lib/python3.11/dist-packages/emhass/data/
A quick but ugly solution would be to add them manually by copying, for example on line 69 of Dockerfile:

COPY cec_modules.pbz2 /app/src/emhass/data/
COPY cec_inverters.pbz2 /app/src/emhass/data/

But how come that the other files are found without problem, for example: static, template, etc.
Any ideas?

from emhass.

davidusb-geek avatar davidusb-geek commented on July 18, 2024

This error comes from using this as the root path: self.emhass_conf['root_path']
This was changed recently. I just lost track of where do we define that root_path parameter.
I'm releasing a patched version where I'm directly using pathlib.Path(__file__).parent to build a relative path.

from emhass.

davidusb-geek avatar davidusb-geek commented on July 18, 2024

@ragg987, this is solved with patch v0.9.1

from emhass.

ragg987 avatar ragg987 commented on July 18, 2024

Thank you. Confirmed it runs now.

from emhass.

davidusb-geek avatar davidusb-geek commented on July 18, 2024

Great! closing...

from emhass.

GeoDerp avatar GeoDerp commented on July 18, 2024

Sorry @davidusb-geek , I will look at this when I have some free time next.

from emhass.

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.