When I try to run:
Code: Select all
erg = pyrow.pyrow(ergs[0])
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'generator' object has no attribute '__getitem__'
I am following the steps from the PyRow Github page. https://github.com/uvd/PyRow
I made a folder on my desktop called "pyrow"
I am running Linux Mint
I copied all the flies down from the PyRow page as a zip file and extracted them into my PyRow folder
At the command prompt, I typed in python to determine that I am running Python 2.7.6
Then I did the following
Code: Select all
$ sudo apt-get update
$ sudo apt-get install libudev-dev libusb-dev python
Navigated to the pyusb-master folder.
Ran:
Code: Select all
sudo python setup.py install
Code: Select all
python
>>> import pyrow
>>> pyrow.find()
<generator object device_iter at 0x(some_hex_code_here)>
>>> ergs = pyrow.find()
>>> erg = pyrow.pyrow(ergs[0])
File "<stdin>", line 1, in <module>
TypeError: 'generator' object has no attribute '__getitem__'