<?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 Re: The first command dropbox.Dropbox() in the online tutorial encounters 'Cannot find reference' in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551323#M26213</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1482882"&gt;@hrh747&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;... It is part of the dropbox library that gets downloaded when a user does **pip install dropbox**.&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ok, I see. It's normal to be so, but I have my doubts what actually gets up. Let's make it sure. &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;Add a line in your code, so it gonna look like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import dropbox

print("dropbox imported from:", dropbox.__file__)

MY_TOKEN= 'XYZ'
dbx = dropbox.Dropbox(MY_TOKEN)&lt;/LI-CODE&gt;&lt;P&gt;The only difference is underlined line. Once add the line in your code, run it. It will break again, but before the error, the same you got before, should be a line like "dropbox imported from: /path/to/dropbox.py". Does actual path match your expectations (place where pip has installed dropbox) or not? 🧐 Is there single such line in the result or there is another copy too? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Can you post the result?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 12:18:54 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2021-10-18T12:18:54Z</dc:date>
    <item>
      <title>The first command dropbox.Dropbox() in the online tutorial encounters 'Cannot find reference'</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551227#M26206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Python and I started to learn about the Dropbox APIs by following the online tutorial at&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/python#tutorial" target="_blank"&gt;Python - Developers - Dropbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have generated my token through the App Consol, however, the following line of code encounters an error:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;dropbox&lt;BR /&gt;&lt;BR /&gt;MY_TOKEN= 'XYZ'&lt;BR /&gt;dbx = dropbox.Dropbox(MY_TOKEN)&lt;BR /&gt;&lt;BR /&gt;The &lt;FONT color="#FF0000"&gt;error&lt;/FONT&gt;: **Cannot find reference 'Dropbox' in 'dropbox.py** ?&lt;/PRE&gt;&lt;P&gt;Any insights will be great.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 19:01:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551227#M26206</guid>
      <dc:creator>hrh747</dc:creator>
      <dc:date>2021-10-17T19:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: The first command dropbox.Dropbox() in the online tutorial encounters 'Cannot find reference'</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551246#M26207</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1482882"&gt;@hrh747&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;The &lt;FONT color="#FF0000"&gt;error&lt;/FONT&gt;: **Cannot find reference 'Dropbox' in '&lt;STRONG&gt;dropbox.py&lt;/STRONG&gt;** ?&lt;/PRE&gt;&lt;P&gt;Any insights will be great.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1482882"&gt;@hrh747&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Is there any chance the file, mentioned within the error message, to refers to code you are writing? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; i.e. referred byself (directly or indirectly)! 🧐&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 22:27:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551246#M26207</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2021-10-17T22:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: The first command dropbox.Dropbox() in the online tutorial encounters 'Cannot find reference'</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551257#M26208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The file dropbox.py is not mine. It is part of the dropbox library that gets downloaded when a user does **pip install dropbox**.&lt;/P&gt;&lt;P&gt;My code was only the two lines I posted previously.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 04:32:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551257#M26208</guid>
      <dc:creator>hrh747</dc:creator>
      <dc:date>2021-10-18T04:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: The first command dropbox.Dropbox() in the online tutorial encounters 'Cannot find reference'</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551323#M26213</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1482882"&gt;@hrh747&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;... It is part of the dropbox library that gets downloaded when a user does **pip install dropbox**.&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ok, I see. It's normal to be so, but I have my doubts what actually gets up. Let's make it sure. &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;Add a line in your code, so it gonna look like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import dropbox

print("dropbox imported from:", dropbox.__file__)

MY_TOKEN= 'XYZ'
dbx = dropbox.Dropbox(MY_TOKEN)&lt;/LI-CODE&gt;&lt;P&gt;The only difference is underlined line. Once add the line in your code, run it. It will break again, but before the error, the same you got before, should be a line like "dropbox imported from: /path/to/dropbox.py". Does actual path match your expectations (place where pip has installed dropbox) or not? 🧐 Is there single such line in the result or there is another copy too? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Can you post the result?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 12:18:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551323#M26213</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2021-10-18T12:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: The first command dropbox.Dropbox() in the online tutorial encounters 'Cannot find reference'</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551408#M26222</link>
      <description>&lt;P&gt;Whoever you are, you are a genius &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; I thank you immensely and yes you solved the problem by suggesting to add that print statement. Apparently, when I started learning Python (a few months ago), I downloaded a sample file from Dropbox and named it dropbox.py and the import statement was picking up that file instead of the one from the library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once again&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 18:46:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-first-command-dropbox-Dropbox-in-the-online-tutorial/m-p/551408#M26222</guid>
      <dc:creator>hrh747</dc:creator>
      <dc:date>2021-10-18T18:46:50Z</dc:date>
    </item>
  </channel>
</rss>

