Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot access local variable 'PyiCloud' where it is not associated with a value #444

Open
romlisrl opened this issue Mar 17, 2025 · 1 comment

Comments

@romlisrl
Copy link

Hello,
After performing a complete wipe of configs for iCloudv3, I'm now encountering a frustrating error:
(Configuration: iCloud3 v3.1.6.1 ; HA core 2025.2.5 ; Supervisor 2025.3.3)

2025-03-17 17:51:00.545 ERROR (SyncWorker_1) [custom_components.icloud3] cannot access local variable 'PyiCloud' where it is not associated with a value
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3_control.py", line 77, in stage_1_setup_variables
pyicloud_ic3_interface.create_all_PyiCloudServices()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/icloud3/support/pyicloud_ic3_interface.py", line 67, in create_all_PyiCloudServices
PyiCloud = log_into_apple_account(username, password, locate_all_devices)
File "/config/custom_components/icloud3/support/pyicloud_ic3_interface.py", line 157, in log_into_apple_account
elif PyiCloud and PyiCloud.locate_all_devices is not None:
^^^^^^^^
UnboundLocalError: cannot access local variable 'PyiCloud' where it is not associated with a value

Hope this will help

@gcobb321
Copy link
Owner

That indicates an error logging into the Apple account. I’m not sure how or why you wiped the configs but I would ignore it and go into the Configure iCloud3 screen and set up the Apple acct and devices and restart everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants