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
vas1992
3 years agoHelpful | Level 5
Sharing folder
Hello! I have a problem getting (and create) a link to a public folder in python:
dbx.sharing_create_shared_link(DxFold)
dbx.sharing_get_shared_links(DxFold)
Everything works in python ...
- 3 years ago
Hi vas1992,
Yes, 'six' module is part of Python standard distribution and that's why preinstalled, of course.
vas1992 wrote:...
(vRMS) pi@RU000Q:~/source/RMS $ python3 -m pip show six Name: six Version: 1.8.0 ...
Your version (1.8.0) is far old! 🤷 At that time 'ensure_str' isn't part of 'six' and that's why missing in your code. For first time it appears in some releases of version 1.11 and finally became part of the standard distribution in version 1.12.0.
You have to update your 'six' version, at least 1.12 or newer, or even better update entire Python distribution to more recent one. 😉
Hope this helps.
vas1992
Helpful | Level 5
On Ubuntu 20.04 (worked)
pip3 list
dropbox 11.25.0
===============================
RPi 3B+ (No work)
python3 -m pip list
dropbox (11.25.0)
=====
Здравко
3 years agoLegendary | Level 20
Hi vas1992,
Greg-DB asked you for result of a command like:
pip3 show six
or another option:
python3 -m pip show six
Whatever you prefer. 😉 Function 'ensure_str' should come up there, that seems missing now for some reason.
In addition you can find out your six.py place by using following on command line:
echo "import six; print('path to six:', six.__file__)" | python3
... and inspect byself what's there - is there such a function defined or referred/redirected by some way 🧐. Normally there should be.
Good luck and happy New Year!
- vas19923 years agoHelpful | Level 5
Thank you. 'Six' was already installed:
(vRMS) pi@RU000Q:~/source/RMS $ python3 -m pip show six Name: six Version: 1.8.0 Summary: Python 2 and 3 compatibility utilities Home-page: http://pypi.python.org/pypi/six/ Author: Benjamin Peterson Author-email: benjamin@python.org License: MIT Location: /usr/lib/python3/dist-packages Requires: (vRMS) pi@RU000Q:~/source/RMS $ echo "import six; print('path to six:', six.__file__)" | python3 path to six: /usr/lib/python3/dist-packages/six.py (vRMS) pi@RU000Q:~/source/RMS $
- Здравко3 years agoLegendary | Level 20
Hi vas1992,
Yes, 'six' module is part of Python standard distribution and that's why preinstalled, of course.
vas1992 wrote:...
(vRMS) pi@RU000Q:~/source/RMS $ python3 -m pip show six Name: six Version: 1.8.0 ...
Your version (1.8.0) is far old! 🤷 At that time 'ensure_str' isn't part of 'six' and that's why missing in your code. For first time it appears in some releases of version 1.11 and finally became part of the standard distribution in version 1.12.0.
You have to update your 'six' version, at least 1.12 or newer, or even better update entire Python distribution to more recent one. 😉
Hope this helps.
- Greg-DB3 years agoDropbox Staff
That's correct, v11.25.0 of the 'dropbox' library depends on at least v1.12.0 of 'six', so you need at least that version to get this working.
- vas19923 years agoHelpful | Level 5
Thanks! Everything worked as it should!
About Discuss Dropbox Developer & API
Make connections with other developers
797 PostsLatest Activity: 4 days agoIf 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!