You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install myfitnesspal and getting the error:
ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3.9/site-packages/lxml/init.py)
Actual behavior
2022-05-24 12:49:08.379061 WARNING Error: ------------------------------------------------------------
2022-05-24 12:49:08.441239 WARNING Error: Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/appdaemon/app_management.py", line 993, in check_app_updates
await utils.run_in_executor(self, self.read_app, mod["name"], mod["reload"])
File "/usr/lib/python3.9/site-packages/appdaemon/utils.py", line 337, in run_in_executor
response = future.result()
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.9/site-packages/appdaemon/app_management.py", line 784, in read_app
self.modules[module_name] = importlib.import_module(module_name)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/appdaemon/apps/weight.py", line 2, in <module>
import myfitnesspal
File "/usr/lib/python3.9/site-packages/myfitnesspal/__init__.py", line 1, in <module>
from myfitnesspal.client import Client # noqa
File "/usr/lib/python3.9/site-packages/myfitnesspal/client.py", line 10, in <module>
import lxml.html
File "/usr/lib/python3.9/site-packages/lxml/html/__init__.py", line 53, in <module>
from .. import etree
ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3.9/site-packages/lxml/__init__.py)
2022-05-24 12:49:08.442924 WARNING Error: ------------------------------------------------------------
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
Problem/Motivation
I'm trying to install myfitnesspal and getting the error:
ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3.9/site-packages/lxml/init.py)
Actual behavior
Steps to reproduce
My configuration:
freeze result:
The text was updated successfully, but these errors were encountered: