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

SystemError: error return without exception set #4567

Closed
SG5 opened this issue Mar 30, 2018 · 6 comments
Closed

SystemError: error return without exception set #4567

SG5 opened this issue Mar 30, 2018 · 6 comments

Comments

@SG5
Copy link

SG5 commented Mar 30, 2018

I have same issue from #4367

Exception ignored in: <generator object urlsplit.<locals>.<genexpr> at 0x1087bdca8>
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 431, in <genexpr>
    if not rest or any(c not in '0123456789' for c in rest):
SystemError: error return without exception set
Exception ignored in: <generator object urlsplit.<locals>.<genexpr> at 0x108788830>
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 431, in <genexpr>
    if not rest or any(c not in '0123456789' for c in rest):
SystemError: error return without exception set
Exception ignored in: <generator object urlsplit.<locals>.<genexpr> at 0x108788360>
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 431, in <genexpr>
    if not rest or any(c not in '0123456789' for c in rest):
SystemError: error return without exception set
Exception ignored in: <generator object iter_slices at 0x108788360>
Traceback (most recent call last):
  File "~/.venv/lib/python3.6/site-packages/requests/utils.py", line 449, in iter_slices
    def iter_slices(string, slice_length):
SystemError: error return without exception set
Exception ignored in: <generator object urlsplit.<locals>.<genexpr> at 0x1095fffc0>
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 431, in <genexpr>
    if not rest or any(c not in '0123456789' for c in rest):
SystemError: error return without exception set
Exception ignored in: <generator object iter_slices at 0x1095ffba0>
Traceback (most recent call last):
  File "~/.venv/lib/python3.6/site-packages/requests/utils.py", line 449, in iter_slices
    def iter_slices(string, slice_length):
SystemError: error return without exception set

It happens when I make requests in many threading.Thread

@sigmavirus24
Copy link
Contributor

As mentioned in #4367, this is not something that Requests controls. This is almost certianly coming from a library used at some point in the execution of the program (e.g., json) that has a C dependency and the threading is leading to this issue. There's nothing for Requests to do as far as we can tell with all of the given information we have.

@fhlee74
Copy link

fhlee74 commented May 2, 2018

Have anyone figured out how to fix this issue?

@jimas14
Copy link

jimas14 commented Jun 13, 2018

@fhlee74 I seem to have fixed this issue by running my script in a 2.7 env instead of 3.6. The issue did seem to be worse when running > 1 threads in 3.6 but would still happen with just one thread. On 2.7 I have 10 threads running again and haven't seen the exception.

@FireKAKA
Copy link

FireKAKA commented Mar 7, 2019

threads are tooooooooooooooooooooooooooooooooooooooooooooooo many ! This is a python's BUG, whether in 2.7 or 3.6 . You can try to use threads pool from multiprocessing.pool import ThreadPool . I have 8 threads running and no exception is thrown on 3.6.

@romanbarabash
Copy link

romanbarabash commented Jun 10, 2019

this helped me with python 3.7.3 and pycharm https://stackoverflow.com/a/52054289

@aulorbe
Copy link

aulorbe commented Jul 11, 2019

This worked for me too ^

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants