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

Christian C.1's avatar
Christian C.1
New member | Level 1
10 years ago

Python module has no __version__ attribute

The following Python code throws the exception AttributeError("'module' object has no attribute 'version'",):

import dropbox
print(dropbox.version)

What is the recommended way to discover the currently installed Python module version number at runtime?

  • Christian C.1's avatar
    Christian C.1
    New member | Level 1

    The following Python code throws the exception AttributeError("'module' object has no attribute '__version__'",):

    import dropbox
    print(dropbox.__version__)
    

    What is the recommended way to discover the currently installed Python module version number at runtime?

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

    The SDK doesn't currently have .version or .version, but I'll be sure to pass this along as a request. You can currently check the version via this though:

    dropbox.rest.SDK_VERSION
    

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 2 days ago
333 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!