<?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[Python 3.4.3 and sockets]]></title><description><![CDATA[<p dir="auto">Have anyone gotten sockets to work on the omega?</p>
<p dir="auto">Running something like</p>
<pre><code>import socket
import encodings.idna
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = socket.gethostname()
port = 9999
s.bind((host, port))
</code></pre>
<p dir="auto">Throws the error</p>
<pre><code>Traceback (most recent call last):
  File "server3.py", line 2, in &lt;module&gt;
    import encodings.idna
  File "/usr/lib/python3.4/encodings/idna.py", line 3, in &lt;module&gt;
    import stringprep, re, codecs
  File "/usr/lib/python3.4/stringprep.py", line 8, in &lt;module&gt;
    from unicodedata import ucd_3_2_0 as unicodedata
ImportError: No module named 'unicodedata'
</code></pre>
<p dir="auto">Google'in "unicodedata" afaik only gives me pre python3 results....</p>
<p dir="auto">Any ideas?</p>
]]></description><link>http://community.onion.io/topic/448/python-3-4-3-and-sockets</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 22:58:09 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/448.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jan 2016 20:49:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Python 3.4.3 and sockets on Mon, 08 Feb 2016 04:57:16 GMT]]></title><description><![CDATA[<p dir="auto">Have anyone gotten sockets to work on the omega?</p>
<p dir="auto">Running something like</p>
<pre><code>import socket
import encodings.idna
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = socket.gethostname()
port = 9999
s.bind((host, port))
</code></pre>
<p dir="auto">Throws the error</p>
<pre><code>Traceback (most recent call last):
  File "server3.py", line 2, in &lt;module&gt;
    import encodings.idna
  File "/usr/lib/python3.4/encodings/idna.py", line 3, in &lt;module&gt;
    import stringprep, re, codecs
  File "/usr/lib/python3.4/stringprep.py", line 8, in &lt;module&gt;
    from unicodedata import ucd_3_2_0 as unicodedata
ImportError: No module named 'unicodedata'
</code></pre>
<p dir="auto">Google'in "unicodedata" afaik only gives me pre python3 results....</p>
<p dir="auto">Any ideas?</p>
]]></description><link>http://community.onion.io/post/3482</link><guid isPermaLink="true">http://community.onion.io/post/3482</guid><dc:creator><![CDATA[Jarl U. Christian Persson]]></dc:creator><pubDate>Mon, 08 Feb 2016 04:57:16 GMT</pubDate></item><item><title><![CDATA[Reply to Python 3.4.3 and sockets on Wed, 20 Jan 2016 20:45:31 GMT]]></title><description><![CDATA[<p dir="auto">I receive a very different error.</p>
<p dir="auto">root@Omega-09E9:/proc# oupgrade -version</p>
<blockquote>
<p dir="auto">Device Firmware Version: 0.0.6 b26</p>
</blockquote>
<p dir="auto">root@Omega-09E9:~/test# python3 --version</p>
<blockquote>
<p dir="auto">Python 3.4.3</p>
</blockquote>
<p dir="auto">root@Omega-09E9:~/test# cat <a href="http://test.py" rel="nofollow">test.py</a><br />
import socket<br />
import encodings.idna<br />
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br />
host = socket.gethostname()<br />
port = 9999<br />
s.bind((host, port))</p>
<p dir="auto">root@Omega-09E9:~/test# python3 <a href="http://test.py" rel="nofollow">test.py</a><br />
<strong>Traceback (most recent call last):<br />
File "<a href="http://prova.py" rel="nofollow">prova.py</a>", line 6, in &lt;module&gt;<br />
s.bind((host, port))<br />
socket.gaierror: [Errno -2] Name or service not known</strong></p>
<p dir="auto">In my case the error is caused by the fact that the hostname cannot be resolved by any DNS.</p>
<p dir="auto">A simple solution is adding it to /etc/hosts.</p>
<p dir="auto">root@Omega-09E9:~/test# cat /etc/hosts<br />
127.0.0.1 localhost<br />
127.0.0.1 Omega-09E9</p>
]]></description><link>http://community.onion.io/post/3523</link><guid isPermaLink="true">http://community.onion.io/post/3523</guid><dc:creator><![CDATA[Massimiliano della Rovere]]></dc:creator><pubDate>Wed, 20 Jan 2016 20:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to Python 3.4.3 and sockets on Thu, 21 Jan 2016 09:27:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/257">@Jarl-U-Christian-Persson</a> It's worth to say that I'm using external USB storage [1] to install all the python3 modules available[2][3] through opkg [4].<br />
May be you are missing some modules? double check it.</p>
<p dir="auto">[1] <a href="https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs" rel="nofollow">https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs</a> - "option extroot with pivot-overlay"</p>
<p dir="auto">[2] List all the python3 packages available in the repository:</p>
<blockquote>
<p dir="auto">opkg find '* python3 *' (remove the spaces before and after the *)</p>
</blockquote>
<p dir="auto">[3] List of all the python3 packages installed:</p>
<blockquote>
<p dir="auto">opkg list-installed | grep python3</p>
</blockquote>
<p dir="auto">[4] <a href="https://wiki.openwrt.org/doc/techref/opkg" rel="nofollow">https://wiki.openwrt.org/doc/techref/opkg</a></p>
]]></description><link>http://community.onion.io/post/3554</link><guid isPermaLink="true">http://community.onion.io/post/3554</guid><dc:creator><![CDATA[Massimiliano della Rovere]]></dc:creator><pubDate>Thu, 21 Jan 2016 09:27:21 GMT</pubDate></item><item><title><![CDATA[Reply to Python 3.4.3 and sockets on Sat, 23 Jan 2016 14:44:24 GMT]]></title><description><![CDATA[<p dir="auto">Until I get within reach of my Omega I can say that, the hostname is changed and it's python3-light.</p>
<p dir="auto"><em>Update</em></p>
<p dir="auto">Packages found</p>
<p dir="auto">python3-base - 3.4.3-2<br />
python3-light - 3.4.3-2</p>
]]></description><link>http://community.onion.io/post/3561</link><guid isPermaLink="true">http://community.onion.io/post/3561</guid><dc:creator><![CDATA[Jarl U. Christian Persson]]></dc:creator><pubDate>Sat, 23 Jan 2016 14:44:24 GMT</pubDate></item><item><title><![CDATA[Reply to Python 3.4.3 and sockets on Mon, 08 Feb 2016 04:56:45 GMT]]></title><description><![CDATA[<p dir="auto">A far as I can tell it was due to me running "python-light", installed the full python3 on a external usb as suggested and that fixed it.</p>
<p dir="auto">Copied the output from installing python3, in case someone wants to dig into what the cause might be.</p>
<pre><code>root@Omega-225A:/# opkg install python3
Installing python3 (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3_3.4.3-2_ar71xx.ipk.
Installing python3-light (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-light_3.4.3-2_ar71xx.ipk.
Installing python3-base (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-base_3.4.3-2_ar71xx.ipk.
Installing libffi (3.0.13-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libffi_3.0.13-1_ar71xx.ipk.
Installing libbz2 (1.0.6-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/libbz2_1.0.6-2_ar71xx.ipk.
Installing python3-asyncio (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-asyncio_3.4.3-2_ar71xx.ipk.
Installing python3-codecs (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-codecs_3.4.3-2_ar71xx.ipk.
Installing python3-ctypes (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-ctypes_3.4.3-2_ar71xx.ipk.
Installing python3-dbm (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-dbm_3.4.3-2_ar71xx.ipk.
Installing libdb47 (4.7.25.4.NC-4.1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libdb47_4.7.25.4.NC-4.1_ar71xx.ipk.
Installing libxml2 (2.9.2-3) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libxml2_2.9.2-3_ar71xx.ipk.
Installing python3-decimal (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-decimal_3.4.3-2_ar71xx.ipk.
Installing python3-distutils (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-distutils_3.4.3-2_ar71xx.ipk.
Installing python3-email (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-email_3.4.3-2_ar71xx.ipk.
Installing python3-gdbm (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-gdbm_3.4.3-2_ar71xx.ipk.
Installing libgdbm (1.11-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libgdbm_1.11-1_ar71xx.ipk.
Installing python3-logging (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-logging_3.4.3-2_ar71xx.ipk.
Installing python3-lzma (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-lzma_3.4.3-2_ar71xx.ipk.
Installing liblzma (5.2.1-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/liblzma_5.2.1-2_ar71xx.ipk.
Installing python3-multiprocessing (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-multiprocessing_3.4.3-2_ar71xx.ipk.
Installing python3-ncurses (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-ncurses_3.4.3-2_ar71xx.ipk.
Installing python3-openssl (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-openssl_3.4.3-2_ar71xx.ipk.
Installing python3-pydoc (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-pydoc_3.4.3-2_ar71xx.ipk.
Installing python3-sqlite3 (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-sqlite3_3.4.3-2_ar71xx.ipk.
Installing libsqlite3 (3081101-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libsqlite3_3081101-1_ar71xx.ipk.
Installing python3-unittest (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-unittest_3.4.3-2_ar71xx.ipk.
Installing python3-xml (3.4.3-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python3-xml_3.4.3-2_ar71xx.ipk.
Configuring python3-base.
Configuring libffi.
Configuring libbz2.
Configuring python3-light.
Configuring python3-pydoc.
Configuring liblzma.
Configuring python3-email.
Configuring python3-decimal.
Configuring python3-xml.
Configuring libxml2.
Configuring python3-ncurses.
Configuring python3-distutils.
Configuring python3-codecs.
Configuring python3-multiprocessing.
Configuring python3-asyncio.
Configuring python3-ctypes.
Configuring libdb47.
Configuring python3-dbm.
Configuring libgdbm.
Configuring python3-gdbm.
Configuring python3-logging.
Configuring python3-lzma.
Configuring python3-openssl.
Configuring libsqlite3.
Configuring python3-sqlite3.
Configuring python3-unittest.
Configuring python3.
</code></pre>
]]></description><link>http://community.onion.io/post/3635</link><guid isPermaLink="true">http://community.onion.io/post/3635</guid><dc:creator><![CDATA[Jarl U. Christian Persson]]></dc:creator><pubDate>Mon, 08 Feb 2016 04:56:45 GMT</pubDate></item></channel></rss>