You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Joe_Trouble's avatar
Joe_Trouble
New member | Level 2
7 months ago

No module named 'dropbox.exceptions'; 'dropbox' is not a package

Using the example provided on github ''backup-and-restore-example.py". when trying to run it, it says No module named 'dropbox.exceptions'; 'dropbox' is not a package.  it shows the same error with "from dropbox.files import WriteMode"

not virtual enviroment 

py version: 3.11.5

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Do you have a file named "dropbox.py"? If so, Python would try to import that instead of the actual Dropbox package. In that case, rename or remove that file and try again.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,886 PostsLatest Activity: 4 hours ago
326 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!