pygate / pygate-gRPC

A Python gRPC Powergate client
http://pygate.tech
MIT License
22 stars 5 forks source link

"AttributeError: 'FfsClient' object has no attribute 'get_file_bytes'" #23

Closed peterVG closed 4 years ago

peterVG commented 4 years ago

This is a regression generated by line 17 https://github.com/pygate/pygate-gRPC/blob/8d875b000888539aa4ec0faa4526dad07fbb910c/examples/ffs_push_pull_file.py#L17 in examples/ffs_push_pull_file.py

peterVG commented 4 years ago

Actually, this error only occurs when I run the script from pipenv shell. I've installed all the dependencies in a virtualenv and it works fine. So maybe pipfile needs an update?

leonardge commented 4 years ago

I have moved the get_file_bytes from an instance method of ffs to a separate helper method. So maybe we're using a later version of the package?