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
I'm encountering this error when locally building some cloud functions written in python.
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'
This is the traceback :
Traceback (most recent call last):
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/bin/functions-framework-python", line 8, in <module>
sys.exit(_cli())
^^^^^^
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/functions_framework/_cli.py", line 36, in _cli
app = create_app(target, source, signature_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/functions_framework/__init__.py", line 380, in create_app
raise e from None
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/functions_framework/__init__.py", line 361, in create_app
spec.loader.exec_module(source_module)
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/elia/lavoro/estinguo/estinguo-server-python/functions/main.py", line 3, in <module>
from google.cloud import firestore
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/google/cloud/firestore/__init__.py", line 18, in <module>
from google.cloud.firestore_v1 import gapic_version as package_version
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/google/cloud/firestore_v1/__init__.py", line 27, in <module>
from google.cloud.firestore_v1._helpers import GeoPoint
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/google/cloud/firestore_v1/_helpers.py", line 22, in <module>
from google.api_core import gapic_v1
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/google/api_core/gapic_v1/__init__.py", line 16, in <module>
from google.api_core.gapic_v1 import config
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/google/api_core/gapic_v1/config.py", line 26, in <module>
from google.api_core import retry
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/google/api_core/retry/__init__.py", line 17, in <module>
from .retry_base import exponential_sleep_generator
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/google/api_core/retry/retry_base.py", line 30, in <module>
import requests.exceptions
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/urllib3/connectionpool.py", line 11, in <module>
from .exceptions import (
File "/home/elia/lavoro/estinguo/estinguo-server-python/env/lib64/python3.12/site-packages/urllib3/exceptions.py", line 2, in <module>
from .packages.six.moves.http_client import (
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'
Does anyone know how to solve the problem? I also tried with the latest version of urllib3 (2.2.1) and when installing the lib I get an error regarding the incompatibility of the urllib3 library and the requests library
pip install urllib3
Collecting urllib3
Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Installing collected packages: urllib3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
requests 2.20.0 requires urllib3<1.25,>=1.21.1, but you have urllib3 2.2.1 which is incompatible.
Successfully installed urllib3-2.2.1
The text was updated successfully, but these errors were encountered:
I'm encountering this error when locally building some cloud functions written in python.
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'
This is the traceback :
This is the Pip list :
Does anyone know how to solve the problem? I also tried with the latest version of urllib3 (2.2.1) and when installing the lib I get an error regarding the incompatibility of the urllib3 library and the requests library
The text was updated successfully, but these errors were encountered: