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

Python 3.6 - SyntaxError: future feature annotations is not defined #1482

Closed
LUKISO2 opened this issue Feb 12, 2025 · 3 comments
Closed

Python 3.6 - SyntaxError: future feature annotations is not defined #1482

LUKISO2 opened this issue Feb 12, 2025 · 3 comments

Comments

@LUKISO2
Copy link

LUKISO2 commented Feb 12, 2025

When installing minio on python 3.6 (Anaconda), I get the following error message when using the lib:

Traceback (most recent call last):
  File "MinIOTest.py", line 1, in <module>
    import minio
  File "/opt/cloudera/parcels/Anaconda/envs/python36/lib/python3.6/site-packages/minio/__init__.py", line 41, in <module>
    from .api import Minio as Minio
  File "/opt/cloudera/parcels/Anaconda/envs/python36/lib/python3.6/site-packages/minio/api.py", line 28
    from __future__ import absolute_import, annotations
    ^
SyntaxError: future feature annotations is not defined

From quick googling it seems that future feature annotations is avaiable from python >= 3.7:
https://stackoverflow.com/questions/70515194/syntaxerror-future-feature-annotations-is-not-defined

minio 7.2.7

@balamurugana
Copy link
Member

We do not support python v3.6. Refer https://github.com/minio/minio-py/blob/master/setup.py#L46

@LUKISO2
Copy link
Author

LUKISO2 commented Feb 12, 2025

I see, then coud you please specify the required python version even for older pips? So when a user runs pip install minio the correct version (v 7.1.8) is installed? Thank you.

@balamurugana
Copy link
Member

Not sure about older pip. but the minimum python version requirement is fixed since >= v7.2.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants