Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libessp.so: undefined symbol: Status #11

Closed
IRomich opened this issue Jan 17, 2018 · 3 comments
Closed

libessp.so: undefined symbol: Status #11

IRomich opened this issue Jan 17, 2018 · 3 comments

Comments

@IRomich
Copy link

IRomich commented Jan 17, 2018

Hello

I'm working with a device NV200 and get the following error:

PORT: /dev/ttyACM0
##/dev/ttyACM0##
Validator Found !
Encryption Setup
Firmware 0420
Channels :
Channel 1 : 10 RUB
Channel 2 : 50 RUB
Channel 3 : 100 RUB
Channel 4 : 500 RUB
Channel 5 : 1000 RUB
Channel 6 : 5000 RUB
Channel 7 : 0
Channel 8 : 0
Channel 9 : 0
Channel 10 : 0
Channel 11 : 0
Channel 12 : 0
Channel 13 : 0
Channel 14 : 0
Channel 15 : 0
Channel 16 : 0
Channel 17 : 0
Channel 18 : 0
Channel 19 : 0
Channel 20 : 0
Payout
ERROR: Payout failed
Traceback (most recent call last):
File "test.py", line 103, in
validator.do_actions()
File "/usr/local/lib/python2.7/dist-packages/eSSP/eSSP.py", line 155, in do_actions
self.essp.Status.SSP_get_response_data(
File "/usr/lib/python2.7/ctypes/init.py", line 375, in getattr
func = self.getitem(name)
File "/usr/lib/python2.7/ctypes/init.py", line 380, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/local/lib/python2.7/dist-packages/eSSP/libessp.so: undefined symbol: Status

@Minege
Copy link
Owner

Minege commented Jan 19, 2018

Hi,

Can you try to run it with Python3 ?
And also install the lib in a virtual env like that : pip install git+https://github.com/Minege/eSSP to get the latest version.

@IRomich
Copy link
Author

IRomich commented Jan 20, 2018

I changed self.essp.Status.SSP_get_response_data() to self.essp.ssp_get_response_data() and it works.
Also I changed self.essp.ssp6_set_route (self.sspC, self.actions_args ['routes_amount'], self.actions_args ['routes_currency'], Status.ENABLED.value) to self.essp.ssp6_set_route (self.sspC, self. actions_args ['routes_amount'], self.actions_args ['routes_currency'], Status.DISABLED.value) to send bills to the storage.

@IRomich IRomich closed this as completed Jan 23, 2018
@Minege
Copy link
Owner

Minege commented Jan 25, 2018

Thanks for the help!
We'll update the repo accordingly.

@Minege Minege reopened this Jan 25, 2018
@Minege Minege closed this as completed Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants