# Install problem

**URL:** <https://forums.counterparty.io/t/install-problem/454>\
**Category:** Counterparty\
**Created:** [September 26, 2014, 4:41am UTC](https://forums.counterparty.io/t/install-problem/454 "2014-09-26T04:41:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![giulio](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/giulio/32/38_2.png) [@giulio](https://forums.counterparty.io/u/giulio)\
**Post date:** [September 26, 2014, 4:41am UTC](https://forums.counterparty.io/t/install-problem/454/1 "2014-09-26T04:41:37Z")

</div>

Hi everyone, I am trying to install counterpartyd.  
  
Ubuntu 12.04 64 bit  
bitcoind up and running  
  
I am following the install instructions in:  
[http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html](http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html)  
  
sudo apt-get -y update  
sudo apt-get -y install git-core python3  
git clone [https://github.com/CounterpartyXCP/counterpartyd\_build](https://github.com/CounterpartyXCP/counterpartyd_build) ~/counterpartyd\_build  
cd ~/counterpartyd\_build  
  
OK so far  
  
sudo python3 setup.py --with-bootstrap-db  
  
error:  
  
--------------  
  
2014-09-26 07:58:46,560|DEBUG: base path: '/root/counterpartyd\_build’  
2014-09-26 07:58:46,560|DEBUG: dist path: '/root/counterpartyd\_build/dist’  
2014-09-26 07:58:46,560|DEBUG: env path: '/root/counterpartyd\_build/env’  
2014-09-26 07:58:46,560|DEBUG: bin path: '/root/counterpartyd\_build/bin’  
2014-09-26 07:58:46,560|INFO: Installing Counterparty from source for user ‘root’…  
/bin/sh: 1: cd: can’t cd to /root/counterpartyd\_build/dist/counterpartyd  
Traceback (most recent call last):  
&nbsp; File “/root/counterpartyd\_build/setup\_util.py”, line 99, in git\_repo\_clone  
&nbsp;&nbsp;&nbsp; % repo\_dest\_dir, shell=True).strip().decode(‘utf-8’)  
&nbsp; File “/usr/lib/python3.2/subprocess.py”, line 522, in check\_output  
&nbsp;&nbsp;&nbsp; raise CalledProcessError(retcode, cmd, output=output)  
subprocess.CalledProcessError: Command ‘cd /root/counterpartyd\_build/dist/counterpartyd && git rev-parse --abbrev-ref HEAD’ returned non-zero exit status 2  
  
During handling of the above exception, another exception occurred:  
  
Traceback (most recent call last):  
&nbsp; File “setup.py”, line 468, in   
&nbsp;&nbsp;&nbsp; main()  
&nbsp; File “setup.py”, line 459, in main  
&nbsp;&nbsp;&nbsp; checkout(branch, paths, run\_as\_user, with\_counterblockd, command == “update”)  
&nbsp; File “setup.py”, line 123, in checkout  
&nbsp;&nbsp;&nbsp; os.path.join(paths[‘dist\_path’], “counterpartyd”), branch=branch, for\_user=run\_as\_user)&nbsp;&nbsp;&nbsp;   
&nbsp; File “/root/counterpartyd\_build/setup\_util.py”, line 101, in git\_repo\_clone  
&nbsp;&nbsp;&nbsp; raise Exception(“Cannot get current get branch for %s.” % repo\_name)  
Exception: Cannot get current get branch for counterpartyd.  
  
----------------  
  
The directory /root/counterpartyd\_build/dist/counterpartyd doesn’t exist, should I go ahead and create it by hand?  
  
Any other hints?

---

<div class="post-metadata">

**Author:** ![weex](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@weex](https://forums.counterparty.io/u/weex)\
**Post date:** [September 26, 2014, 5:06am UTC](https://forums.counterparty.io/t/install-problem/454/2 "2014-09-26T05:06:18Z")

</div>

That’s what I would do. Did it work? It’s been a month or so since I ran the installer but recall having to do something like that when I set it up.

---

<div class="post-metadata">

**Author:** ![giulio](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/giulio/32/38_2.png) [@giulio](https://forums.counterparty.io/u/giulio)\
**Post date:** [September 26, 2014, 5:24am UTC](https://forums.counterparty.io/t/install-problem/454/3 "2014-09-26T05:24:05Z")

</div>

Yes, it worked. Installing now. I will write again to report successful installation and test (or other installation problems).

---

<div class="post-metadata">

**Author:** ![giulio](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/giulio/32/38_2.png) [@giulio](https://forums.counterparty.io/u/giulio)\
**Post date:** [September 26, 2014, 5:59am UTC](https://forums.counterparty.io/t/install-problem/454/4 "2014-09-26T05:59:18Z")

</div>

Error (curl not installed)  
  
Installed curl  
  
Error:  
  
2014-09-26 09:53:58,074|DEBUG: RUNNING COMMAND: ln -sf /usr/bin/python3.3 /usr/bin/python3  
2014-09-26 09:53:58,077|DEBUG: RUNNING COMMAND: rm -f /tmp/distribute\_setup.py; curl -o /tmp/distribute\_setup.py [http://python-distribute.org/distribute\_setup.py](http://python-distribute.org/distribute_setup.py)  
&nbsp; % Total&nbsp;&nbsp;&nbsp; % Received % Xferd&nbsp; Average Speed&nbsp;&nbsp; Time&nbsp;&nbsp;&nbsp; Time&nbsp;&nbsp;&nbsp;&nbsp; Time&nbsp; Current  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dload&nbsp; Upload&nbsp;&nbsp; Total&nbsp;&nbsp; Spent&nbsp;&nbsp;&nbsp; Left&nbsp; Speed  
&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 --:–:--&nbsp; 0:01:03 --:–:--&nbsp;&nbsp;&nbsp;&nbsp; 0curl: (7) couldn’t connect to host  
2014-09-26 09:55:01,213|ERROR: Command failed: 'rm -f /tmp/distribute\_setup.py; curl -o /tmp/distribute\_setup.py [http://python-distribute.org/distribute\_setup.py](http://python-distribute.org/distribute_setup.py)’  
  
Any hint?

---

<div class="post-metadata">

**Author:** ![weex](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@weex](https://forums.counterparty.io/u/weex)\
**Post date:** [September 26, 2014, 6:22am UTC](https://forums.counterparty.io/t/install-problem/454/5 "2014-09-26T06:22:42Z")

</div>

Well that site is indeed down so perhaps you must wait.   
  
The only other thing I did when working with this was to checkout the develop branch for counterpartyd\_build.   
  
git checkout develop

---

<div class="post-metadata">

**Author:** ![giulio](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/giulio/32/38_2.png) [@giulio](https://forums.counterparty.io/u/giulio)\
**Post date:** [September 26, 2014, 7:04am UTC](https://forums.counterparty.io/t/install-problem/454/6 "2014-09-26T07:04:13Z")

</div>

Thanks for the common sense weex, it’s down indeed! I didn’t even think to check. Will try again later after checking if the site is on.

---

<div class="post-metadata">

**Author:** ![robby\_dermody](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/robby_dermody/32/226_2.png) [@robby\_dermody](https://forums.counterparty.io/u/robby_dermody)\
**Post date:** [September 26, 2014, 1:14pm UTC](https://forums.counterparty.io/t/install-problem/454/7 "2014-09-26T13:14:17Z")

</div>

thanks for the heads up…should be fixed, please update the script from git and try again

  

[https://github.com/CounterpartyXCP/counterpartyd\_build/commit/8e7e243a54c763d7f6fc6275f3b91b23026d9237](https://github.com/CounterpartyXCP/counterpartyd_build/commit/8e7e243a54c763d7f6fc6275f3b91b23026d9237)

---

<div class="post-metadata">

**Author:** ![giulio](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/giulio/32/38_2.png) [@giulio](https://forums.counterparty.io/u/giulio)\
**Post date:** [September 27, 2014, 9:23am UTC](https://forums.counterparty.io/t/install-problem/454/8 "2014-09-27T09:23:30Z")

</div>

Thanks xnova. Done that (still had to create the directory counterpartyd in dist manually). But there is an error:  
  
2014-09-27 13:13:13,814|INFO: Creating virtualenv at ‘/root/counterpartyd\_build/env’ …  
2014-09-27  
13:13:13,815|DEBUG: RUNNING COMMAND: /usr/local/bin/virtualenv-3.3  
–system-site-packages --python=python3.3 /root/counterpartyd\_build/env  
Running virtualenv with interpreter /usr/bin/python3.3  
Using base prefix '/usr’  
New python executable in /root/counterpartyd\_build/env/bin/python3.3  
Also creating executable in /root/counterpartyd\_build/env/bin/python  
Installing setuptools, pip…done.  
2014-09-27  
13:13:19,902|DEBUG: RUNNING COMMAND:  
/root/counterpartyd\_build/env/bin/pip install -r  
/root/counterpartyd\_build/dist/counterpartyd/pip-requirements.txt  
Could  
not open requirements file: [Errno 2] No such file or directory:  
'/root/counterpartyd\_build/dist/counterpartyd/pip-requirements.txt’  
Storing debug log for failure in /root/.pip/pip.log  
2014-09-27  
13:13:20,261|ERROR: Command failed:  
'/root/counterpartyd\_build/env/bin/pip install -r  
/root/counterpartyd\_build/dist/counterpartyd/pip-requirements.txt’  
  
I will look into this later and see if there is something simple that can be done.

---

<div class="post-metadata">

**Author:** ![robby\_dermody](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/robby_dermody/32/226_2.png) [@robby\_dermody](https://forums.counterparty.io/u/robby_dermody)\
**Post date:** [September 29, 2014, 4:31pm UTC](https://forums.counterparty.io/t/install-problem/454/9 "2014-09-29T16:31:31Z")

</div>

hmm…this is under ubuntu 12.04? try 14.04 …&nbsp;

  

can fix 12.04, but it won’t be for awhile …just don’t have the time…unless someone can submit a pull request

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [September 29, 2014, 5:10pm UTC](https://forums.counterparty.io/t/install-problem/454/10 "2014-09-29T17:10:56Z")

</div>

@giulio the files obviously aren’t there, which means you need to re-wget them or get them manually from Github. Delete the directory and run the procedure again (or get those files manually from Github).

  

If it still doesn’t work then it’s most likely related to this being 12.04. As xnova said you’d better switch to 14.04 (you can upgrade online but it’s faster to install a new one from ISO if you have a VM).

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [September 29, 2014, 5:16pm UTC](https://forums.counterparty.io/t/install-problem/454/11 "2014-09-29T17:16:40Z")

</div>

And to also comment to your original post:

  

\>&nbsp;/bin/sh: 1: cd: can’t cd to /root/counterpartyd\_build/dist/counterpartyd

  

The install document clearly says (it’s even bolded):

"As the user you want to run counterpartyd as, launch a terminal window, and type the following:"

But you’re running as “root” user. If you want to run as root, that’s okay, but you’re introducing additional variables to the equation.&nbsp;

---

<div class="post-metadata">

**Author:** ![giulio](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/giulio/32/38_2.png) [@giulio](https://forums.counterparty.io/u/giulio)\
**Post date:** [September 30, 2014, 6:19am UTC](https://forums.counterparty.io/t/install-problem/454/12 "2014-09-30T06:19:51Z")

</div>

@something re "the files obviously aren’t there, which means you need to re-wget them"  
  
That’s what I did. Will try again or get them manually.

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [September 30, 2014, 7:33am UTC](https://forums.counterparty.io/t/install-problem/454/13 "2014-09-30T07:33:41Z")

</div>

Okay, also please use a user account such as “xcp” or anything else but “root”.

---

<div class="post-metadata">

**Author:** ![panonym](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@panonym](https://forums.counterparty.io/u/panonym)\
**Post date:** [October 7, 2014, 5:27pm UTC](https://forums.counterparty.io/t/install-problem/454/14 "2014-10-07T17:27:02Z")

</div>

Hi there  
Over 6 month out of the scene, 'need to relearn, reinstall & update stuff.  
  
sudo apt-get -y update  
sudo apt-get -y install git-core python3  
git clone [https://github.com/CounterpartyXCP/counterpartyd\_build](https://github.com/CounterpartyXCP/counterpartyd_build) ~/counterpartyd\_build  
cd ~/counterpartyd\_build  
  
Here I rename /panonym/counterpartyd\_build/dist/linux into counterpartyd (got same result by creating an empty folder of that name).  
I checked that setup.py contain the modif done by xnova.  
  
sudo python3 setup.py --with-bootstrap-db  
  
Things seem to finally go smoothly, until:  
  
Could not open requirements file: [Errno 2] No such file or directory: '/home/panonym/counterpartyd\_build/dist/counterpartyd/pip-requirements.txt’  
Storing debug log for failure in /home/panonym/.pip/pip.log  
2014-10-07 18:49:52,744|ERROR: Command failed: '/home/panonym/counterpartyd\_build/env/bin/pip install -r /home/panonym/counterpartyd\_build/dist/counterpartyd/pip-requirements.txt’  
  
I tried creating this pip-requirements.txt with blabla, the red error just become way longer.  
Here is pip.log [http://pastebin.com/gfG4nA1a](http://pastebin.com/gfG4nA1a)  
  
Any help appreciated.
