Errors when porting BAC0 23.99 app to BAC0 2024.9.17 Asyncio version #479
Replies: 4 comments 2 replies
-
Looks like a little bug somewhere.... in the set() for now, instead of
use
or if you need to wait for all the responses to continue
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Christian,
Thank you for your quick response.
Here is what happens when I use "bacnet.discover()":
[image: image.png]
Here is what happens when I use "await bacnet._discover():
[image: image.png]
By the way, I am executing these python statements in a terminal from
within PyCharm in case that makes a difference.
…On Fri, Sep 20, 2024 at 10:16 AM Christian Tremblay < ***@***.***> wrote:
Looks like a little bug somewhere.... in the set()
for now, instead of
discovered_networks = bacnet.discover(networks='known')
use
bacnet.discover()
or if you need to wait for all the responses to continue
await bacnet._discover()
—
Reply to this email directly, view it on GitHub
<#479 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2RCXR2P4EZ4IG5CHNBUM3ZXQU3RAVCNFSM6AAAAABOSCECUCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZQGU4TKNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Here is what happens when I use "bacnet.discover()":
>> Task exception was never retrieved
future: <Task finished name='Task-7' coro=<Discover._discover() done,
defined at
/home/devadmin/PycharmProjects/bac0_asyncio_test/.venv/lib/python3.10/site-packages/BAC0/core/functions/Discover.py:44>
exception=AttributeError("'set' object has no attribute 'append'")>
Traceback (most recent call last):
File
"/home/devadmin/PycharmProjects/bac0_asyncio_test/.venv/lib/python3.10/site-packages/BAC0/core/functions/Discover.py",
line 97, in _discover
_networks.append(_this_network)
AttributeError: 'set' object has no attribute 'append'
Here is what happens when I use "await bacnet._discover():
>> await bacnet._discover()
Traceback (most recent call last):
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in
result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in
__get_result
raise self._exception
File "<console>", line 1, in <module>
File
"/home/devadmin/PycharmProjects/bac0_asyncio_test/.venv/lib/python3.10/site-packages/BAC0/core/functions/Discover.py",
line 97, in _discover
_networks.append(_this_network)
AttributeError: 'set' object has no attribute 'append'
By the way, I am executing these python statements in a terminal from
within PyCharm in case that makes a difference.
…On Fri, Sep 20, 2024 at 11:13 AM Christian Tremblay < ***@***.***> wrote:
(no images...)
—
Reply to this email directly, view it on GitHub
<#479 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2RCXQ5BHP6TO6RUXJO5C3ZXQ3QNAVCNFSM6AAAAABOSCECUCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZQGY2TGNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
please |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With BAC0 23.99 I am able to discover networks no problem. For example:
(.venv) devadmin@pythondev:~/PycharmProjects/bac0_test$ python
Python 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
But with BAC0 2024.9.17 I get an error:
(.venv) devadmin@pythondev:~/PycharmProjects/bac0_asyncio_test$ python -m asyncio
asyncio REPL 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] on linux
Use "await" directly instead of "asyncio.run()".
Type "help", "copyright", "credits" or "license" for more information.
Can you see what I am doing wrong?
Note, BAC0 Asyncio says "Starting Asynchronous BAC0 version 2024.09.10 (Lite), but I believe I have installed 2024.9.17 via pip because if I look in my python 3.10 site-packages directory, I see a folder "BAC0-2024.9.17.dist-info"
Christian and contributors: thank you so much for your continued work to further this fantastic application.
Beta Was this translation helpful? Give feedback.
All reactions