<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ImportError: cannot import name oledExp]]></title><description><![CDATA[<p dir="auto">My OLD works fine with commands like:</p>
<blockquote>
<p dir="auto">oled-exp -i write "hello"</p>
</blockquote>
<p dir="auto">But I can't get the stock ticker to work. I get the following error:</p>
<blockquote>
<p dir="auto">root@Omega-****:~/oled-stock-ticker# python <a href="http://main.py" rel="nofollow">main.py</a><br />
Traceback (most recent call last):<br />
File "<a href="http://main.py" rel="nofollow">main.py</a>", line 4, in &lt;module&gt;<br />
import oledDriver<br />
File "/root/oled-stock-ticker/oledDriver.py", line 1, in &lt;module&gt;<br />
from OmegaExpansion import oledExp<br />
ImportError: cannot import name oledExp</p>
</blockquote>
<p dir="auto">I can't find any information on this error. I've tried installing the drivers and it did not help.</p>
]]></description><link>http://community.onion.io/topic/3024/importerror-cannot-import-name-oledexp</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 06:57:03 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/3024.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jul 2018 03:18:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ImportError: cannot import name oledExp on Sun, 15 Jul 2018 03:19:49 GMT]]></title><description><![CDATA[<p dir="auto">My OLD works fine with commands like:</p>
<blockquote>
<p dir="auto">oled-exp -i write "hello"</p>
</blockquote>
<p dir="auto">But I can't get the stock ticker to work. I get the following error:</p>
<blockquote>
<p dir="auto">root@Omega-****:~/oled-stock-ticker# python <a href="http://main.py" rel="nofollow">main.py</a><br />
Traceback (most recent call last):<br />
File "<a href="http://main.py" rel="nofollow">main.py</a>", line 4, in &lt;module&gt;<br />
import oledDriver<br />
File "/root/oled-stock-ticker/oledDriver.py", line 1, in &lt;module&gt;<br />
from OmegaExpansion import oledExp<br />
ImportError: cannot import name oledExp</p>
</blockquote>
<p dir="auto">I can't find any information on this error. I've tried installing the drivers and it did not help.</p>
]]></description><link>http://community.onion.io/post/17238</link><guid isPermaLink="true">http://community.onion.io/post/17238</guid><dc:creator><![CDATA[Susan Donovan]]></dc:creator><pubDate>Sun, 15 Jul 2018 03:19:49 GMT</pubDate></item><item><title><![CDATA[Reply to ImportError: cannot import name oledExp on Sun, 15 Jul 2018 12:16:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5727">@Susan-Donovan</a> Have you installed all dependencies according to <a href="https://docs.onion.io/omega2-project-book-vol1/stock-ticker.html" rel="nofollow">the documentation</a>? <code>opkg update</code>, <code> opkg install python-light python-urllib3 pyOledExp git git-http ca-bundle</code></p>
]]></description><link>http://community.onion.io/post/17240</link><guid isPermaLink="true">http://community.onion.io/post/17240</guid><dc:creator><![CDATA[Maximilian Gerhardt]]></dc:creator><pubDate>Sun, 15 Jul 2018 12:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to ImportError: cannot import name oledExp on Sun, 15 Jul 2018 12:33:20 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Maximilian Gerhardt</p>
<p dir="auto">OK I was able to fix this problem by updating:</p>
<p dir="auto">opkg upgrade libonioni2c pyOnionI2C<br />
opkg install python-light pyOledExp</p>
<p dir="auto">But now there is a new error</p>
<blockquote>
<p dir="auto">Initializing display<br />
Traceback (most recent call last):<br />
File "<a href="http://main.py" rel="nofollow">main.py</a>", line 21, in &lt;module&gt;<br />
stockList = stocks.getStocks(config["stocks"])<br />
File "/root/oled-stock-ticker/stocks.py", line 33, in getStocks<br />
return readGoogleFinance(stocksRequest.data.decode('utf-8'))             # returns list of stock objects<br />
File "/root/oled-stock-ticker/stocks.py", line 22, in readGoogleFinance<br />
data = json.loads(data)                 # read the json<br />
File "/usr/lib/python2.7/json/<strong>init</strong>.py", line 339, in loads<br />
return _default_decoder.decode(s)<br />
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode<br />
obj, end = self.raw_decode(s, idx=_w(s, 0).end())<br />
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode<br />
raise ValueError("No JSON object could be decoded")<br />
ValueError: No JSON object could be decoded</p>
</blockquote>
<p dir="auto">I have not edited the json yet, so it should be formatted correctly.<br />
I'm still learning how to use python, so some of this is confusing to me.</p>
<p dir="auto">What should I try next to fix this error?</p>
]]></description><link>http://community.onion.io/post/17242</link><guid isPermaLink="true">http://community.onion.io/post/17242</guid><dc:creator><![CDATA[Susan Donovan]]></dc:creator><pubDate>Sun, 15 Jul 2018 12:33:20 GMT</pubDate></item><item><title><![CDATA[Reply to ImportError: cannot import name oledExp on Sun, 15 Jul 2018 12:48:46 GMT]]></title><description><![CDATA[<p dir="auto">I think this new error may mean that I need to get rid of "python-light" and just have python. I found this thread about removing python so I can reinstall it:</p>
<p dir="auto"><a href="http://community.onion.io/topic/337/want-to-uninstall-python/11">http://community.onion.io/topic/337/want-to-uninstall-python/11</a></p>
<p dir="auto">I'm a bit nervous about botching it up.</p>
<p dir="auto">If this fails is there anyway to just erase everything on the onion and start over?</p>
<p dir="auto">Thank you</p>
]]></description><link>http://community.onion.io/post/17244</link><guid isPermaLink="true">http://community.onion.io/post/17244</guid><dc:creator><![CDATA[Susan Donovan]]></dc:creator><pubDate>Sun, 15 Jul 2018 12:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to ImportError: cannot import name oledExp on Sun, 15 Jul 2018 14:49:35 GMT]]></title><description><![CDATA[<p dir="auto">OK I just did a reinstall of the console and everything. I'm using the terminal on a mac (the real one not the browser.) still getting the json error:</p>
<blockquote>
<p dir="auto">Traceback (most recent call last):<br />
File "<a href="http://main.py" rel="nofollow">main.py</a>", line 21, in &lt;module&gt;<br />
stockList = stocks.getStocks(config["stocks"])<br />
File "/root/oled-stock-ticker/stocks.py", line 33, in getStocks<br />
return readGoogleFinance(stocksRequest.data.decode('utf-8'))             # returns list of stock objects<br />
File "/root/oled-stock-ticker/stocks.py", line 22, in readGoogleFinance<br />
data = json.loads(data)                 # read the json<br />
File "/usr/lib/python2.7/json/<strong>init</strong>.py", line 339, in loads<br />
return _default_decoder.decode(s)<br />
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode<br />
obj, end = self.raw_decode(s, idx=_w(s, 0).end())<br />
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode<br />
raise ValueError("No JSON object could be decoded")<br />
ValueError: No JSON object could be decoded</p>
</blockquote>
<p dir="auto">Really stuck at this point.</p>
]]></description><link>http://community.onion.io/post/17245</link><guid isPermaLink="true">http://community.onion.io/post/17245</guid><dc:creator><![CDATA[Susan Donovan]]></dc:creator><pubDate>Sun, 15 Jul 2018 14:49:35 GMT</pubDate></item><item><title><![CDATA[Reply to ImportError: cannot import name oledExp on Mon, 16 Jul 2018 10:11:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5727">@Susan-Donovan</a> I think Google has stopped / revamped the <strong>Google Finance API</strong>.<br />
<a href="https://www.quora.com/How-much-longer-will-the-Google-Finance-RESTFUL-API-function/answer/Jeff-Nelson-32" rel="nofollow">How much longer will the Google Finance RESTFUL API function?</a><br />
<a href="https://www.digitaltrends.com/computing/google-finance-backlash/" rel="nofollow">Everyone hates the new look of Google Finance</a></p>
<p dir="auto"><a href="https://docs.onion.io/omega2-project-book-vol1/stock-ticker.html" rel="nofollow">Stock Ticker</a> is another example of "It worked at previously!" <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/2122.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--tm" title=":tm:" alt="™" /> <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/95">@Lazar-Demin</a> <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--wink" title=";-)" alt="😉" /></p>
]]></description><link>http://community.onion.io/post/17248</link><guid isPermaLink="true">http://community.onion.io/post/17248</guid><dc:creator><![CDATA[György Farkas]]></dc:creator><pubDate>Mon, 16 Jul 2018 10:11:59 GMT</pubDate></item><item><title><![CDATA[Reply to ImportError: cannot import name oledExp on Mon, 16 Jul 2018 23:29:41 GMT]]></title><description><![CDATA[<p dir="auto">Thank you. At least now I know why it isn't working maybe some rainy sunday I'll try to look into the code and fix it I have some experience pulling json data like this for other projects on ATMEGE328p and ESP8266. The Omega is almost overwhelming me with all the features and coding options, but I like it.</p>
<p dir="auto">I made the newsfeed work instead and will adapt that into to train time display for my husband.</p>
<p dir="auto">Good to know I wasn't just messing up.</p>
]]></description><link>http://community.onion.io/post/17257</link><guid isPermaLink="true">http://community.onion.io/post/17257</guid><dc:creator><![CDATA[Susan Donovan]]></dc:creator><pubDate>Mon, 16 Jul 2018 23:29:41 GMT</pubDate></item></channel></rss>