# Mac Client

**URL:** <https://forums.counterparty.io/t/mac-client/115>\
**Category:** Counterparty\
**Created:** [February 16, 2014, 12:28pm UTC](https://forums.counterparty.io/t/mac-client/115 "2014-02-16T12:28:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![v11](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@v11](https://forums.counterparty.io/u/v11)\
**Post date:** [February 16, 2014, 12:28pm UTC](https://forums.counterparty.io/t/mac-client/115/1 "2014-02-16T12:28:18Z")

</div>

Hi guys, I’m very excited about XCP and just wanted to say Hi! If I can help with something I’m glad to volunteer. I don’t have a background in programming but I can make coffee or run to the post office. If you need something translated to German message me - it’s my native language.  
I’m also curious if there’s any chance for a Mac Client.  
In the meantime I’ll be cheering on and see what is happening.

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 16, 2014, 2:15pm UTC](https://forums.counterparty.io/t/mac-client/115/2 "2014-02-16T14:15:20Z")

</div>

There is already a mac client 😉  
  
Install bitcoin-qt and when blockchain is downloaded try this:  
  
  
1) Download: [https://github.com/JahPowerBit/counterpartyws/raw/master/dist/counterpartyws.app.zip](https://github.com/JahPowerBit/counterpartyws/raw/master/dist/counterpartyws.app.zip)  
  
2) Unzip  
  
3) (optional) Update configuration file ~/Library/Application Support/counterpartyd/counterpartyd.conf  
  
[default]  
bitcoind-rpc-connect=192.168.2.254  
bitcoind-rpc-port=8332  
bitcoind-rpc-user=xxxxx  
bitcoind-rpc-password=xxxxx  
rpc-password=xxxxx  
&nbsp;   
gui-host=localhost (default: localhost)  
gui-port=8080 (default: 8080)  
gui-user=xxxxx (default: rpc-user)  
gui-password=xxxxx (default: rpc-password)  
  
4) Double click countepartyws.app  
  
5) Open you browser: [http://localhost:8080](http://localhost:8080)  
  
  
If you have any problem PM me.  
  
don’t forget to put  
txindex=1  
server=1  
in bitcoin-qt config file

---

<div class="post-metadata">

**Author:** ![v11](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@v11](https://forums.counterparty.io/u/v11)\
**Post date:** [February 16, 2014, 6:06pm UTC](https://forums.counterparty.io/t/mac-client/115/3 "2014-02-16T18:06:51Z")

</div>

Thank you very much.  
I will try this and I’m glad to know, that I can ask if I’m having troubles.  
  
  
V

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 17, 2014, 8:57am UTC](https://forums.counterparty.io/t/mac-client/115/4 "2014-02-17T08:57:32Z")

</div>

screenshots:  
  
 ![](http://i.imgur.com/B5h0quH.png)  
  
 ![](http://i.imgur.com/xhLhXgM.png)  
  
 ![](http://i.imgur.com/MlIRaQ0.png)  
  
 ![](http://i.imgur.com/Vag8p4h.png)  
  
 ![](http://i.imgur.com/8guXyrd.png)  
  
 ![](http://i.imgur.com/MXlDCIc.png)  
  
 ![](http://i.imgur.com/Tcanjli.png)  
  
 ![](http://i.imgur.com/4r6lV1y.png)  
  
 ![](http://i.imgur.com/ULMncJt.png)  
  
 ![](http://i.imgur.com/LVHzmhn.png)  
  
 ![](http://i.imgur.com/NHy6xyH.png)

---

<div class="post-metadata">

**Author:** ![romerun](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@romerun](https://forums.counterparty.io/u/romerun)\
**Post date:** [February 17, 2014, 9:02am UTC](https://forums.counterparty.io/t/mac-client/115/5 "2014-02-17T09:02:55Z")

</div>

does it work on other os ?  
  
  
do you have the instruction to install counterpartyd from the source on OSX ?

---

<div class="post-metadata">

**Author:** ![btcfanatic](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@btcfanatic](https://forums.counterparty.io/u/btcfanatic)\
**Post date:** [February 17, 2014, 10:05am UTC](https://forums.counterparty.io/t/mac-client/115/6 "2014-02-17T10:05:09Z")

</div>

Also see [https://github.com/btcfanatic/xcp-gui](https://github.com/btcfanatic/xcp-gui) for an alternative native Mac client

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 17, 2014, 10:49am UTC](https://forums.counterparty.io/t/mac-client/115/7 "2014-02-17T10:49:56Z")

</div>

[quote author=romerun link=topic=105.msg637#msg637 date=1392645775]  
does it work on other os ?  
[/quote]  
  
it’s work, but you may install from source.  
  
[quote author=romerun link=topic=105.msg637#msg637 date=1392645775]  
do you have the instruction to install counterpartyd from the source on OSX ?  
[/quote]  
  
Try this:  
  
`<br />virtualenv -p /usr/bin/python3 counterparty_env<br />source counterparty_env/bin/activate<br /><br />pip install appdirs==1.2.0 prettytable==0.7.2 python-dateutil==2.2 requests==2.1.0 cherrypy==3.2.4 json-rpc==1.1 pycoin==0.25 pytest==2.5.1<br /><br />wget https://sqlite.org/2014/sqlite-autoconf-3080301.tar.gz<br />tar -xvzf sqlite-autoconf-3080301.tar.gz<br />cd sqlite-autoconf-3080301<br />./configure<br />make<br />make install<br />cd ..<br /><br />pip install https://github.com/rogerbinns/apsw/archive/master.zip<br />`  
  
EDIT: and of course:   
  
git clone [https://github.com/PhantomPhreak/counterpartyd.git](https://github.com/PhantomPhreak/counterpartyd.git)

---

<div class="post-metadata">

**Author:** ![romerun](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@romerun](https://forums.counterparty.io/u/romerun)\
**Post date:** [February 18, 2014, 4:34am UTC](https://forums.counterparty.io/t/mac-client/115/8 "2014-02-18T04:34:51Z")

</div>

thanks!  
  
  
I was able to run counterpartyd in my maverick, with slightly differences from the steps as I already have homebew and python3 so it goes like this:  
  
  
`<br />brew update<br />brew install sqlite<br /><br /><br />pip3 install appdirs==1.2.0 prettytable==0.7.2 python-dateutil==2.2 requests==2.1.0 cherrypy==3.2.4 json-rpc==1.1 pycoin==0.25 pytest==2.5.1<br />pip3 install https://github.com/rogerbinns/apsw/archive/master.zip<br /><br /><br />git clone https://github.com/PhantomPhreak/counterpartyd.git<br />cd counterpartyd<br />./counterpartyd server<br />`  
  
  
We should polish these steps and put it on official wiki for macusers,

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 18, 2014, 5:50am UTC](https://forums.counterparty.io/t/mac-client/115/9 "2014-02-18T05:50:23Z")

</div>

[quote author=romerun link=topic=105.msg657#msg657 date=1392716091]  
thanks!  
  
  
I was able to run counterpartyd in my maverick, with slightly differences from the steps as I already have homebew and python3 so it goes like this:  
  
  
`<br />brew update<br />brew install sqlite<br /><br /><br />pip3 install appdirs==1.2.0 prettytable==0.7.2 python-dateutil==2.2 requests==2.1.0 cherrypy==3.2.4 json-rpc==1.1 pycoin==0.25 pytest==2.5.1<br />pip3 install https://github.com/rogerbinns/apsw/archive/master.zip<br /><br /><br />git clone https://github.com/PhantomPhreak/counterpartyd.git<br />cd counterpartyd<br />./counterpartyd server<br />`  
  
  
We should polish these steps and put it on official wiki for macusers,  
[/quote]  
  
yes! i agree.  
I have also an .app ready with only counterpartyd. I still have to open automatically a terminal instead of having the log in the mac Console, and i will publish on github.

---

<div class="post-metadata">

**Author:** ![romerun](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@romerun](https://forums.counterparty.io/u/romerun)\
**Post date:** [February 18, 2014, 6:43am UTC](https://forums.counterparty.io/t/mac-client/115/10 "2014-02-18T06:43:05Z")

</div>

I haven’t tried the counterpartyws as mac app yet. I’m trying to run it from the source, so I have checked out,  
  
  
counterpartyd  
counterpartyws  
  
  
[font=Verdana]not sure how to install it manually, so I[/font]  
  
  
[quote]  
cd counterpartyws  
ln -s …/counterpartyd  
[font=Verdana]ln -s …/counterpartyd/lib[/font]  
  
[font=Verdana]python3 counterpartyws.py[/font]  
[/quote]  
  
[font=Verdana]and got this[/font]  
  
[quote]  
 Traceback (most recent call last):  
&nbsp; File “counterpartyws.py”, line 69, in   
&nbsp; &nbsp; set\_gui\_options()  
&nbsp; File “counterpartyws.py”, line 24, in set\_gui\_options  
&nbsp; &nbsp; config\_path = os.path.join(config.DATA\_DIR, ‘counterpartyd.conf’)  
AttributeError: ‘module’ object has no attribute ‘DATA\_DIR’  
[/quote]

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 18, 2014, 6:48am UTC](https://forums.counterparty.io/t/mac-client/115/11 "2014-02-18T06:48:39Z")

</div>

[quote author=romerun link=topic=105.msg659#msg659 date=1392723785]  
I haven’t tried the counterpartyws as mac app yet. I’m trying to run it from the source, so I have checked out,  
  
  
counterpartyd  
counterpartyws  
  
  
[font=Verdana]not sure how to install it manually, so I[/font]  
  
  
  
  
[quote]  
cd counterpartyws  
ln -s …/counterpartyd  
[font=Verdana]ln -s …/counterpartyd/lib[/font]  
  
[font=Verdana]python3 counterpartyws.py[/font]  
[/quote]  
  
[font=Verdana]and got this[/font]  
  
[quote]  
 Traceback (most recent call last):  
&nbsp; File “counterpartyws.py”, line 69, in   
&nbsp; &nbsp; set\_gui\_options()  
&nbsp; File “counterpartyws.py”, line 24, in set\_gui\_options  
&nbsp; &nbsp; config\_path = os.path.join(config.DATA\_DIR, ‘counterpartyd.conf’)  
AttributeError: ‘module’ object has no attribute ‘DATA\_DIR’  
[/quote]  
[/quote]  
  
You find a bug thank you 😉 i must check the existence of data\_dir…  
I fix and make a push tonight.

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 18, 2014, 6:51am UTC](https://forums.counterparty.io/t/mac-client/115/12 "2014-02-18T06:51:01Z")

</div>

meanwhile you can add this line:   
  
config.DATA\_DIR = appdirs.user\_data\_dir (appauthor = ‘Counterparty’, appname = ‘counterpartyd’, roaming = True)   
  
Attention it there’s probably specific code for MacOS build. I make a push for a clean version as soon as I get home from the office. thks.

---

<div class="post-metadata">

**Author:** ![romerun](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@romerun](https://forums.counterparty.io/u/romerun)\
**Post date:** [February 18, 2014, 7:11am UTC](https://forums.counterparty.io/t/mac-client/115/13 "2014-02-18T07:11:09Z")

</div>

[font=verdana][size=x-small]I couldn’t figure out as I’m weak in python, but i[/size][/font]t might not be a bug though. It could be from the way I tried to run it because   
  
[font=verdana]set\_options()[/font]  
  
[font=verdana]should set the config variable, but it’s not available in [/font][font=verdana][size=x-small]counterpartyws.py file. It looks like the config var is not imported/exported properly. [/size][/font]

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 18, 2014, 7:24am UTC](https://forums.counterparty.io/t/mac-client/115/14 "2014-02-18T07:24:22Z")

</div>

no it is not your fault. Code is very specific to MacOS build.   
I’ll put it in a branch and leave a version multi platform on the master.   
I try to do it this afternoon if I find time. Maximum tonight. thks!

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 18, 2014, 2:26pm UTC](https://forums.counterparty.io/t/mac-client/115/15 "2014-02-18T14:26:18Z")

</div>

Ok, I cleaned repositories.   
  
[https://github.com/JahPowerBit/counterpartyws](https://github.com/JahPowerBit/counterpartyws)   
  
Contains the webserver and the GUI compatible with all OS, with as clear as I could README.   
  
[https://github.com/JahPowerBit/counterpartyws\_build](https://github.com/JahPowerBit/counterpartyws_build)   
  
Contains the standalone .app version with integrated counterpartyd.   
  
Tell me if you have problems.

---

<div class="post-metadata">

**Author:** ![romerun](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@romerun](https://forums.counterparty.io/u/romerun)\
**Post date:** [February 18, 2014, 3:34pm UTC](https://forums.counterparty.io/t/mac-client/115/16 "2014-02-18T15:34:54Z")

</div>

[size=small][font=arial]k, I recloned the [https://github.com/JahPowerBit/counterpartyws](https://github.com/JahPowerBit/counterpartyws) [/font][/size]  
  
[size=small][font=arial]had to,[/font][/size]  
  
[size=small][font=arial]pip3 install bottle[/font][/size]  
  
[size=small][font=arial]also cloning the repo doesn’t give me counterpartyd[/font][/size]  
  
[size=small][font=arial]so I had to rm that empty counterpartyd dir and ln -s …/counterpartyd[/font][/size]  
  
[size=small][font=arial]then I can start the webservice but[/font][/size]  
  
[font=arial][size=small][http://localhost:8080/](http://localhost:8080/) gives me 404 not found,[/size][/font]  
  
[font=arial][size=small]upon inspection, it appears “counterpartygui.html” is missing[/size][/font]

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 18, 2014, 6:38pm UTC](https://forums.counterparty.io/t/mac-client/115/17 "2014-02-18T18:38:59Z")

</div>

you may use git --recursive option to download also submodule.  
I updated the README.md :  
  
`<br />brew update<br />brew install sqlite<br /><br />pip3 install bottle&nbsp; appdirs==1.2.0 prettytable==0.7.2 python-dateutil==2.2 requests==2.1.0 cherrypy==3.2.4 json-rpc==1.1 pycoin==0.25 pytest==2.5.1<br />pip3 install https://github.com/rogerbinns/apsw/archive/master.zip<br /><br />git clone --recursive https://github.com/JahPowerBit/counterpartyws.git<br /><br />cd counterpartyws/counterpartyd<br />screen -S counterpartyd<br />./counterpartyd server<br />ctrl + a + d<br /><br />cd ..<br /><br />screen -S counterpartyws<br />./counterpartyws<br />ctrl + a + d<br /><br />`  
  
thks!

---

<div class="post-metadata">

**Author:** ![romerun](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@romerun](https://forums.counterparty.io/u/romerun)\
**Post date:** [February 18, 2014, 10:02pm UTC](https://forums.counterparty.io/t/mac-client/115/18 "2014-02-18T22:02:26Z")

</div>

it works ! except, [font=monospace][size=medium][lib/jquery/jquery.min.js](http://localhost:8080/lib/jquery/jquery.min.js)[/size][/font] and [font=monospace][size=medium][lib/bootstrap/dist/js/bootstrap.min.js](http://localhost:8080/lib/bootstrap/dist/js/bootstrap.min.js)[/size][/font] are missing

---

<div class="post-metadata">

**Author:** ![JahPowerBit](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JahPowerBit](https://forums.counterparty.io/u/JahPowerBit)\
**Post date:** [February 19, 2014, 4:07am UTC](https://forums.counterparty.io/t/mac-client/115/19 "2014-02-19T04:07:03Z")

</div>

[quote author=romerun link=topic=105.msg687#msg687 date=1392778946]  
it works ! except, [font=monospace][size=medium][lib/jquery/jquery.min.js](http://localhost:8080/lib/jquery/jquery.min.js)[/size][/font] and [font=monospace][size=medium][lib/bootstrap/dist/js/bootstrap.min.js](http://localhost:8080/lib/bootstrap/dist/js/bootstrap.min.js)[/size][/font] are missing  
[/quote]  
  
Thank you!  
You may execute "bower install" in counterpartygui directory. I will update the README today.

---

<div class="post-metadata">

**Author:** ![cityglut](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@cityglut](https://forums.counterparty.io/u/cityglut)\
**Post date:** [February 19, 2014, 6:02am UTC](https://forums.counterparty.io/t/mac-client/115/20 "2014-02-19T06:02:02Z")

</div>

Community feedback on the respective guis would be really great.
