genicam / harvesters

Image Acquisition Library for GenICam-based Machine Vision System
Apache License 2.0
500 stars 86 forks source link

Getting started with conda and VS Code, Win 10. #440

Closed keale closed 6 months ago

keale commented 6 months ago

Describe the Issue I have a problem to follow getting started at several PCs.

To Reproduce Steps to reproduce the behavior:

  1. open anaconda cmd prompt,
  2. conda create -n genicam python=3.6
  3. conda activate genicam
  4. pip install harvesters
  5. pip install ipykernel #for VS Code jupyther support
  6. In VS Code, create a ipynb file
  7. Try to import harvesters:
    
    from harvesters.core import Harvester

Traceback (most recent call last):

File "C:\Users\AlexK.conda\envs\genicam\lib\site-packages\IPython\core\interactiveshell.py", line 3343, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in from harvesters.core import Harvester

File "C:\Users\AlexK.conda\envs\genicam\lib\site-packages\harvesters\core.py", line 22 from future import annotations ^ SyntaxError: future feature annotations is not defined



I am beginner with Python an (Ana)Conda and may be I make very stupid mistakes. I apologizes when it is the case.
keale commented 6 months ago

OK, it works with python=3.8 This issue is a duplicate of #349.

In System Requerements it says:

The supported CPython versions are defined by the genicam package. If the target CPython is not supported by the genicam package then Harvester will not be available.

Please give beginners some information on how to find out the supported CPython version. Thank you very much!