Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester  here!

Forum Discussion

Joe_Trouble's avatar
Joe_Trouble
New member | Level 2
2 years 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

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    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.6,037 PostsLatest Activity: 17 hours ago
413 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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!