peted-davis / WeatherFlow_PiConsole

Raspberry Pi Python console for WeatherFlow Tempest and Smart Home Weather Stations
GNU General Public License v3.0
156 stars 20 forks source link

Python error after upgrading to v23.10.1 #123

Closed cmoo92 closed 10 months ago

cmoo92 commented 10 months ago

Describe the bug After running the upgrade, when I tried to start the console I got this error message:

/usr/local/bin/wfpiconsole: line 811: /home/username/wfpiconsole/venv/bin/python3: No such file or directory I was able to fix the issue by running the wfpiconsole install command again.

Hardware/OS/Version (please complete the following information):

peted-davis commented 10 months ago

Thanks for the bug report - I'll take a look. Can you open a terminal and run this command: echo $USER and let me know the output?

cmoo92 commented 10 months ago

The only output is just my username

peted-davis commented 10 months ago

The only output is just my username

What is your username? According to the error you shared, the PiConsole thinks your username is 'username'. Is that correct?

cmoo92 commented 10 months ago

Oh, sorry for the confusion. I had just modified it in my original submission to obfuscate my actual username and replaced it with the generic term "username". Theecho $USER command does return my actual username.

peted-davis commented 10 months ago

Ah I see! So to double check, echo $USER returns the correct username, and that also matches the username that was shown in the error before you obfuscated? If so, it's not an error in the path, and I'll have to keep investigating

cmoo92 commented 10 months ago

That is correct, user names were the same so it's not an error in the path.

peted-davis commented 10 months ago

OK, this should be fixed now. There was an issue with the installer where it was deleting the new venv folder while fetching the latest version of the code.