Pyosch / vpplib

GNU General Public License v3.0
32 stars 20 forks source link

error calling from model.xxx #42

Open SebastianTorres393 opened 1 year ago

SebastianTorres393 commented 1 year ago

I am trying to follow the tutorials, but every time I use the vpplib library, I get an error when calling "from model.VPPEnvironment import VPPEnvironment" or "from model xxxx", stating that it does not exist, and the same error occurs for everything else. Can someone help me with this beginner error?

Thanks a lot.

SebastianTorres393 commented 1 year ago

that is the error that i have: ModuleNotFoundError Traceback (most recent call last) Cell In[1], line 1 ----> 1 from model.VPPEnvironment import VPPEnvironment 3 #Values for environment 4 start = '2015-03-01 00:00:00'

ModuleNotFoundError: No module named 'model'

Pyosch commented 1 year ago

Hi Sebastian, thats actually not a beginner error. The tutorial I think you refer to just really needs an update. Please have a look at the test-cases in the main folder of the repo to get startet for the time being. I'll upload a newer tutorial once I get around to it. Sorry for the inconvenience.

SebastianTorres393 commented 1 year ago

Ohhh ok! Thank you!! And Thanks you for your quickly answer Have a nice day..

jiuzhuaxiong commented 1 year ago

I am trying to follow the tutorials, but every time I use the vpplib library, I get an error when calling "from model.VPPEnvironment import VPPEnvironment" or "from model xxxx", stating that it does not exist, and the same error occurs for everything else. Can someone help me with this beginner error?

Thanks a lot.

Can you send me a picture?

Pyosch commented 1 year ago

Do you have a specific question @jiuzhuaxiong? I removed the outdated tutorial. This issue is just a reminder to add an update at some point. For now, if you want to get started with the library, please try the test**.py files which correspond to each of the technologies.