mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #923] Folder creation : failed ( operation not permitted) #552
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#552
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PrudhviChakravarthy on GitHub (Dec 30, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/923
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 commented on GitHub (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:
SpotifyOAuthorSpotifyClientCredentialsyou could set a customcache_handler=CacheFileHandlerwith a customcache_paththat works for yougithub.com/spotipy-dev/spotipy@cc5eaca191/spotipy/cache_handler.py (L56)CacheHandlerthat isn't the defaultCacheFileHandlerhttps://spotipy.readthedocs.io/en/2.22.0/#customized-token-caching. For a simple app my recommendation would be to useMemoryCacheHandler.We lack some examples around this but if you share your code we will be able to help.
@PrudhviChakravarthy commented on GitHub (Jan 3, 2023):
Sorry for late reply - I’m not developing any app
Just testing so that i can create
shortcutIna-shell miniwhich downloads songs for me@stephanebruckert commented on GitHub (Mar 15, 2023):
Closing this but feel free to reopen with more details