<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sharing folder in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567531#M2316</link>
    <description>&lt;P&gt;Hello! I have a problem getting (and create) a link to a public folder in python:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dbx.sharing_create_shared_link(DxFold)&lt;/P&gt;
&lt;P&gt;dbx.sharing_get_shared_links(DxFold)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything works in python version 3.8.10 However, when running on a RaspberryPi 3B + running version 3.4. an error message appears:&lt;/P&gt;
&lt;P&gt;=============================================================&lt;BR /&gt;[code]&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/pi/UploadDx/DxRMS.py", line 85, in &amp;lt;module&amp;gt;&lt;BR /&gt;sharedlink = dbx.sharing_get_shared_links(DxFold).links[0].url&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/dropbox/base.py", line 4350, in sharing_get_shared_links&lt;BR /&gt;None,&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/dropbox/dropbox_client.py", line 345, in request&lt;BR /&gt;returned_data_type, obj, strict=False)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 978, in json_compat_obj_decode&lt;BR /&gt;data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 558, in json_compat_obj_decode_helper&lt;BR /&gt;return self.decode_struct(data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 607, in decode_struct&lt;BR /&gt;self.decode_struct_fields(ins, all_fields, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 626, in decode_struct_fields&lt;BR /&gt;v = self.json_compat_obj_decode_helper(field_data_type, obj[name])&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 566, in json_compat_obj_decode_helper&lt;BR /&gt;data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 844, in decode_list&lt;BR /&gt;for item in obj]&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 844, in &amp;lt;listcomp&amp;gt;&lt;BR /&gt;for item in obj]&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 556, in json_compat_obj_decode_helper&lt;BR /&gt;return self.decode_struct_tree(data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 797, in decode_struct_tree&lt;BR /&gt;return self.decode_struct(subtype, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 607, in decode_struct&lt;BR /&gt;self.decode_struct_fields(ins, all_fields, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 626, in decode_struct_fields&lt;BR /&gt;v = self.json_compat_obj_decode_helper(field_data_type, obj[name])&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 563, in json_compat_obj_decode_helper&lt;BR /&gt;return self.decode_union(data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 662, in decode_union&lt;BR /&gt;return data_type.definition(six.ensure_str(tag), val)&lt;BR /&gt;AttributeError: 'module' object has no attribute 'ensure_str'&lt;BR /&gt;[/code]&lt;/P&gt;
&lt;P&gt;====================================================&lt;/P&gt;
&lt;P&gt;How can I fix this on the current version of python3.4? You can't put anything on raspberries - that's the root of the problem. Tell me who understands.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jan 2022 12:10:13 GMT</pubDate>
    <dc:creator>vas1992</dc:creator>
    <dc:date>2022-01-03T12:10:13Z</dc:date>
    <item>
      <title>Sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567531#M2316</link>
      <description>&lt;P&gt;Hello! I have a problem getting (and create) a link to a public folder in python:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dbx.sharing_create_shared_link(DxFold)&lt;/P&gt;
&lt;P&gt;dbx.sharing_get_shared_links(DxFold)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything works in python version 3.8.10 However, when running on a RaspberryPi 3B + running version 3.4. an error message appears:&lt;/P&gt;
&lt;P&gt;=============================================================&lt;BR /&gt;[code]&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/pi/UploadDx/DxRMS.py", line 85, in &amp;lt;module&amp;gt;&lt;BR /&gt;sharedlink = dbx.sharing_get_shared_links(DxFold).links[0].url&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/dropbox/base.py", line 4350, in sharing_get_shared_links&lt;BR /&gt;None,&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/dropbox/dropbox_client.py", line 345, in request&lt;BR /&gt;returned_data_type, obj, strict=False)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 978, in json_compat_obj_decode&lt;BR /&gt;data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 558, in json_compat_obj_decode_helper&lt;BR /&gt;return self.decode_struct(data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 607, in decode_struct&lt;BR /&gt;self.decode_struct_fields(ins, all_fields, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 626, in decode_struct_fields&lt;BR /&gt;v = self.json_compat_obj_decode_helper(field_data_type, obj[name])&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 566, in json_compat_obj_decode_helper&lt;BR /&gt;data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 844, in decode_list&lt;BR /&gt;for item in obj]&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 844, in &amp;lt;listcomp&amp;gt;&lt;BR /&gt;for item in obj]&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 556, in json_compat_obj_decode_helper&lt;BR /&gt;return self.decode_struct_tree(data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 797, in decode_struct_tree&lt;BR /&gt;return self.decode_struct(subtype, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 607, in decode_struct&lt;BR /&gt;self.decode_struct_fields(ins, all_fields, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 626, in decode_struct_fields&lt;BR /&gt;v = self.json_compat_obj_decode_helper(field_data_type, obj[name])&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 563, in json_compat_obj_decode_helper&lt;BR /&gt;return self.decode_union(data_type, obj)&lt;BR /&gt;File "/home/pi/.local/lib/python3.4/site-packages/stone/backends/python_rsrc/stone_serializers.py", line 662, in decode_union&lt;BR /&gt;return data_type.definition(six.ensure_str(tag), val)&lt;BR /&gt;AttributeError: 'module' object has no attribute 'ensure_str'&lt;BR /&gt;[/code]&lt;/P&gt;
&lt;P&gt;====================================================&lt;/P&gt;
&lt;P&gt;How can I fix this on the current version of python3.4? You can't put anything on raspberries - that's the root of the problem. Tell me who understands.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 12:10:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567531#M2316</guid>
      <dc:creator>vas1992</dc:creator>
      <dc:date>2022-01-03T12:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567576#M2317</link>
      <description>&lt;P&gt;What version of 'dropbox' do you have installed, and what version of 'six' do you have installed?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 21:13:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567576#M2317</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-12-31T21:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567585#M2318</link>
      <description>&lt;P&gt;On Ubuntu 20.04 (worked)&lt;BR /&gt;pip3 list&lt;/P&gt;&lt;P&gt;dropbox 11.25.0&lt;/P&gt;&lt;P&gt;===============================&lt;BR /&gt;RPi 3B+ (No work)&lt;BR /&gt;python3 -m pip list&lt;/P&gt;&lt;P&gt;dropbox (11.25.0)&lt;BR /&gt;=====&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 22:55:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567585#M2318</guid>
      <dc:creator>vas1992</dc:creator>
      <dc:date>2021-12-31T22:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567693#M2320</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1505491"&gt;@vas1992&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp; asked you for result of a command like:&lt;/P&gt;&lt;PRE&gt;pip3 show six&lt;/PRE&gt;&lt;P&gt;or another option:&lt;/P&gt;&lt;PRE&gt;python3 -m pip show six&lt;/PRE&gt;&lt;P&gt;Whatever you prefer. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Function '&lt;STRONG&gt;ensure_str&lt;/STRONG&gt;' should come up there, that seems missing now for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition you can find out your six.py place by using following on command line:&lt;/P&gt;&lt;PRE&gt;echo &lt;SPAN class=""&gt;"import six; print('path to six:', six.__file__)"&lt;/SPAN&gt; &lt;SPAN class=""&gt;|&lt;/SPAN&gt; python3&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;... and inspect byself what's there - is there such a function defined or referred/redirected by some way 🧐. Normally there should be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck and happy New Year!&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 14:57:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567693#M2320</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-01-02T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567809#M2321</link>
      <description>&lt;P&gt;Thank you. 'Six' was already installed:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;(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 $ &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Jan 2022 11:38:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567809#M2321</guid>
      <dc:creator>vas1992</dc:creator>
      <dc:date>2022-01-03T11:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567832#M2322</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1505491"&gt;@vas1992&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, 'six' module is part of Python standard distribution and that's why preinstalled, of course.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1505491"&gt;@vas1992&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;(vRMS) pi@RU000Q:~/source/RMS $ python3 -m pip show six
Name: six
Version: 1.8.0
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;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 &lt;A title="add ensure_binary/str/text helper functions (#204)" href="https://github.com/benjaminp/six/blob/db3d0d678b422614d5de0f9ed76a2112a28c7b19/six.py" target="_blank" rel="noopener"&gt;some releases of version 1.11&lt;/A&gt; and finally became part of the standard distribution in version 1.12.0.&lt;/P&gt;&lt;P&gt;You have to update your 'six' version, at least 1.12 or newer, or even better update entire Python distribution to more recent one. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 13:23:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567832#M2322</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-01-03T13:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567867#M2323</link>
      <description>&lt;P&gt;That's correct, &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/setup.py#L29" target="_self"&gt;v11.25.0 of the 'dropbox' library depends on at least v&lt;SPAN class="pl-s"&gt;1.12.0&lt;/SPAN&gt; of 'six&lt;/A&gt;', so you need at least that version to get this working.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 15:28:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/567867#M2323</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-01-03T15:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/568243#M2329</link>
      <description>&lt;P&gt;Thanks! Everything worked as it should!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 20:53:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Sharing-folder/m-p/568243#M2329</guid>
      <dc:creator>vas1992</dc:creator>
      <dc:date>2022-01-04T20:53:08Z</dc:date>
    </item>
  </channel>
</rss>

