[GH-ISSUE #229] File "src\\gevent\\greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run #207

Closed
opened 2026-02-26 12:20:49 +03:00 by kerem · 5 comments
Owner

Originally created by @thedtvn on GitHub (Jan 10, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/229

File "src\gevent\greenlet.py", line 906, in gevent.gevent_cgreenlet.Greenlet.run
File "C:\Users\duong\AppData\Local\Programs\Python\Python310\lib\site-packages\eel_init
.py", line 259, in _process_message
return_val = _exposed_functionsmessage['name']
File "C:\Users\duong\AppData\Local\Programs\Python\Python310\lib\site-packages\auto_py_to_exe\ui.py", line 46, in initialise
'warnings': utils.get_warnings(),
File "C:\Users\duong\AppData\Local\Programs\Python\Python310\lib\site-packages\auto_py_to_exe\utils.py", line 84, in get_warnings
if sys.version_info.major == 3 and sys.version_info.minor == 10 and sys.version.micro == 0:
AttributeError: 'str' object has no attribute 'micro'
2022-01-10T03:37:23Z <Greenlet at 0x2e037e0c940: _process_message({'call': 1.1350934931941996, 'name': 'initialise',, <geventwebsocket.websocket.WebSocket object at 0x0)> failed with AttributeError

Originally created by @thedtvn on GitHub (Jan 10, 2022). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/229 File "src\\gevent\\greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run File "C:\Users\duong\AppData\Local\Programs\Python\Python310\lib\site-packages\eel\__init__.py", line 259, in _process_message return_val = _exposed_functions[message['name']](*message['args']) File "C:\Users\duong\AppData\Local\Programs\Python\Python310\lib\site-packages\auto_py_to_exe\ui.py", line 46, in initialise 'warnings': utils.get_warnings(), File "C:\Users\duong\AppData\Local\Programs\Python\Python310\lib\site-packages\auto_py_to_exe\utils.py", line 84, in get_warnings if sys.version_info.major == 3 and sys.version_info.minor == 10 and sys.version.micro == 0: AttributeError: 'str' object has no attribute 'micro' 2022-01-10T03:37:23Z <Greenlet at 0x2e037e0c940: _process_message({'call': 1.1350934931941996, 'name': 'initialise',, <geventwebsocket.websocket.WebSocket object at 0x0)> failed with AttributeError
kerem closed this issue 2026-02-26 12:20:49 +03:00
Author
Owner

@elzyr commented on GitHub (Jan 10, 2022):

i have the same issue

<!-- gh-comment-id:1008799809 --> @elzyr commented on GitHub (Jan 10, 2022): i have the same issue
Author
Owner

@sanolt commented on GitHub (Jan 10, 2022):

Apparently it's a typo in the utils.py itself. Got the same error message, but could easily "repair" it by changing the variable to:
sys.version_info.micro == 0: in the file \AppData\Roaming\Python\Python310\site-packages\auto_py_to_exe\utils.py

The complete code black:

If Python 3.10.0 is being used, we are probably going to see IndexError: tuple index out of range.

if sys.version_info.major == 3 and sys.version_info.minor == 10 and sys.version_info.micro == 0:
    message = 'You are using Python 3.10.0. This version of Python has a bug that causes PyInstaller to fail.'
    message += '\nPlease upgrade to Python 3.10.1 or above.'
    warnings.append({
        'message': message,
        'link': "https://github.com/brentvollebregt/auto-py-to-exe/issues/215"
    })
<!-- gh-comment-id:1008802127 --> @sanolt commented on GitHub (Jan 10, 2022): Apparently it's a typo in the utils.py itself. Got the same error message, but could easily "repair" it by changing the variable to: **sys.version_info.micro** == 0: in the file _\AppData\Roaming\Python\Python310\site-packages\auto_py_to_exe\utils.py_ The complete code black: ### If Python 3.10.0 is being used, we are probably going to see `IndexError: tuple index out of range`. if sys.version_info.major == 3 and sys.version_info.minor == 10 and sys.version_info.micro == 0: message = 'You are using Python 3.10.0. This version of Python has a bug that causes PyInstaller to fail.' message += '\nPlease upgrade to Python 3.10.1 or above.' warnings.append({ 'message': message, 'link': "https://github.com/brentvollebregt/auto-py-to-exe/issues/215" })
Author
Owner

@elzyr commented on GitHub (Jan 10, 2022):

hey, for me solution was in AppData\Local\Programs\Python\Python310\Lib\site-packages\auto_py_to_exe\utilits.py where i changed sys.version_info.minor == 0

<!-- gh-comment-id:1008813698 --> @elzyr commented on GitHub (Jan 10, 2022): hey, for me solution was in AppData\Local\Programs\Python\Python310\Lib\site-packages\auto_py_to_exe\utilits.py where i changed sys.version_info.minor == 0
Author
Owner

@CRD716 commented on GitHub (Jan 10, 2022):

fixed by #230

<!-- gh-comment-id:1009269303 --> @CRD716 commented on GitHub (Jan 10, 2022): fixed by #230
Author
Owner

@brentvollebregt commented on GitHub (Jan 11, 2022):

This should be fixed by #230 - thank you for raising this issue 👍

<!-- gh-comment-id:1009577134 --> @brentvollebregt commented on GitHub (Jan 11, 2022): This should be fixed by #230 - thank you for raising this issue 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#207
No description provided.