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

python3 compatibility #1

Merged
merged 1 commit into from
Jul 5, 2018
Merged

python3 compatibility #1

merged 1 commit into from
Jul 5, 2018

Conversation

rwb27
Copy link
Owner

@rwb27 rwb27 commented Jul 5, 2018

several python3 related fixes:
ctype char * now requries bytes (was string)
some calculations now seem to need int()

several python3 related fixes:
ctype char * now requries bytes (was string)
some calculations now seem to need int()
@rwb27
Copy link
Owner Author

rwb27 commented Jul 5, 2018

I don't quite understand why the calculations need int(), as I don't think that's my code and I'm fairly sure it worked on Python 3 before... However I can't see that int() will do any harm, so may as well leave it in there.

@rwb27 rwb27 merged commit 5491b01 into rwb27:lens-shading Jul 5, 2018
@codeTom
Copy link

codeTom commented Jul 5, 2018

I don't know why either but it complained that indices must be integers and that (float & int) is not a valid expression without them.

@rwb27
Copy link
Owner Author

rwb27 commented Jul 6, 2018

Fair enough! I wonder if perhaps the cause of the error is elsewhere, perhaps I've done a / rather than a // somewhere else in the code I added, and I didn't notice because I only tested in Python 2. If I get time I might test the upstream picamera module and see if it has the same issue.

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 this pull request may close these issues.

2 participants