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

Folder creation : failed ( operation not permitted) #923

Closed
PrudhviChakravarthy opened this issue Dec 30, 2022 · 3 comments
Closed

Folder creation : failed ( operation not permitted) #923

PrudhviChakravarthy opened this issue Dec 30, 2022 · 3 comments
Labels

Comments

@PrudhviChakravarthy
Copy link

Describe the bug
installed spotipy in ipad ( 9 gen)
Application : Carnets ( ipython )

Your code

File "/var/mobile/Containers/Data/Application/5A0F27B7-CFC5-4EF3-A1EF-41514180F426/Library/lib/python3.11/site-packages/spotdl/utils/spotify.py", line 18, in
from spotdl.utils.config import get_cache_path
File "/var/mobile/Containers/Data/Application/5A0F27B7-CFC5-4EF3-A1EF-41514180F426/Library/lib/python3.11/site-packages/spotdl/utils/config.py", line 131, in
"cache_path": str(get_cache_path()),
^^^^^^^^^^^^^^^^
File "/var/mobile/Containers/Data/Application/5A0F27B7-CFC5-4EF3-A1EF-41514180F426/Library/lib/python3.11/site-packages/spotdl/utils/config.py", line 67, in get_cache_path
return get_spotdl_path() / ".spotipy"
^^^^^^^^^^^^^^^^^
File "/var/mobile/Containers/Data/Application/5A0F27B7-CFC5-4EF3-A1EF-41514180F426/Library/lib/python3.11/site-packages/spotdl/utils/config.py", line 43, in get_spotdl_path
os.mkdir(spotdl_path)
PermissionError: [Errno 1] Operation not permitted: '/private/var/mobile/Containers/Data/Application/5A0F27B7-CFC5-4EF3-A1EF-41514180F426/.spotdl'

Expected behavior
Replace cache folder without “.” In it

@stephanebruckert
Copy link
Member

stephanebruckert commented Dec 30, 2022

Interesting to see you develop on ipad!

Likely ipad doesn't allow creating folders just like on desktop. I believe you have two options:

We lack some examples around this but if you share your code we will be able to help.

@PrudhviChakravarthy
Copy link
Author

Sorry for late reply - I’m not developing any app
Just testing so that i can create shortcut In a-shell mini which downloads songs for me

@stephanebruckert
Copy link
Member

Closing this but feel free to reopen with more details

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

No branches or pull requests

2 participants