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

Basic Installation guidance needed #4

Open
WajihaNazHasan opened this issue Sep 22, 2024 · 3 comments
Open

Basic Installation guidance needed #4

WajihaNazHasan opened this issue Sep 22, 2024 · 3 comments

Comments

@WajihaNazHasan
Copy link

Hello,

I would like to work with pylovo to create a synthetic LV Distribution grid. I am facing very basic issues with running the example code through VS Code after cloning the repository from github. Is there someone who can help me with this? I am a very beginner into this. It would be nice if one can share an email address and I can discuss it there.

I would be highly grateful for this.

Thanks,

@ojdo
Copy link

ojdo commented Sep 22, 2024

Hey, why don't you describe the steps you performed and the errors/unexpected behaviour/step where you are stuck here?

As this repo aims to provide a comprehensive installation guide, any missing step is an issue that might benefit any future readers of this issue or an updated guide.

@WajihaNazHasan
Copy link
Author

WajihaNazHasan commented Sep 22, 2024

I am using VS Code. I would like to first see the already made synthetic grid 'example' and then would try to make a new one for a different country.

So after cloning the repository, making the virtual environment and running pip install -e .,I tried to run the 0_basic_grid_generation file and the error it shows is "No module named 'plotting.plot_networks'; 'plotting' is not a package" although I tried downloading the plotting.py file and placed it in the example folder. How to resolve the issue so at least I am able to run the code and view the existing network.

Since I am a beginner and very new into this I need guidance.
Thanks

@bereba
Copy link
Contributor

bereba commented Sep 30, 2024

Hi Wajiha,
depending on the OS you are using the problem described might be solved by appending the repository root to your pythonpath:
Try out export PYTHONPATH="<directory_path>\pylovo:$PYTHONPATH" for linux or mac... Or define it within VS code.

Apart from this, to set up pylovo on your local machine, there are several further steps described in the installation guide that you have to follow and which you did not mention so far.

If you want to use it later to set up a database for a application in another country like India, you should follow all steps to set up a local database on your machine. To do so, I can provide you with some basic data for Germany so you can get an idea for the application.
Then afterwards, you would need to collect these raw data for your region of interest. For the ways, the approach to do so is also described in our documentation. For the buildings, you would need to collect some data (e.g., from OSM) by yourself according to the structure defined in the "buildings_tem" table. To have an idea the table structures can be found in the "config_data" module.

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