aeddi / aws-lambda-python-opencv

Simple script that builds an AWS Lambda deployment package including OpenCV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module object has no such attribute __version__

man0l opened this issue · comments

commented

Hi,
I am building the opencv package as described in the tutorial.

I have tried the prebuild lib, I have built it myself and I run Amazon AMI 2 and built it manually and it still gives me this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute '__version__'

This happens when I run the Lambda function or just import the module in the python shell and type in cv2.__version__

Could you help me with this issue? Should I change the AWS image to Amazon AMI 1?

commented

Hi,
when I built it on the classic Amazon AMI image, I was able to run the cv2 library on lambda.

Thank you for your attention,
Regards.