cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox installs & integrations

Connect your tools and content together with help from the Dropbox Community. Join a discussion or post a question of your own to get started.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Dropbox Can't Sync Python Executables

Dropbox Can't Sync Python Executables

Flexico
Explorer | Level 4

Dropbox has been working well for me for the better part of a year now, but in the past week or so it has started locking up when working with auto-generated Python executable files (*.pyc). After I run a Python script, it automatically generates a compiled version of the routine in a subfolder, and all Dropbox has to say about it is, "Can't sync yaddayadda.pyc." I'd like to take this moment to strongly recommend more verbose error/logging messages in general. Same thing happens on both Windows 7 and Linux Mint 18.3.

12 Replies 12

Re: Dropbox Can't Sync Python Executables

Здравко
Super Collaborator | Level 20

Hi @FlexicoFlexico,
☺"pyc" extension is for PYthon Compiled files, not executable. 😉 They're not something mandatory and very version specific, so better don't sync the subdirectory, you mentioned.
Hope this helps.

Re: Dropbox Can't Sync Python Executables

Flexico
Explorer | Level 4

No, this does not help at all, because these files used to sync just fine, and are labelled according to their version number and therefore won't conflict, and in other folders I've had the same type of files continue to sync just fine; it's just in the one folder.

Re: Dropbox Can't Sync Python Executables

Здравко
Super Collaborator | Level 20
In such a case, check for possible permission issue or just delete the subdirectory with compiled bytecodes, they will be regenerated on first script run. 😉

Re: Dropbox Can't Sync Python Executables

Flexico
Explorer | Level 4

Already did both of those several times.

Re: Dropbox Can't Sync Python Executables

Здравко
Super Collaborator | Level 20

@Flexico wrote:

Already did both of those several times.


Hi @Flexico,

As you had deleted bytecode's directory, do the sync process completes successfully before it gets regenerated? :thinking: Check, if you aren't sure.

Re: Dropbox Can't Sync Python Executables

Jane
Dropboxer
Hey @Flexico, thanks for posting us on the Community on this matter! 
 
Just to get started, could you include a screenshot (without personal info) in your next message for us showing us the message you’re seeing?
 
In what context are you using the .pyc file you’ve stored in Dropbox as you’re running the script? It sounds that the the file’s locked as another app is trying to access it & that's triggering the error message. 
 
As you’ve mentioned that this used to work & it’s just this one directory causing your trouble, I’d like to see if the root cause lies in Dropbox or otherwise. 
 
Please let me know of your findings & we’ll go from there. Thanks!

 


Jane
Community Moderator @ Dropbox
dropbox.com/support

 

Heart Did this post help you? If so please give it a Like below. 
:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
:arrows_counterclockwise: Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Re: Dropbox Can't Sync Python Executables

Здравко
Super Collaborator | Level 20

@Jane wrote:
...
In what context are you using the .pyc file you’ve stored in Dropbox as you’re running the script? It sounds that the the file’s is being locked as another app is trying to access it that's triggering the error message. 
...

Hi @Jane,

Actually, would be really strange (softly said) if locking is a reason. Compiled form is produced once only and gets updated only when script gets changed, so locking can't affect (or at least don't have to). Even more, the compiled form is optional and if there is some problem, Python interpreter keep "on fly" generated variant in RAM. :wink:

Hope this casts some light.

Re: Dropbox Can't Sync Python Executables

zdimaria
Helpful | Level 5

I started having this same issue.  *.pyc files and __pycache__ folders are stopping everything from syncing.   Is there any update on this?  I have looked for a way to ignore all *.pyc files but have not found a way to do this with dropbox.  

Re: Dropbox Can't Sync Python Executables

Flexico
Explorer | Level 4

I just manually upload the __pycache__ folder to the Dropbox website every so often. Not a permanent solution, but at least it gets rid of the little "working" icon on the taskbar. XD

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Need more support?