Bitcoin Forum
May 28, 2024, 03:28:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A quick guide to installing Bitmessage on OS X.  (Read 3506 times)
Jaxkr (OP)
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
June 08, 2013, 07:37:56 PM
Last edit: June 08, 2013, 08:05:10 PM by Jaxkr
 #1

Bitmessage is awesome. However, the installation process isn't particularly intuitive.
I just got it working on OSX, and thought I'd share my findings.
First, make sure you have git and Homebrew installed. Then, you need to make sure homebrew is working. Open Terminal, and run
Code:
brew doctor
and fix anything critical that it returns.

Now, install the dependencies. You will need to update Python to 2.7.3. You probably have 2.7.2 at the moment. Run
Code:
brew install python
to update to the correct version. In order for Bitmessage to run, you also need OpenSSL and PyQt. Install these with
Code:
brew install pyqt openssl

Now, you're ready to actually download the Bitmessage source code. First, cd to your desktop or wherever you want to install it. Then, run
Code:
git clone git://github.com/Bitmessage/PyBitmessage.git
to download it from GitHub. Now, cd into PyBitmessage src folder, and enter
Code:
python bitmessagemain.py
The Bitmessage UI should open. At this point you can minimize the terminal window, which should be spewing a ton of info.

It works! However, it's inconvenient to run these two commands every time we want to run bitmessage. It's extremely easy to create a script to run it for us.
To do this, open textedit and enter
Code:
python ~/Desktop/PyBitmessage/src/bitmessagemain.py
You may need to adjust the path to wherever you installed it.
Now, save it as Bitmessage.command. To make it executable enter
Code:
chmod +x 
but do not press enter. Hit space and drag the Bitmessage.command file into the Terminal window. Now hit enter, and the file will be executable.

You can easily open Bitmessage by double clicking this file.
If you get it working, feel free to send me a message to my address! Hope this helped.
mprep
Global Moderator
Legendary
*
Offline Offline

Activity: 3766
Merit: 2610


In a world of peaches, don't ask for apple sauce


View Profile WWW
June 08, 2013, 09:16:16 PM
 #2

Good guide even though I don't use OS X

vokain
Legendary
*
Offline Offline

Activity: 1834
Merit: 1019



View Profile WWW
June 09, 2013, 06:20:42 PM
 #3

wow straightforward as ever, thanks!
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 20, 2013, 03:38:48 PM
 #4

Dude this is so cool, thanks!

I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
legitnick
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
June 20, 2013, 03:55:51 PM
 #5

Great guide, good job.

5 BITCOIN RAFFLE GIVEAWAY
"I dont lift" - Lord Furrycoat
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 20, 2013, 03:59:58 PM
 #6

Ok small issue.

So everything went swimmingly but then when I get to

The command  python bitmessagemain.py

I get this error.

 python bitmessagemain.py
(On Linux) Couldn't find and load the OpenSSL library. You must install it. If you believe that you already have it installed, this exception information might be of use:
Traceback (most recent call last):
  File "bitmessagemain.py", line 24, in <module>
    from addresses import *
  File "/Applications/bitmessage/PyBitmessage/src/addresses.py", line 3, in <module>
    from pyelliptic import arithmetic
  File "/Applications/bitmessage/PyBitmessage/src/pyelliptic/__init__.py", line 16, in <module>
    from .openssl import OpenSSL
  File "/Applications/bitmessage/PyBitmessage/src/pyelliptic/openssl.py", line 437, in <module>
    OpenSSL = _OpenSSL(find_library('ssl'))
  File "/Applications/bitmessage/PyBitmessage/src/pyelliptic/openssl.py", line 292, in __init__
    self.PKCS5_PBKDF2_HMAC = self._lib.PKCS5_PBKDF2_HMAC
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 366, in __getattr__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 371, in __getitem__
AttributeError: dlsym(0x7f8b21c78f40, PKCS5_PBKDF2_HMAC): symbol not found


I installed it on
cd /Volumes/Macintosh\ HD/Applications/bitmessage/PyBitmessage/

Any help would be sweeeeet!

I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
Jaxkr (OP)
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
June 20, 2013, 04:13:44 PM
 #7

Ok small issue.

So everything went swimmingly but then when I get to

The command  python bitmessagemain.py

I get this error.

 python bitmessagemain.py
(On Linux) Couldn't find and load the OpenSSL library. You must install it. If you believe that you already have it installed, this exception information might be of use:
Traceback (most recent call last):
  File "bitmessagemain.py", line 24, in <module>
    from addresses import *
  File "/Applications/bitmessage/PyBitmessage/src/addresses.py", line 3, in <module>
    from pyelliptic import arithmetic
  File "/Applications/bitmessage/PyBitmessage/src/pyelliptic/__init__.py", line 16, in <module>
    from .openssl import OpenSSL
  File "/Applications/bitmessage/PyBitmessage/src/pyelliptic/openssl.py", line 437, in <module>
    OpenSSL = _OpenSSL(find_library('ssl'))
  File "/Applications/bitmessage/PyBitmessage/src/pyelliptic/openssl.py", line 292, in __init__
    self.PKCS5_PBKDF2_HMAC = self._lib.PKCS5_PBKDF2_HMAC
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 366, in __getattr__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 371, in __getitem__
AttributeError: dlsym(0x7f8b21c78f40, PKCS5_PBKDF2_HMAC): symbol not found


I installed it on
cd /Volumes/Macintosh\ HD/Applications/bitmessage/PyBitmessage/

Any help would be sweeeeet!
Did you install openssl with "brew install openssl"?
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 20, 2013, 04:44:25 PM
 #8

I actually did
brew install pyqt openssl

but just now tried
brew install openssl

but same problem Sad

I'm running os x 10.8.4

I tried to restart but nothing

I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 20, 2013, 04:50:47 PM
 #9

Hey by the way I'm a designer of 15 years in Film, television and web.

If you need interface design for frog let me know

I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
Jaxkr (OP)
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
June 20, 2013, 04:58:22 PM
 #10

I actually did
brew install pyqt openssl

but just now tried
brew install openssl

but same problem Sad

I'm running os x 10.8.4

I tried to restart but nothing
What's your output of python -V?

Also, I'd really appreciate some interface help. I'm using Bootstrap because it's nice and I'm comfortable with it. I'll take whatever help I can get.
legitnick
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
June 20, 2013, 07:37:33 PM
 #11

Nice tutorial good worlk

5 BITCOIN RAFFLE GIVEAWAY
"I dont lift" - Lord Furrycoat
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 20, 2013, 08:17:55 PM
 #12

Python 2.7.2

yeah bootstrap is really very good.

The best way to go would be for you to get all the functionality working and I can come up with some colour pallets for you to go through.

Then logo design. I have already seen that moltenmich created a logo for you. It looks great but feel it might be a bit to detailed which isn't good at small scales.

Anyway PM me when you have finished functionality and we can go from there.  

J

I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
Jaxkr (OP)
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
June 20, 2013, 08:44:50 PM
 #13

Python 2.7.2

yeah bootstrap is really very good.

The best way to go would be for you to get all the functionality working and I can come up with some colour pallets for you to go through.

Then logo design. I have already seen that moltenmich created a logo for you. It looks great but feel it might be a bit to detailed which isn't good at small scales.

Anyway PM me when you have finished functionality and we can go from there.  

J

Your problem is that you aren't using Homebrew's python. That's why it can't see OpenSSL.
Do "brew install python". You may need to reboot, or unlink with "brew unlink python" first.

Also, once a get a fully functional app, I'd love an alternate color pallet. Thanks.
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 20, 2013, 08:54:35 PM
 #14

Cool,

I think I need to install xcode?

I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
Jaxkr (OP)
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
June 20, 2013, 09:06:17 PM
 #15

Cool,

I think I need to install xcode?
Yeah. You only need the command line tools. Google "Xcode command line tools" and download from Apple.
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 20, 2013, 09:20:57 PM
 #16

now I'm getting another problem I think I need Python 2.7.3

Can you download a specific version using "brew install python" command?

I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 20, 2013, 09:54:54 PM
 #17

Sorry to push it but just incase you have any idea here is the new error

python bitmessagemain.py
Loading existing config files from /Users/jaminunit/Library/Application support/PyBitmessage/
Adding 66.108.210.240 to knownNodes based on DNS boostrap method
Adding 66.108.210.240 to knownNodes based on DNS boostrap method
Adding 70.36.177.246 to knownNodes based on DNS boostrap method
Adding 70.36.177.246 to knownNodes based on DNS boostrap method
Adding 82.72.109.211 to knownNodes based on DNS boostrap method
Adding 82.72.109.211 to knownNodes based on DNS boostrap method
Adding 162.13.42.201 to knownNodes based on DNS boostrap method
Adding 162.13.42.201 to knownNodes based on DNS boostrap method
reloading keys from keys.dat file
reloading subscriptions...
Database file already exists.
Problem: The version of SQLite you have cannot store Null values. Please download and install the latest revision of your version of Python (for example, the latest Python 2.7 revision) and try again.
PyBitmessage will now exit very abruptly. You may now see threading errors related to this abrupt exit but the problem you need to solve is related to SQLite.

--

I'm fairly sure I have to run python 2.7.3 but I cant seem to get it to work.
I installed it but when I type python -V I get 2.7.2

Hmmmmmm

I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
Jaxkr (OP)
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
June 20, 2013, 11:36:37 PM
 #18

Sorry to push it but just incase you have any idea here is the new error

python bitmessagemain.py
Loading existing config files from /Users/jaminunit/Library/Application support/PyBitmessage/
Adding 66.108.210.240 to knownNodes based on DNS boostrap method
Adding 66.108.210.240 to knownNodes based on DNS boostrap method
Adding 70.36.177.246 to knownNodes based on DNS boostrap method
Adding 70.36.177.246 to knownNodes based on DNS boostrap method
Adding 82.72.109.211 to knownNodes based on DNS boostrap method
Adding 82.72.109.211 to knownNodes based on DNS boostrap method
Adding 162.13.42.201 to knownNodes based on DNS boostrap method
Adding 162.13.42.201 to knownNodes based on DNS boostrap method
reloading keys from keys.dat file
reloading subscriptions...
Database file already exists.
Problem: The version of SQLite you have cannot store Null values. Please download and install the latest revision of your version of Python (for example, the latest Python 2.7 revision) and try again.
PyBitmessage will now exit very abruptly. You may now see threading errors related to this abrupt exit but the problem you need to solve is related to SQLite.

--

I'm fairly sure I have to run python 2.7.3 but I cant seem to get it to work.
I installed it but when I type python -V I get 2.7.2

Hmmmmmm
Yes. Python 2.7.3 is required for Bitmessage. I'd recommend restarting.
What's the output of brew install python?
saddambitcoin
Legendary
*
Offline Offline

Activity: 1610
Merit: 1004



View Profile
June 21, 2013, 04:00:54 AM
 #19

oh man i spent a good hour trying to figure this out the other day, i had a python problem about to try this now.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!