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

Warnings when used with Python 3.10 #3148

Closed
marhoy opened this issue Feb 23, 2022 · 5 comments
Closed

Warnings when used with Python 3.10 #3148

marhoy opened this issue Feb 23, 2022 · 5 comments

Comments

@marhoy
Copy link
Contributor

marhoy commented Feb 23, 2022

When used with Python 3.10, I get the following warnings:

luigi/target.py:287: DeprecationWarning: non-integer arguments to randrange() have been deprecated since Python 3.10 and will be removed in a subsequent version

luigi/worker.py:161: DeprecationWarning: Seeding based on hashing is deprecated since Python 3.9 and will be removed in a subsequent version.
@alecgarza96
Copy link
Contributor

Instances of randrange found in target.py
image
image

@alecgarza96
Copy link
Contributor

Assuming this error is being generated due to the scientific notation being used to represent 10,000,000,000. Will test this out.

@alecgarza96
Copy link
Contributor

For the second warning, it appears the issue lies here:
image

I wrote some basic test code and was able to successfully replicate and resolve error

image

@alecgarza96
Copy link
Contributor

Able to replicate second warning with following code
image

1e10 = ten billion

remedied with following code

image

@alecgarza96
Copy link
Contributor

#3150

submitted pull request above

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