Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

ImportError: cannot import name 'Callable' from 'collections' #93

Open
arfbarky opened this issue Aug 3, 2023 · 2 comments
Open

ImportError: cannot import name 'Callable' from 'collections' #93

arfbarky opened this issue Aug 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@arfbarky
Copy link

arfbarky commented Aug 3, 2023

I setup a new desktop with Debian 12 which came with Python 3.11.2. I get this error:

rob@corsair:~$ gimme-iphotos

Traceback (most recent call last):
File "/home/rob/.local/bin/gimme-iphotos", line 5, in
from gimme_iphotos import main
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/gimme_iphotos/init.py", line 9, in
from .downloader import DownloaderApp
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/gimme_iphotos/downloader.py", line 11, in
from pyicloud import PyiCloudService
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/pyicloud/init.py", line 3, in
from pyicloud.base import PyiCloudService
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/pyicloud/base.py", line 20, in
from pyicloud.services import (
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/pyicloud/services/init.py", line 8, in
from pyicloud.services.account import AccountService
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/pyicloud/services/account.py", line 6, in
from pyicloud.utils import underscore_to_camelcase
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/pyicloud/utils.py", line 3, in
import keyring
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/keyring/init.py", line 6, in
from .core import (set_keyring, get_keyring, set_password, get_password,
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/keyring/core.py", line 14, in
from . import backend
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/keyring/backend.py", line 18, in
from .util import properties
File "/home/rob/.local/pipx/venvs/gimme-iphotos/lib/python3.11/site-packages/keyring/util/properties.py", line 1, in
from collections import Callable
ImportError: cannot import name 'Callable' from 'collections' (/usr/lib/python3.11/collections/init.py)

I am not a coder, how can I fix this?

@Zebradil
Copy link
Owner

Zebradil commented Aug 6, 2023

Hi,

I think you can't do much with this except run the program with an older version of Python (using pyenv, for example). I'll need to update it to support the latest Python, but I can't estimate when that'll be done.

The easiest way to still run it is to use docker to run the program. Here is how to do that: https://github.com/Zebradil/Gimme-iPhotos#docker

@Zebradil Zebradil added the bug Something isn't working label Aug 6, 2023
@arfbarky
Copy link
Author

arfbarky commented Aug 6, 2023

Okie doke, I was confused by the example Docker command, but I got it figured out. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants