coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
797 stars 139 forks source link

AttributeError: partially initialized module 'myfitnesspal' has no attribute 'Client' #163

Closed stanl37 closed 1 year ago

stanl37 commented 1 year ago

getting this error in any attempt to use the library

Python 3.9.12 (main, Apr  5 2022, 01:53:17) 
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import myfitnesspal as mfp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../myfitnesspal.py", line 4, in <module>
    client = mfp.Client()
AttributeError: partially initialized module 'myfitnesspal' has no attribute 'Client' (most likely due to a circular import)
>>>