<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by David (Zehua) Wang on Medium]]></title>
        <description><![CDATA[Stories by David (Zehua) Wang on Medium]]></description>
        <link>https://medium.com/@david.rightmesh?source=rss-a2cf36aa9642------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jSEEQMp_CDktaqhphKiOdA.jpeg</url>
            <title>Stories by David (Zehua) Wang on Medium</title>
            <link>https://medium.com/@david.rightmesh?source=rss-a2cf36aa9642------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 17:11:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@david.rightmesh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Configuring Ubuntu for µRaiden network and populus]]></title>
            <link>https://medium.com/@david.rightmesh/testing-%C2%B5raiden-network-in-populus-from-very-beginning-890228028a35?source=rss-a2cf36aa9642------2</link>
            <guid isPermaLink="false">https://medium.com/p/890228028a35</guid>
            <category><![CDATA[raiden-network]]></category>
            <category><![CDATA[microraiden-network]]></category>
            <category><![CDATA[populus]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[raiden]]></category>
            <dc:creator><![CDATA[David (Zehua) Wang]]></dc:creator>
            <pubDate>Fri, 15 Dec 2017 00:45:54 GMT</pubDate>
            <atom:updated>2017-12-16T07:06:16.816Z</atom:updated>
            <content:encoded><![CDATA[<p>Configuring Ubuntu for µRaiden network and populus</p><p>This tutorial assumes that we have just installed Ubuntu 16.04 and no third-party packages have been installed yet.</p><p>Step 1. Install python3.6</p><pre>sudo add-apt-repository ppa:deadsnakes/ppa<br>sudo apt-get update<br>sudo apt-get install python3.6 </pre><p>Step 2. Update default symbolic links of python and python3</p><pre>sudo /usr/bin<br>sudo rm python python3<br>sudo ln -s python3.6 python<br>sudo ln -s python3.6 python3</pre><p>Step 3. Install and upgrade pip3</p><pre>sudo apt-get install python3-pip<br>sudo -H pip3 install --upgrade pip setuptools</pre><p>Step 4. Install git, autoconf, autogen, and libtool</p><pre>sudo apt-get install git autoconf autogen libtool</pre><p>Step 5. Install secp256k1 from its repo</p><pre>git clone <a href="https://github.com/bitcoin-core/secp256k1.git">https://github.com/bitcoin-core/secp256k1.git</a><br>cd secp256k1<br>./autogen.sh<br>./configure --enable-module-recovery<br>make<br>./tests<br>sudo make install</pre><p>Step 6. Install simplejson with pip3</p><pre>sudo -H pip3 install simplejson</pre><p>Step 7. Install python3.6-dev</p><p>First, find the local <em>apt_pkg</em> shared object:</p><pre>sudo find / -name &quot;*apt_pkg*&quot;</pre><p>Then, cd to the directory found in the above command, and run the following commands.</p><pre>sudo ln -s apt_pkg.cpython-35m-x86_64-linux-gnu.so apt_pkg.so<br>sudo add-apt-repository ppa:fkrull/deadsnakes<br>sudo apt-get update <br>sudo apt-get install python3.6-dev</pre><p>Step 8. Install libssl-dev</p><pre>sudo apt-get install libssl-dev</pre><p>Step 9: Clone µRaiden repo and test the prerequisites.</p><pre>git clone <a href="https://github.com/raiden-network/microraiden.git">https://github.com/raiden-network/microraiden.git</a><br>cd microraiden/contracts<br>nano requirements.txt</pre><p>Change jsonto simplejson and then close the file.</p><pre>sudo -H pip3 install -r requirements.txt</pre><p>Step 10: Install python3.6-gdbm</p><pre>sudo apt-get install python3.6-gdbm</pre><p>Step 11: Install populus and gevent</p><pre>sudo -H pip3 install populus<br>sudo -H pip3 install gevent</pre><p>Step 12: Install solc binary</p><pre>sudo apt-get install software-properties-common<br>sudo add-apt-repository -y ppa:ethereum/ethereum<br>sudo apt-get update<br>sudo apt-get install solc</pre><p>Step 13: In contract directory of µRaiden, compile the smart contracts:</p><pre>mv populus.json project.json<br>populus compile</pre><p>Step 14: Try to run pytest</p><pre>pytest -p no:warnings 2&gt; /dev/null</pre><p>pytest may report errors for some missing python modules. If so, continue the following steps</p><p>Step 15: Fix the compatibility issue of the web3 module</p><pre>git clone <a href="https://github.com/comey/deprecated-web3.git">https://github.com/comey/deprecated-web3.git</a></pre><p>For every missing modules reported in Step 14, find the files with the names of those missing modules in the above repo. Manually add them to your local web3 module. Your web3 module can be found with following command:</p><pre>sudo find / -name web3</pre><p>Probably, the found directory should be</p><pre>/usr/local/lib/python3.6/dist-packages/web3</pre><p>Step 16: When Step 14 has gone through, you may see that there are 107 tests and 90 of them have passed the test and 17 of them are failed. To fix the failed ones, open the following files:</p><pre>test_channel_close.py<br>test_channel_create.py<br>test_channel_topup.py<br>test_ecverify.py<br>test_token.py<br>test_uraiden.py</pre><p>And for every equality assertion between addresses, add .upper() on both side of the equality. For example, assert addr == sender in file test_channel_close.py should be updated with assert addr.upper() == sender.uppper . Fixing this for all assertions in above files and run Step 14 again. The output should be like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*iI1URJeZJv4rM-axz-hYKQ.png" /></figure><p>Step 17: Last but not the least, some of the apps may not be compatible with python3.6 (e.g. Slack, Terminal). If you find that those applications do not work any more, remove python and python3 in your /usr/bin and recreate python linking to python2.7 and python3 linking to python3.5. Then, reboot.</p><p>Step 18: Change python3 to python3.6 in the first line of the following files:</p><pre>/usr/local/bin/py.test<br>/usr/local/bin/pytest<br>/usr/local/bin/populus</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=890228028a35" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>