install.rst outdated / newest pip version incompatible with python 3.6
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
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.
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?
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.
Which version should I install to enable this feature?
As of today, please install Python 3.7 or newer.