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

Windows Python3 incomatability fix in np reshape expecting float #386

Closed
wants to merge 1 commit into from
Closed

Windows Python3 incomatability fix in np reshape expecting float #386

wants to merge 1 commit into from

Conversation

adelavega
Copy link

In #279 and #376, two users had issues in Python3 on Windows reading audio. Looks like this is due to np reshape expecting an int but getting a float, due to python 3 not "flooring" float division with a single / operator.

I had the same error and fixed it by changing the operator to //. Some minor testing suggests the fix works and I don't immediately see any downstream issues from this change.

@adelavega
Copy link
Author

Oops! Duplicate of #384

@adelavega adelavega closed this Jan 18, 2017
@mbeacom mbeacom added bug Issues that report (apparent) bugs. duplicate Duplicate of another issue/PR. labels Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that report (apparent) bugs. duplicate Duplicate of another issue/PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants