You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create file multiprocessing/process.py with contents import multiprocessing
inside the venv, inside the multiprocessing folder, run pylint .
Pylint output
Traceback (most recent call last):
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/pylint/lint/pylinter.py", line 976, in get_ast
return MANAGER.ast_from_file(filepath, modname, source=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/manager.py", line 166, in ast_from_file
return AstroidBuilder(self).file_build(filepath, modname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/builder.py", line 145, in file_build
return self._post_build(module, builder, encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/builder.py", line 173, in _post_build
module = self._manager.visit_transforms(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/manager.py", line 127, in visit_transforms
return self._transform.visit(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/transforms.py", line 158, in visit
return self._visit(node)
^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/transforms.py", line 85, in _visit
return self._transform(node)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/transforms.py", line 67, in _transform
ret = transform_func(node)
^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/brain/helpers.py", line 17, in transform
extension_module = get_extension_mod()
^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxx/.local/share/virtualenvs/multiprocessing-15V88n9e/lib/python3.12/site-packages/astroid/brain/brain_multiprocessing.py", line 38, in _multiprocessing_transform
for key, value in node.locals.items():
^^^^^^^^^^^^^^^^^^^
TypeError: 'UninferableBase' object is not iterable
************* Module multiprocessing
__init__.py:1:0: F0002: __init__.py: Fatal error while checking '__init__.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/Users/xxxxxx/Library/Caches/pylint/pylint-crash-2024-10-09-14-12-48.txt'. (astroid-error)
************* Module multiprocessing.process
process.py:4:0: W0611: Unused import multiprocessing (unused-import)
------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)
Bug description
How to reproduce:
multiprocessing
multiprocessing/__init__.py
multiprocessing/process.py
with contentsimport multiprocessing
multiprocessing
folder, runpylint .
Pylint output
Expected behavior
No crash.
Pylint version
OS / Environment
darwin (Darwin)
The text was updated successfully, but these errors were encountered: