ble_monitor icon indicating copy to clipboard operation
ble_monitor copied to clipboard

[Bug]: module 'janus' has no attribute 'Queue'

Open homeyjoenka opened this issue 2 years ago • 16 comments

What happened?

Deze fout is ontstaan door een aangepaste integratie.

Logger: homeassistant.config_entries Source: custom_components/ble_monitor/init.py:513 Integration: Passive BLE monitor (documentation, issues) First occurred: 15:45:45 (3 occurrences) Last logged: 17:55:06

Error setting up entry Bluetooth Low Energy Monitor for ble_monitor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/ble_monitor/init.py", line 405, in async_setup_entry blemonitor = BLEmonitor(config) File "/config/custom_components/ble_monitor/init.py", line 513, in init "binary": janus.Queue(), AttributeError: module 'janus' has no attribute 'Queue'

Sensor type

No response

Relevant log output

No response

homeyjoenka avatar May 20 '22 16:05 homeyjoenka

I guess something went wrong with the installation of the dependencies. Try to reinstall BLE monitor.

Ernst79 avatar May 20 '22 16:05 Ernst79

1 week ago works al perfect but now to last updat not its problems but we have now reinstall but problem its not going

homeyjoenka avatar May 22 '22 07:05 homeyjoenka

Very strange. It looks like janus is not installed or you have an older version. I'm not sure what system you have, but you might be able to install it manually. It should use v1.0.0, which is the latest version of janus.

Ernst79 avatar May 25 '22 12:05 Ernst79

Ik can newst version janus Find on your github?

homeyjoenka avatar May 25 '22 13:05 homeyjoenka

And what its janus?

homeyjoenka avatar May 25 '22 13:05 homeyjoenka

janus is an external package, what should be installed automagically when you install BLE monitor, just like the other python packages.

https://pypi.org/project/janus/

If you use e.g. HA core, you can manually install it with pip install janus However, if you use Home Assistant Os (like most people do), you can't do this. The only thing you can try in that case, is removing and reinstalling BLE monitor and hope that it will install along (as it should).

Ernst79 avatar May 25 '22 13:05 Ernst79

We have more times reinstall all but not fix it we have core

homeyjoenka avatar May 25 '22 13:05 homeyjoenka

Where can we Install the janus

homeyjoenka avatar May 25 '22 13:05 homeyjoenka

You need to log in with SSH to you virtual environment (venv) where you have installed Home Assistant (core) (most likely homeassistant). Activate the venv as the same user that runs home assistant.


sudo su -s /bin/bash homeassistant
cd /srv/homeassistant
source bin/activate

After you have activated the venv run pip install janus

Ernst79 avatar May 25 '22 14:05 Ernst79

i have OS

homeyjoenka avatar May 25 '22 15:05 homeyjoenka

That makes it difficult. Try the following. Edit the file config/custom_component/ble_monitor/manifest.json

change this line

"janus>=1.0.0",

to

"janus==0.6.1",

Make sure you have the ==. restart HA, this will install an old version of Janus. Next, Change it back to what is was, and restart again. This should install 1.0.0 again.

Ernst79 avatar May 25 '22 19:05 Ernst79

2x == for 0.6.1?

homeyjoenka avatar May 25 '22 19:05 homeyjoenka

Yes

Ernst79 avatar May 25 '22 19:05 Ernst79

oke we do it now

homeyjoenka avatar May 25 '22 19:05 homeyjoenka

not working its wrong Deze fout is ontstaan door een aangepaste integratie.

Logger: homeassistant.config_entries Source: custom_components/ble_monitor/init.py:513 Integration: Passive BLE monitor (documentation, issues) First occurred: 22:00:13 (1 occurrences) Last logged: 22:00:13

Error setting up entry Bluetooth Low Energy Monitor for ble_monitor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/ble_monitor/init.py", line 405, in async_setup_entry blemonitor = BLEmonitor(config) File "/config/custom_components/ble_monitor/init.py", line 513, in init "binary": janus.Queue(), AttributeError: module 'janus' has no attribute 'Queue'

homeyjoenka avatar May 25 '22 20:05 homeyjoenka

I have no other ideas. I also haven’t seen similar issues, so it’s hard to say what is wrong. @Magalex2x14 do you have an idea what could be the problem

Ernst79 avatar May 26 '22 07:05 Ernst79

There hasn't been any activity in this issue. We are closing it, to keep the issue tracker clean. Feel free to reopen if the problem still exists.

Ernst79 avatar May 14 '23 16:05 Ernst79