I had to use "python3 ./setup.py build" But as this is not that trivial to use python3 on a new raspbian buster and I am not the expert. Is there any advantage to move now to python3 for weewx?
The only reason why I was trying to do it that way is because I anyhow have to newly setup weewx so I wanted to take the advantage and go immediatly with weewx 4 and python 3. But maybe it is better to stay with weewx stable and python2 for the time beeing? Am Donnerstag, 2. Januar 2020 19:32:41 UTC+1 schrieb mwall: > > > > On Thursday, January 2, 2020 at 1:16:06 PM UTC-5, Johannes Ebner wrote: >> >> >> Then I tried to install weewx but getting the following error: >> >> pi@Weewx:~/weewx-4.0.0b6 $ ./setup.py build >> Traceback (most recent call last): >> File "./setup.py", line 21, in <module> >> import configobj >> ImportError: No module named configobj >> >> >> Any hints? >> > > you might want to be explicit about everything, at least until we get all > the dependencies sorted out. if you 'source' an rc file you may not get > what you expect. > > there can be a huge difference between this: > > ./setup.py install > > and this: > > python ./setup.py install > > i find it best to do this: > > python2 ./setup.py install > > or, if you want to use python3: > > python3 ./setup.py install > > then be sure that you do not mix! when you do an 'install' using > setup.py, the shebang line in every entry point in weewx is modified to use > the python with which you invoked it. since some python installations are > python2 and others are python3, it may not be obvious which one you'll get > when you just do 'python'. also, it gets even more complicated if you have > multiple instances of python on the system and they were built to use > shared libraries (i think that is the default?). then the LD_LIBRARY_PATH > also affects which python you'll end up getting. > > m > -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/91bedd42-804d-4d30-b8b3-1d14aaa8bc2e%40googlegroups.com.
