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

Script Error #15

Open
Shaunkempson opened this issue Jul 15, 2023 · 2 comments
Open

Script Error #15

Shaunkempson opened this issue Jul 15, 2023 · 2 comments

Comments

@Shaunkempson
Copy link

Hello,

When running your script on RP4, seems to encounter issue with as follows:

~/bme680_to_influxdb $ python senddata.py “./config.ini”
/home/pi/bme680_to_influxdb/senddata.py:22: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(sys.argv) is 2:
KeyError parsing config.ini file. Check file and its structure!

Can you assist me with this issue, script was working fine to what looks like a newer version of python being 3.9.2+

@ayeks
Copy link
Owner

ayeks commented Aug 17, 2023

Hey, I do not run the script myself anymore. Have you tried to replace the is with == in line 22 of senddata.py? https://github.com/ayeks/bme680_to_influxdb/blob/master/senddata.py#L22C1-L22C23

Please comment if it works and I can change it in my script.

Cheers
Lars

@Shaunkempson
Copy link
Author

Shaunkempson commented Sep 30, 2023 via email

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

2 participants