Open TheLion opened 11 months ago
What version of Bimmer_Connected are you running on your Domoticz machine where this plugin is installed ?
According to pip it's version 0.13.10.
Python 3.8 or above also installed for that version??
Command; $ python3 -V
On Tue, 15 Aug 2023, 21:19 Martijn Janssen, @.***> wrote:
According to pip it's version 0.13.10.
— Reply to this email directly, view it on GitHub https://github.com/FilipDem/Domoticz-BMW-plugin/issues/15#issuecomment-1679468617, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMCHTJLPLKDDBXTRFEX4WDXVPDULANCNFSM6AAAAAA3RLSFHI . You are receiving this because you commented.Message ID: @.***>
Erhm. No. Running v3.7.3.
Ok, at least we know officially the pre-requirements are not fully met.
You could test with the CLI to see what the results are,
# run the fingerprint function
bimmerconnected fingerprint <username> <password> <region>
or
bimmerconnected status -j <username> <password> <region>
If still no results. Can you downgrade bimmer_connected to just the previous version ?
I had a feeling something was going to break so already created: https://github.com/bimmerconnected/bimmer_connected/discussions/558
Ok, at least we know officially the pre-requirements are not fully met.
You could test with the CLI to see what the results are,
# run the fingerprint function bimmerconnected fingerprint <username> <password> <region>
or
bimmerconnected status -j <username> <password> <region>
If still no results. Can you downgrade bimmer_connected to just the previous version ?
I had a feeling something was going to break so already created: bimmerconnected/bimmer_connected#558
Bimmerconnected itself works just fine after updating and outputs up-to-date information about my vehicle.
Ok so that is also checked. Then we need to debug the plugin as the basics still seem to work.
I noticed I think a 404 as well in your example . That is what triggered me as well. Need to look into that to see if the plugin connects to the right endpoints.
HTTP 404, 404 not found, 404, 404 error, page not found or file not found
On Wed, Aug 16, 2023 at 12:25 PM Martijn Janssen @.***> wrote:
Ok, at least we know officially the pre-requirements are not fully met.
You could test with the CLI to see what the results are,
run the fingerprint function
bimmerconnected fingerprint
or
bimmerconnected status -j
If still no results. Can you downgrade bimmer_connected to just the previous version ?
I had a feeling something was going to break so already created: bimmerconnected/bimmer_connected#558 https://github.com/bimmerconnected/bimmer_connected/discussions/558
Bimmerconnected itself works just fine after updating and outputs up-to-date information about my vehicle.
— Reply to this email directly, view it on GitHub https://github.com/FilipDem/Domoticz-BMW-plugin/issues/15#issuecomment-1680350143, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMCHTOUPU2NQVGLDDUGRDLXVSNYPANCNFSM6AAAAAA3RLSFHI . You are receiving this because you commented.Message ID: @.***>
The 404 refers to https://cocoapi.bmwgroup.com/eadrax-vcs/v2/vehicles; bimmer_connected 0.13.10 itself seems to read from https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles. Different versions of Domoticz-BMW-plugin installed under different users (e.g. pi and root) maybe?
That indeed is a nice clue.
On Wed, Aug 16, 2023 at 3:10 PM subtrEM @.***> wrote:
The 404 refers to https://cocoapi.bmwgroup.com/eadrax-vcs/v2/vehicles; bimmer_connected itself reads from https://cocoapi.bmwgroup.com/eadrax-vcs/**v4**/vehicles. Different versions installed under different users (e.g. pi and root) maybe?
— Reply to this email directly, view it on GitHub https://github.com/FilipDem/Domoticz-BMW-plugin/issues/15#issuecomment-1680577686, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMCHTOXQNFSUNBU3KFFY4DXVTBDVANCNFSM6AAAAAA3RLSFHI . You are receiving this because you commented.Message ID: @.***>
Hi all, Had the same issue: login failed messages in Domoticz (build 15344) logs. Plugin version 3.2.2. I upgraded bimmer_connected, but may not have payed attention on successfull installation. Bimmer_connected gave car status on CLI. Domoticz kept failing, also after disable/enable of plugin, start/stop Domoticz and even reboot. So not sure which version of bimmer_connected I was testing.
Problem was solved by installing bimmer_connected as root (sudo). This may not the intended way of installing, and I still got some errors on the installation:
pi@lime:~/domoticz $ sudo pip3 install --upgrade bimmer_connected
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: bimmer_connected in /usr/local/lib/python3.7/dist-packages (0.10.1)
Collecting bimmer_connected
Downloading https://www.piwheels.org/simple/bimmer-connected/bimmer_connected-0.13.10-py3-none-any.whl (110 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.1/110.1 kB 1.3 MB/s eta 0:00:00
Requirement already satisfied: httpx in /usr/local/lib/python3.7/dist-packages (from bimmer_connected) (0.23.0)
Requirement already satisfied: pyjwt>=2.1.0 in /usr/local/lib/python3.7/dist-packages (from bimmer_connected) (2.3.0)
Requirement already satisfied: pycryptodome>=3.4 in /usr/local/lib/python3.7/dist-packages (from bimmer_connected) (3.12.0)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /usr/local/lib/python3.7/dist-packages (from httpx->bimmer_connected) (1.5.0)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx->bimmer_connected) (2018.8.24)
Requirement already satisfied: httpcore<0.16.0,>=0.15.0 in /usr/local/lib/python3.7/dist-packages (from httpx->bimmer_connected) (0.15.0)
Requirement already satisfied: sniffio in /usr/local/lib/python3.7/dist-packages (from httpx->bimmer_connected) (1.2.0)
Requirement already satisfied: h11<0.13,>=0.11 in /usr/local/lib/python3.7/dist-packages (from httpcore<0.16.0,>=0.15.0->httpx->bimmer_connected) (0.12.0)
Requirement already satisfied: anyio==3.* in /usr/local/lib/python3.7/dist-packages (from httpcore<0.16.0,>=0.15.0->httpx->bimmer_connected) (3.6.1)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from anyio==3.*->httpcore<0.16.0,>=0.15.0->httpx->bimmer_connected) (4.3.0)
Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.7/dist-packages (from anyio==3.*->httpcore<0.16.0,>=0.15.0->httpx->bimmer_connected) (3.3)
Installing collected packages: bimmer_connected
Attempting uninstall: bimmer_connected
Found existing installation: bimmer-connected 0.10.1
Uninstalling bimmer-connected-0.10.1:
Successfully uninstalled bimmer-connected-0.10.1
Successfully installed bimmer_connected-0.13.10
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
--- Logging error ---
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/logging.py", line 177, in emit
self.console.print(renderable, overflow="ignore", crop=False, style=style)
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/console.py", line 1752, in print
extend(render(renderable, render_options))
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/console.py", line 1390, in render
for render_output in iter_render:
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__
for line in lines:
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/segment.py", line 245, in split_lines
for segment in segments:
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/console.py", line 1368, in render
renderable = rich_cast(renderable)
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast
renderable = cast_method()
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__
pip_cmd = get_best_invocation_for_this_pip()
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/entrypoints.py", line 60, in get_best_invocation_for_this_pip
os.path.join(binary_prefix, exe_name),
File "/usr/lib/python3.7/genericpath.py", line 97, in samefile
s2 = os.stat(f2)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip'
Call stack:
File "/usr/local/bin/pip3", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/main.py", line 70, in main
return command.main(cmd_args)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 101, in main
return self._main(args)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main
self.handle_pip_version_check(options)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/req_command.py", line 148, in handle_pip_version_check
pip_self_version_check(session, options)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/self_outdated_check.py", line 237, in pip_self_version_check
logger.info("[present-rich] %s", upgrade_prompt)
File "/usr/lib/python3.7/logging/__init__.py", line 1383, in info
self._log(INFO, msg, args, **kwargs)
File "/usr/lib/python3.7/logging/__init__.py", line 1519, in _log
self.handle(record)
File "/usr/lib/python3.7/logging/__init__.py", line 1529, in handle
self.callHandlers(record)
File "/usr/lib/python3.7/logging/__init__.py", line 1591, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.7/logging/__init__.py", line 905, in handle
self.emit(record)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/logging.py", line 179, in emit
self.handleError(record)
Message: '[present-rich] %s'
Arguments: (UpgradePrompt(old='22.1.2', new='23.2.1'),)
So an old version 0.10.1 was found and upgraded to 0.13.10 Even with these installation warnings/errors, bimmer_connected works and so does the plugin in Domoticz. After disable/enable of the BMW module, the login in Domoticz is succesfull again and data is collected. :-)
For me it still doesn't work. Upgraded bimmer_connected to 0.14.2 with and without sudo and pulled the latest release of the plugin, but still same login error.
Hi,
I noticed some time ago my BMW Domoticz plugin reported a login error.
Also running bimmer_connected with the status command, resulted in an error.
I updated bimmer_connected and now bimmer_connected doesn't report an error any more and my vehicle information is displayed.
But my Domoticz plugin still reports an error. See debug log below:
I already updated my plugin folder to the latest content on Github and it already was up-to-date. Also restarting Domoticz and the complete RPi doesn't solve the issue.
Also changed my password to something that does not contain any (too) special characters, just minus sign as one special character is needed.
Any thought what can cause this and how to solve it?