therealmysteryman / udi-spa-nodeserver

GNU General Public License v3.0
0 stars 0 forks source link

No module named 'pybalboa' #1

Closed wmcneilgh closed 3 years ago

wmcneilgh commented 3 years ago

Hello, I tried running the BalboaSPA nodeserver on my Universal Devices Polisy box, which is running polyglot 2.2.10 . I created a key named host and set it to the local IP of the Balboa wifi module on my spa, which has a Balboa BFBP20 controller. Below are lines from the log file:

2021-02-24 10:02:56,227 MainThread polyinterface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2021-02-24 10:02:57,504 MainThread polyinterface INFO polyinterface:init_interface: Received Config from STDIN. 2021-02-24 10:02:57,505 MainThread polyinterface INFO init:: UDI Polyglot v2 Interface 2.1.0 Starting... 2021-02-24 10:02:57,509 MainThread polyinterface ERROR polyinterface:write: Traceback (most recent call last): 2021-02-24 10:02:57,509 MainThread polyinterface ERROR polyinterface:write: File "./spa_poly.py", line 9, in 2021-02-24 10:02:57,510 MainThread polyinterface ERROR polyinterface:write: import pybalboa 2021-02-24 10:02:57,511 MainThread polyinterface ERROR polyinterface:write: ModuleNotFoundError 2021-02-24 10:02:57,511 MainThread polyinterface ERROR polyinterface:write: : 2021-02-24 10:02:57,512 MainThread polyinterface ERROR polyinterface:write: No module named 'pybalboa'

therealmysteryman commented 3 years ago

Did you install using the store or manually ? It seem the pybalboa library were not installed.

Le mer. 24 févr. 2021 à 10:21, wmcneilgh notifications@github.com a écrit :

Hello, I tried running the BalboaSPA nodeserver on my Universal Devices Polisy box, which is running polyglot 2.2.10 . I created a key named host and set it to the local IP of the Balboa wifi module on my spa, which has a Balboa BFBP20 controller. Below are lines from the log file:

2021-02-24 10:02:56,227 MainThread polyinterface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2021-02-24 10:02:57,504 MainThread polyinterface INFO polyinterface:init_interface: Received Config from STDIN. 2021-02-24 10:02:57,505 MainThread polyinterface INFO init:: UDI Polyglot v2 Interface 2.1.0 Starting... 2021-02-24 10:02:57,509 MainThread polyinterface ERROR polyinterface:write: Traceback (most recent call last): 2021-02-24 10:02:57,509 MainThread polyinterface ERROR polyinterface:write: File "./spa_poly.py", line 9, in 2021-02-24 10:02:57,510 MainThread polyinterface ERROR polyinterface:write: import pybalboa 2021-02-24 10:02:57,511 MainThread polyinterface ERROR polyinterface:write: ModuleNotFoundError 2021-02-24 10:02:57,511 MainThread polyinterface ERROR polyinterface:write: : 2021-02-24 10:02:57,512 MainThread polyinterface ERROR polyinterface:write: No module named 'pybalboa'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/therealmysteryman/udi-spa-nodeserver/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZMZRK7K45B2HCOGI3HMC3TAUKP3ANCNFSM4YEWPHPA .

-- JF

wmcneilgh commented 3 years ago

I installed using the Polisy nodeserver store.

therealmysteryman commented 3 years ago

The library didn’t get installed,

sudo pip/pip3 install pybalboa

Le mer. 24 févr. 2021 à 10:47, wmcneilgh notifications@github.com a écrit :

I installed using the Polisy nodeserver store.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/therealmysteryman/udi-spa-nodeserver/issues/1#issuecomment-785169851, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZMZRKDZNC2C7PFZJIL7NLTAUNPJANCNFSM4YEWPHPA .

-- JF

wmcneilgh commented 3 years ago

Thank you for you help, I tried the install, and got the error below. I know little to nothing about python, but this does seem to be a problem in the code:

sudo pip3 install pybalboa ld-elf.so.1: /usr/local/lib/libpython3.7m.so.1.0: Undefined symbol "close_range@FBSD_1.6" Collecting pybalboa Downloading pybalboa-0.13.tar.gz (12 kB) ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-74mvfhgc/pybalboa/setup.py'"'"'; file='"'"'/tmp/pip-install-74mvfhgc/pybalboa/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-fgl_uput cwd: /tmp/pip-install-74mvfhgc/pybalboa/ Complete output (1 lines): ld-elf.so.1: /usr/local/lib/libpython3.7m.so.1.0: Undefined symbol "close_range@FBSD_1.6"

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

therealmysteryman commented 3 years ago

Do you use polisy ? If so have a look a this thread someone had close_range@FBSD_1.6 error and the fix was to update polisy and than reinstall the nodeserver.

But I didn’t wrote the library pybalboa, once you get that rolling hopefully it would work.

Le mer. 24 févr. 2021 à 11:44, wmcneilgh notifications@github.com a écrit :

Thank you for you help, I tried the install, and got the error below. I know little to nothing about python, but this does seem to be a problem in the code:

sudo pip3 install pybalboa ld-elf.so.1: /usr/local/lib/libpython3.7m.so.1.0: Undefined symbol "close_range@FBSD_1.6" Collecting pybalboa Downloading pybalboa-0.13.tar.gz (12 kB) ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-74mvfhgc/pybalboa/setup.py'"'"'; file='"'"'/tmp/pip-install-74mvfhgc/pybalboa/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-fgl_uput cwd: /tmp/pip-install-74mvfhgc/pybalboa/ Complete output (1 lines): ld-elf.so.1: /usr/local/lib/libpython3.7m.so.1.0: Undefined symbol "close_range@FBSD_1.6"

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/therealmysteryman/udi-spa-nodeserver/issues/1#issuecomment-785210726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZMZRMKHHSPUOUBAVURMQLTAUUFJANCNFSM4YEWPHPA .

-- JF

wmcneilgh commented 3 years ago

I updated the OS to version 12.2 (using sudo curl -s https://pkg.isy.io/script/update121.sh | sudo bash), rebooted (twice, took 2 times to get the os version to report as 12.2), installed the pybalboa library manually, and installed the BalboaSPA nodeserver using the polisy gui. Now I see my spa in the ISY admin console. I can't test much out right now and confirm the operation, because the spa is located remotely, but everything looks good. Thanks again for your help!

therealmysteryman commented 3 years ago

Happy to hear :)