Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Christian C.1's avatar
Christian C.1
New member | Level 1
11 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?

2 Replies

Replies have been turned off for this discussion
  • Christian C.1's avatar
    Christian C.1
    New member | Level 1
    11 years ago

    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 Community Moderator rankDropbox Community Moderator
    11 years ago

    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.

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, Facebook or Instagram.

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!