kilianknoll / DWDForecast

Python module to query the DWD Mosmix data for irridation - and other relevant data to forecast solar generation
GNU General Public License v3.0
34 stars 4 forks source link

object has no attribute 'mylatitude' #10

Open typxxi opened 1 year ago

typxxi commented 1 year ago

Windows 10 + python 3.10.4 + DWD forecast from today

I am new so I set it all up and then ran into the error mentioned above.

So I went back to your genuine ini and script file and got the same error again. I had been editing both files using notepad++ but nothing else, even your weatherstation is used and it did not work.

Starting dwdforecast init ... Hit error during configparse No section: 'DWD' I am clueless ... Hit some other error .... ! 'dwdforecast' object has no attribute 'mylatitude' Traceback (most recent call last): File "C:\Users\typ\DWDForecast-by-Kilian\dwdforecast.py", line 764, in myThread1= dwdforecast(myQueue1) File "C:\Users\typ\DWDForecast-by-Kilian\dwdforecast.py", line 219, in init self.mypvliblocation = Location(latitude = self.mylatitude, AttributeError: 'dwdforecast' object has no attribute 'mylatitude'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\typ\DWDForecast-by-Kilian\dwdforecast.py", line 810, in myThread1.event.set() NameError: name 'myThread1' is not defined

Not sure, what is wrong cause I have tried it again on a second system and no luck, same bug again.