Closed zjw-asu closed 5 years ago
Hi, does it work for you on PC? I have yet to try RPi.
Hi, I have tried to install using anaconda on my windows system. So far it works as I can read the vimba version and read the camera ID. I have yet tried to get images as I had problems installing OpenCV.But I believe it will work on windows too.
Could you please post the error traceback?
Please see traceback below:
pi@raspberrypi:~ $ pip install pymba
Collecting pymba
Using cached https://files.pythonhosted.org/packages/04/78/d29c37c6419467d60a018a8da98c423f12b64491b4a5dc01b275b3f44d36/pymba-0.3.6.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-MCC3Dc/pymba/setup.py", line 2, in <module>
from pymba import __version__
File "pymba/__init__.py", line 1, in <module>
from .vimba import Vimba, VimbaException
File "pymba/vimba.py", line 17
def version() -> str:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-MCC3Dc/pymba/
It looks like it's getting thrown by the type hint. Are you using Python 2? If so I'd strongly recommend using Python 3 instead. Alternatively, consider using the python2
branch of Pymba (although this is not well supported).
Hi , Indeed It's because of version problem. I have cloned python2 branch and installed the pymba successfully. However, it shows another error when I try to run : from pymba import *
with Vimba() as vimba:
print(vimba.getVersion())
The error is below
Traceback (most recent call last):
File "test_installation.py", line 3, in
I have installed vimba on raspberry pi before and I manage to obtain images. So I guess current code may not work for raspberry pi. But, Much appreciation to your generous help!!
That error generally means you don't have Vimba installed, or the installation cannot be found. Could be a bug. Do you definitely have Vimba installed? I'm not so familiar with installing on Linux/RPi.
You have to install Vimba ARM SDK before running Pymba. You can get Vimba for arm sdk from https://www.alliedvision.com/en/products/software.html As an example, Downloads for ARMv7 32-bit: https://www.alliedvision.com/en/products/software.html#agb-modal-content-5496 for ARMv8 64-bit: https://www.alliedvision.com/en/products/software.html#agb-modal-content-5496 Some instruction refer to https://cdn.alliedvision.com/fileadmin/content/documents/products/software/software/Vimba/appnote/Vimba_installation_under_Linux.pdf After Vimba SDK was installed correctly, then reboot, next to check the "GENICAM_GENTL32_PATH" setting, and run VimbaViewer coming with SDK for the correction. Then you can run Pymba again.
Hi, I managed to run code on the raspberry pi with python 2 now!!! Much thanks!
Hi there, I have tried to install pymba using pip install pymba on raspberry pi command line but failed. And it indicates a syntax error in setup.py. Do you support raspberry pi with Raspbian (a linux system for raspberry pi) ? If so could you let me know how to install pymba correctly on raspberry pi? Thanks !