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

specify python version when setting env variables #8

Closed
letmejustputthishere opened this issue Jan 27, 2020 · 0 comments · Fixed by #9
Closed

specify python version when setting env variables #8

letmejustputthishere opened this issue Jan 27, 2020 · 0 comments · Fixed by #9

Comments

@letmejustputthishere
Copy link
Member

for me the CRC=$(python -c "import crc8;h=crc8.crc8();h.update('$ID'.decode('hex'));print(h.hexdigest())") command only works with python2 while python3 throws AttributeError: 'str' object has no attribute 'decode'. i think there might be some people out there whose python points to python3, not python2. maybe specify this to avoid confusion?

ggreif added a commit that referenced this issue Jan 27, 2020
Otherwise this code fails with `python3`.

Fixes #8
@ggreif ggreif closed this as completed in #9 Jan 28, 2020
ggreif added a commit that referenced this issue Jan 28, 2020
* Explicitly use python2
 Otherwise this code fails with `python3`.
 Fixes #8
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

Successfully merging a pull request may close this issue.

1 participant