harvesters icon indicating copy to clipboard operation
harvesters copied to clipboard

install.rst outdated / newest pip version incompatible with python 3.6

Open vinhill opened this issue 3 years ago • 5 comments

I believe, something is wrong with which version pip installs for python 3.6. Specifically, the newest Harvesters 1.3.8 uses features not present in python 3.6.

Description

Following this tutorial, I get the following error message

>>>from harvesters.core import Harvester
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Programme\Anaconda\envs\genicam\lib\site-packages\harvesters\core.py", line 22
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined

Steps to reproduce

conda create -n genicam python=3.6
conda activate genicam
pip install harvesters
python
from harvesters.core import Harvester

vinhill avatar May 30 '22 15:05 vinhill

Hi, I am afraid, Harvester does not support 3.6 anymore; I’m just following the official CPython development. This is just for your information, 3.6 has reached its end of life last year.

kazunarikudo avatar May 30 '22 15:05 kazunarikudo

Okay, then the install.rst should be updated, maybe I open a pull request later.

Also, maybe pip can be set up in a way to install an older harvesters version / give an error message, if one installs harvesters in an old python version?

vinhill avatar May 30 '22 15:05 vinhill

Thank you for the reply.

then the install.rst should be updated

Yes, I admit. :-)

However, I picked up 3.6 there as an example but that was just the latest version at that moment. I just needed a version to demonstrate it with Anaconda and I’d not so keep updating the example version every few years…

Maybe I should find a better reasonable approach for that demonstration. Okay, I’ll try to guest some.

kazunarikudo avatar May 30 '22 15:05 kazunarikudo

Which version should I install to enable this feature?

afiqmuzaffar avatar Jun 13 '22 08:06 afiqmuzaffar

As of today, please install Python 3.7 or newer.

kazunarikudo avatar Jun 13 '22 10:06 kazunarikudo