Closed shuo1990 closed 3 years ago
Hi @shuo1990 this seems unrelated with Spyder. A quick search of the exception message suggest that it could be related with the usage of numbers greater than sys.maxsize
. You can check more info here: https://stackoverflow.com/a/38314163/15954282
There is not much from our side to help you but hope the info above helps :)
Hi, Daniel.
Thank you for your quick reply.
For this error, I still cant solve it.
The code can be operated in Colab, but not achieved in spyder because of the reported error: 'Python int too large...'.
Kind regards,
Shuo
This email originated from TU Dublin. If you received this email in error, please delete it from your system. Please note that if you are not the named addressee, disclosing, copying, distributing or taking any action based on the contents of this email or attachments is prohibited.
Is ó OT Baile Átha Cliath a tháinig an ríomhphost seo. Má fuair tú an ríomhphost seo trí earráid, scrios de do chóras é le do thoil. Tabhair ar aird, mura tú an seolaí ainmnithe, go bhfuil dianchosc ar aon nochtadh, aon chóipeáil, aon dáileadh nó ar aon ghníomh a dhéanfar bunaithe ar an ábhar atá sa ríomhphost nó sna hiatáin seo.
From: Daniel Althviz Moré @.> Sent: Wednesday, June 23, 2021 5:37 PM To: spyder-ide/spyder @.> Cc: D18128381 Shuo Zhang @.>; Mention @.> Subject: Re: [spyder-ide/spyder] Python int too large to convert to C long (#15925)
Hi @shuo1990https://github.com/shuo1990 this seems unrelated with Spyder. A quick search of the exception message suggest that it could be related with the usage of numbers greater than sys.maxsize. You can check more info here: https://stackoverflow.com/a/38314163/15954282
There is not much from our side to help you but hope the info above helps :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/spyder-ide/spyder/issues/15925#issuecomment-866992282, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASWLIYECAONFHJA7SXKEMYLTUIEUPANCNFSM47FYWVYA.
Maybe try to check the value of sys.maxsize
in Colab and compare it with the one you have in the machine you are running Spyder. let us know!
Hi, Daniel.
The max size of colab is 9223372036854775807.
For spyder is also 9223372036854775807.
Kind regards,
Shuo
This email originated from TU Dublin. If you received this email in error, please delete it from your system. Please note that if you are not the named addressee, disclosing, copying, distributing or taking any action based on the contents of this email or attachments is prohibited.
Is ó OT Baile Átha Cliath a tháinig an ríomhphost seo. Má fuair tú an ríomhphost seo trí earráid, scrios de do chóras é le do thoil. Tabhair ar aird, mura tú an seolaí ainmnithe, go bhfuil dianchosc ar aon nochtadh, aon chóipeáil, aon dáileadh nó ar aon ghníomh a dhéanfar bunaithe ar an ábhar atá sa ríomhphost nó sna hiatáin seo.
From: Daniel Althviz Moré @.> Sent: Wednesday, June 23, 2021 6:40 PM To: spyder-ide/spyder @.> Cc: D18128381 Shuo Zhang @.>; Mention @.> Subject: Re: [spyder-ide/spyder] Python int too large to convert to C long (#15925)
Maybe try to check the value of sys.maxsize in Colab and compare it with the one you have in the machine you are running Spyder. let us know!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/spyder-ide/spyder/issues/15925#issuecomment-867033494, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASWLIYAZFE3UOJFN3MOYCKLTUIMBXANCNFSM47FYWVYA.
Thank you for the info @shuo1990 then seems like something else could be happening. Could you send us a full code example to reproduce it in our side? Let us know
Closing due to lack of response
Hello Professor! I have also encountered the same problem. May I ask what the solution is? thank you very much
OverflowError Traceback (most recent call last)
Description
What steps will reproduce the problem?
Dear sir/madam,
Hi,
My problem is as followed:
a=10000
param_list = list(ParameterSampler(param_grid, n_iter=a,random_state=0)) Traceback (most recent call last):
File "", line 1, in
param_list = list(ParameterSampler(param_grid, n_iter=a,random_state=0))
File "C:\Users\Shuo Zhang\anaconda3\lib\site-packages\sklearn\model_selection_search.py", line 284, in iter for i in sample_without_replacement(grid_size, n_iter,
File "sklearn\utils_random.pyx", line 226, in sklearn.utils._random.sample_without_replacement
OverflowError: Python int too large to convert to C long
Could you help me with this issue?
Kind regards,
Shuo
Versions
Dependencies