Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with running Python code #11

Open
nicobrinkel opened this issue Jul 5, 2023 · 2 comments
Open

Issue with running Python code #11

nicobrinkel opened this issue Jul 5, 2023 · 2 comments

Comments

@nicobrinkel
Copy link

Hi all,

Thanks for this amazing project! I tried running the example file 'single_household.py' using Spyder (Python 3.9.12) by cloning the Git-project. When running this code, the following error occured:
File ~\surfdrive\Bestanden\Grid tariff design paper\Scripts\pylpg\examples\single_household.py:15
electricity_profile = data["Electricity_HH1"]

TypeError: 'NoneType' object is not subscriptable

I tried looking into the files, and looking into the 'lpg_execution.py' script, but I did not find the error. Would you know what this error could be?

Thanks!
Best regards,
Nico Brinkel

@Pawangit042021
Copy link

Hello,

I am also facing the same problem. Has this been resolved ?

Thanks.
Best regards,
Pawan

@knife2meetu
Copy link

knife2meetu commented Nov 22, 2023

Hi,

in my case, the issue was that I did not have Microsoft's .NET Desktop Runtime installed which is required to start the load profile generator. Without the LPG running in the first place, the library can only return empty values, hence the "None" output you get.

You can verify if that is the problem by heading into your pyLPG directory and trying to run the "LoadProfileGenerator.exe" you'll find there. It will actually take you to the .NET download page if necessary. After installation (& possibly a reboot) you should be fine.

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants