[HowTo] Use Python module google-cloud-vision (Google Vision API)

Asked by diego

Trying to use the following on a Sikuli script:

from google.cloud import vision

ran: sudo pip install google-cloud-vision

when I use Sikuli IDE I get error:

[error] ImportError ( No module named google )

How can I get this to work?

Thx

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

see:
https://sikulix-2014.readthedocs.io/en/latest/scenarios.html#access-python-packages-from-sikulix-scripts-run-by-sikulix-gui-or-commandline

be aware: python modules used in the SikuliX environment must:
- be written in plain python
- not contain any C-based stuff nor dependencies to native libraries
- conform to Python language level 2.7

means: can be used in a Jython environment.

Can you help with this problem?

Provide an answer of your own, or ask diego for more information if necessary.

To post a message you must log in.