elegant-dress-32875
01/25/2023, 5:18 PMpython2.7,python3 and python3.5 installed - but I am running into issues trying to import metaflow using python3.5 .
root@715a805dbc61:/# python3
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import metaflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/metaflow/__init__.py", line 54, in <module>
from metaflow.extension_support import (
File "/usr/local/lib/python3.5/dist-packages/metaflow/extension_support.py", line 783, in <module>
_all_packages, _pkgs_per_extension_point = _get_extension_packages()
File "/usr/local/lib/python3.5/dist-packages/metaflow/extension_support.py", line 333, in _get_extension_packages
all_paths = set(extensions_module.__path__)
UnboundLocalError: local variable 'extensions_module' referenced before assignment
I get this despite having metaflow installed (see comments). Any suggestions on what i might be doing wrong here?elegant-dress-32875
01/25/2023, 5:18 PMpython3 -m pip install --extra-index-url <https://pypi.org/simple> metaflow
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Looking in indexes: <https://dl.cloudsmith.io/yxgPVntHlnxNJQKP/outrider/pipper/python/simple/>, <https://pypi.org/simple>
Requirement already satisfied: metaflow in /usr/local/lib/python3.5/dist-packages (2.7.19)
Requirement already satisfied: pylint in /usr/local/lib/python3.5/dist-packages (from metaflow) (2.6.2)
Requirement already satisfied: requests in /usr/local/lib/python3.5/dist-packages (from metaflow) (2.25.1)
Requirement already satisfied: boto3 in /usr/local/lib/python3.5/dist-packages (from metaflow) (1.16.63)
Requirement already satisfied: botocore<1.20.0,>=1.19.63 in /usr/local/lib/python3.5/dist-packages (from boto3->metaflow) (1.19.63)
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /usr/local/lib/python3.5/dist-packages (from boto3->metaflow) (0.3.7)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python3.5/dist-packages (from boto3->metaflow) (0.10.0)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/local/lib/python3.5/dist-packages (from botocore<1.20.0,>=1.19.63->boto3->metaflow) (1.26.9)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python3.5/dist-packages (from botocore<1.20.0,>=1.19.63->boto3->metaflow) (2.8.2)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.5/dist-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.20.0,>=1.19.63->boto3->metaflow) (1.16.0)
Requirement already satisfied: astroid<2.5,>=2.4.0 in /usr/local/lib/python3.5/dist-packages (from pylint->metaflow) (2.4.2)
Requirement already satisfied: isort<6,>=4.2.5 in /usr/local/lib/python3.5/dist-packages (from pylint->metaflow) (4.3.21)
Requirement already satisfied: toml>=0.7.1 in /usr/local/lib/python3.5/dist-packages (from pylint->metaflow) (0.10.2)
Requirement already satisfied: mccabe<0.7,>=0.6 in /usr/local/lib/python3.5/dist-packages (from pylint->metaflow) (0.6.1)
Requirement already satisfied: wrapt~=1.11 in /usr/local/lib/python3.5/dist-packages (from astroid<2.5,>=2.4.0->pylint->metaflow) (1.14.1)
Requirement already satisfied: typed-ast<1.5,>=1.4.0 in /usr/local/lib/python3.5/dist-packages (from astroid<2.5,>=2.4.0->pylint->metaflow) (1.4.3)
Requirement already satisfied: lazy-object-proxy==1.4.* in /usr/local/lib/python3.5/dist-packages (from astroid<2.5,>=2.4.0->pylint->metaflow) (1.4.3)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/lib/python3.5/dist-packages (from requests->metaflow) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.5/dist-packages (from requests->metaflow) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.5/dist-packages (from requests->metaflow) (2021.10.8)ancient-application-36103
01/25/2023, 5:25 PMdry-beach-38304
01/25/2023, 5:32 PMextension_support.py file, remove 4 spaces (to align the return with the if as opposed to being inside the if).dry-beach-38304
01/25/2023, 5:32 PMdry-beach-38304
01/25/2023, 5:33 PMelegant-dress-32875
01/25/2023, 5:37 PMdry-beach-38304
01/25/2023, 5:37 PMelegant-dress-32875
01/25/2023, 5:37 PMelegant-dress-32875
01/25/2023, 8:23 PM>>> import metaflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/metaflow/__init__.py", line 54, in <module>
from metaflow.extension_support import (
File "/usr/local/lib/python3.5/dist-packages/metaflow/extension_support/__init__.py", line 786, in <module>
_all_packages, _pkgs_per_extension_point = _get_extension_packages()
File "/usr/local/lib/python3.5/dist-packages/metaflow/extension_support/__init__.py", line 335, in _get_extension_packages
all_paths = set(extensions_module.__path__)
UnboundLocalError: local variable 'extensions_module' referenced before assignmentelegant-dress-32875
01/25/2023, 8:35 PM321 of /usr/local/lib/python3.5/dist-packages/metaflow/extension_support/__init__.pydry-beach-38304
01/25/2023, 9:28 PMelegant-dress-32875
01/25/2023, 9:29 PMdry-beach-38304
01/25/2023, 9:30 PMdry-beach-38304
01/25/2023, 9:30 PMelegant-dress-32875
01/25/2023, 9:30 PMdry-beach-38304
01/25/2023, 9:30 PMdry-beach-38304
01/25/2023, 9:31 PM