question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

Monterey, Organize v2: Google Drive gives [Errno 1] Operation not permitted

See original GitHub issue

Sorry, I missed your request to see my config. Organize is still not working with Google Drive.

Here is my config file after migrating to v2 (slightly modified for privacy):

rules:
    # move screenshots into year/month/day folders
    - locations:
        - /Users/x/Pictures/InstantShot
      filters:
        - extension:
            - jpg
        - created
      actions:
        - move: "/Volumes/Google Drive/My Drive/_x/x/x/x (x)/{created.strftime('%Y')}/{created.strftime('%m')}/{created.strftime('%d')}/"

Simulation is successful, but upon running I get errors like:

 - (move) ERROR! unable to create /Volumes/Google Drive/My Drive/_x/x/x/x (x)/2022/01/18 ([Errno 1] Operation 
not permitted: '/Volumes/Google Drive/My Drive/_x/x/x/x (x)/2022/01/18')

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                                  โ”‚
โ”‚ /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/organize/cli.py:86 โ”‚
โ”‚ in run_local                                                                                     โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    83 โ”‚   โ”‚   config_dir, config_name = split(config_path)                                       โ”‚
โ”‚    84 โ”‚   โ”‚   config = open_fs(config_dir).readtext(config_name)                                 โ”‚
โ”‚    85 โ”‚   โ”‚   os.chdir(working_dir)                                                              โ”‚
โ”‚ โฑ  86 โ”‚   โ”‚   core.run(rules=config, simulate=simulate)                                          โ”‚
โ”‚    87 โ”‚   except NeedsMigrationError as e:                                                       โ”‚
โ”‚    88 โ”‚   โ”‚   console.error(e, title="Config needs migration")                                   โ”‚
โ”‚    89 โ”‚   โ”‚   console.warn(                                                                      โ”‚
โ”‚ /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/organize/core.py:3 โ”‚
โ”‚ 09 in run                                                                                        โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   306 โ”‚   console.summary(count)                                                                 โ”‚
โ”‚   307 โ”‚                                                                                          โ”‚
โ”‚   308 โ”‚   if count["fail"]:                                                                      โ”‚
โ”‚ โฑ 309 โ”‚   โ”‚   raise RuntimeWarning("Some actions failed.")                                       โ”‚
โ”‚   310                                                                                            โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
RuntimeWarning: Some actions failed.

_Originally posted by @andyylin in https://github.com/tfeldmann/organize/issues/152#issuecomment-1032382637_

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
tfeldmanncommented, Feb 11, 2022

Great one ๐Ÿ˜… Didnโ€™t see it either!

1reaction
iburunatcommented, Feb 11, 2022

OK, it was a silly coding error of my side:

dest: "/Downloads/IMAGE/"

Should have been

dest: "~/Downloads/IMAGE/"

all along sighs

Sorry to have wasted your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Terminal โ€œOperation not permittedโ€ Error in macOS ...
This walkthrough will show you how to fix โ€œOperation not permittedโ€ error messages seen at the command line in Terminal for Mac OS...
Read more >
[Errno 1] Operation not permitted after macOS Catalina ...
After installing macOS 10.15 Catalina I am getting the following error for simple file and directory operations in Python 3.xย ...
Read more >
MacOS Monterey and Google Drive - Apple Community
This is now clearly a Google Drive issue. Something is amiss in the network connection interface. Seems there is a problem with smb...
Read more >
Issues ยท tfeldmann/organize - GitHub
Monterey, Organize v2: Google Drive gives [Errno 1] Operation not permitted help wanted. #170 opened on Feb 8 by andyylin.
Read more >
operation not permitted Mac Terminal - iBoysoft Data Recovery
How to fix Terminal error Operation not permitted ยท Enable Full Disk Access to Terminal ยท Disable System Integrity Protection Temporarily.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found