<?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 Dropbox API Error when downloading image to raspi in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Error-when-downloading-image-to-raspi/m-p/337754#M19665</link>
    <description>&lt;P&gt;Hi guys, im a total noob in this kind of topic. I got an error messages when i try to download an image from my dropbox with api key.&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;import dropbox&lt;/P&gt;&lt;P&gt;dbx = dropbox.Dropbox("orHc3wTGXpAAAAAAAAAAftTm4_Z......")&lt;/P&gt;&lt;P&gt;dropboxPath = "/"&lt;BR /&gt;filename='picked_image1981016614414776853.jpg'&lt;BR /&gt;dbx.files_download_to_file("Copy of "+filename, dropboxPath+filename)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the error message:&lt;/P&gt;&lt;P&gt;sudo python3 tesdownload.py&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "tesdownload.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;dbx.files_download_to_file("Copy of "+filename, dropboxPath+filename)&lt;BR /&gt;File "/usr/local/lib/python3.5/dist-packages/dropbox/base.py", line 1141, in files_download_to_file&lt;BR /&gt;None,&lt;BR /&gt;File "/usr/local/lib/python3.5/dist-packages/dropbox/dropbox.py", line 296, in request&lt;BR /&gt;user_message_locale)&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('9aef17aad8ae453cea278550b962d978', DownloadError('path', LookupError('not_found', None)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this one pls, im a complete noob &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:07:00 GMT</pubDate>
    <dc:creator>andrwfrost</dc:creator>
    <dc:date>2019-05-29T09:07:00Z</dc:date>
    <item>
      <title>Dropbox API Error when downloading image to raspi</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Error-when-downloading-image-to-raspi/m-p/337754#M19665</link>
      <description>&lt;P&gt;Hi guys, im a total noob in this kind of topic. I got an error messages when i try to download an image from my dropbox with api key.&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;import dropbox&lt;/P&gt;&lt;P&gt;dbx = dropbox.Dropbox("orHc3wTGXpAAAAAAAAAAftTm4_Z......")&lt;/P&gt;&lt;P&gt;dropboxPath = "/"&lt;BR /&gt;filename='picked_image1981016614414776853.jpg'&lt;BR /&gt;dbx.files_download_to_file("Copy of "+filename, dropboxPath+filename)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the error message:&lt;/P&gt;&lt;P&gt;sudo python3 tesdownload.py&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "tesdownload.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;dbx.files_download_to_file("Copy of "+filename, dropboxPath+filename)&lt;BR /&gt;File "/usr/local/lib/python3.5/dist-packages/dropbox/base.py", line 1141, in files_download_to_file&lt;BR /&gt;None,&lt;BR /&gt;File "/usr/local/lib/python3.5/dist-packages/dropbox/dropbox.py", line 296, in request&lt;BR /&gt;user_message_locale)&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('9aef17aad8ae453cea278550b962d978', DownloadError('path', LookupError('not_found', None)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this one pls, im a complete noob &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Error-when-downloading-image-to-raspi/m-p/337754#M19665</guid>
      <dc:creator>andrwfrost</dc:creator>
      <dc:date>2019-05-29T09:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Error when downloading image to raspi</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Error-when-downloading-image-to-raspi/m-p/338187#M19670</link>
      <description>&lt;P&gt;This &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/files.html#dropbox.files.LookupError" target="_self"&gt;'not_found' error&lt;/A&gt; indicates that "There is nothing at the given path". That is referring to the remote path on&amp;nbsp;Dropbox for the file you requested to download.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the 'files_download_to_file' method, that's the second parameter, to which you are supplying the path "/picked_image1981016614414776853.jpg" according to this code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure that's the correct path? Note that if that access token is for a "Full Dropbox" app, the path should be the full path to the file, relative to the Dropbox folder, including any/all parent folders. If the access token is for an "app folder" app, the path should only be relative to the app folder itself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:21:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Error-when-downloading-image-to-raspi/m-p/338187#M19670</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-04-08T18:21:21Z</dc:date>
    </item>
  </channel>
</rss>

