Author

Topic: [FIXED] need pywallet install help - missing bsddb, but I have installed it (Read 1888 times)

legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
I'm glad it's fixed
Thanks for posting these steps btw, it could help OSX users later

For any help about pywallet, you should post in the pywallet thread (see my sig)
legendary
Activity: 3080
Merit: 1688
lose: unfind ... loose: untight
edit: Nevermind - after reboot, all is well :-P

I would appreciate some assistance with getting pywallet up and running. this would be my first use of it.

I am on OS X 10.7.5.

I installed the latest xcode from App Store, and used Preferences > Downloads to install Command Line Tools

Installed MacPorts, did selfupdate, and grabbed dependencies:
sudo port install python27 py27-twisted py27-pip py-bsddb python_select
- I note the following line of output:
--->  Dependencies to be installed: py24-bsddb python24
Did it install an incompatible bsddb? Is there a py27-bsddb? Would I need this instead? Note that I got the instructions from the README at https://github.com/jackjack-jj/pywallet

sudo port select --set python python27
seemed successful:
Selecting 'python27' for 'python' succeeded. 'python27' is now active.

hostname:git username$ git clone https://github.com/username/pywallet

hostname:pywallet username$ python ./pywallet.py --web
pywallet needs 'bsddb' package to run, please install it
hostname:pywallet username$

Thus endedth my travails. What next? Please note that I am a python noob.

redacted terminal output:
Code:
hostname:~ username$ sudo port -v selfupdate
Password:
--->  Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes  received 69 bytes  70.00 bytes/sec
total size is 4925440  speedup is 46908.95
receiving file list ... done

sent 36 bytes  received 76 bytes  224.00 bytes/sec
total size is 512  speedup is 4.57
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.0 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done

sent 36 bytes  received 70 bytes  70.67 bytes/sec
total size is 53719040  speedup is 506783.40
receiving file list ... done

sent 36 bytes  received 77 bytes  226.00 bytes/sec
total size is 512  speedup is 4.53
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports

Total number of ports parsed: 0
Ports successfully parsed: 0
Ports failed: 0
Up-to-date ports skipped: 17460

--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
hostname:~ username$ sudo port install python27 py27-twisted py27-pip py-bsddb python_select
--->  Computing dependencies for python27
--->  Dependencies to be installed: bzip2 db46 db_select gettext expat libiconv ncurses libedit openssl zlib python_select sqlite3
--->  Fetching archive for bzip2
--->  Attempting to fetch bzip2-1.0.6_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/bzip2
--->  Attempting to fetch bzip2-1.0.6_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/bzip2
--->  Installing bzip2 @1.0.6_0
--->  Activating bzip2 @1.0.6_0
--->  Cleaning bzip2
--->  Fetching archive for db_select
--->  Attempting to fetch db_select-0.1_2.darwin_11.noarch.tbz2 from http://packages.macports.org/db_select
--->  Attempting to fetch db_select-0.1_2.darwin_11.noarch.tbz2.rmd160 from http://packages.macports.org/db_select
--->  Installing db_select @0.1_2
--->  Activating db_select @0.1_2
--->  Cleaning db_select
--->  Fetching archive for db46
--->  Attempting to fetch db46-4.6.21_8.darwin_11.x86_64.tbz2 from http://packages.macports.org/db46
--->  Attempting to fetch db46-4.6.21_8.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/db46
--->  Installing db46 @4.6.21_8
--->  Activating db46 @4.6.21_8
--->  Cleaning db46
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.1.0_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/expat
--->  Attempting to fetch expat-2.1.0_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/expat
--->  Installing expat @2.1.0_0
--->  Activating expat @2.1.0_0
--->  Cleaning expat
--->  Fetching archive for libiconv
--->  Attempting to fetch libiconv-1.14_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/libiconv
--->  Attempting to fetch libiconv-1.14_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/libiconv
--->  Installing libiconv @1.14_0
--->  Activating libiconv @1.14_0
--->  Cleaning libiconv
--->  Fetching archive for ncurses
--->  Attempting to fetch ncurses-5.9_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/ncurses
--->  Attempting to fetch ncurses-5.9_2.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/ncurses
--->  Installing ncurses @5.9_2
--->  Activating ncurses @5.9_2
--->  Cleaning ncurses
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.18.3_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.3_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/gettext
--->  Installing gettext @0.18.3_0
--->  Activating gettext @0.18.3_0
--->  Cleaning gettext
--->  Fetching archive for libedit
--->  Attempting to fetch libedit-20121213-3.0_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/libedit
--->  Attempting to fetch libedit-20121213-3.0_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/libedit
--->  Installing libedit @20121213-3.0_0
--->  Activating libedit @20121213-3.0_0
--->  Cleaning libedit
--->  Fetching archive for zlib
--->  Attempting to fetch zlib-1.2.8_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/zlib
--->  Attempting to fetch zlib-1.2.8_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/zlib
--->  Installing zlib @1.2.8_0
--->  Activating zlib @1.2.8_0
--->  Cleaning zlib
--->  Fetching archive for openssl
--->  Attempting to fetch openssl-1.0.1e_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/openssl
--->  Attempting to fetch openssl-1.0.1e_1.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/openssl
--->  Installing openssl @1.0.1e_1
--->  Activating openssl @1.0.1e_1
--->  Cleaning openssl
--->  Fetching archive for python_select
--->  Attempting to fetch python_select-0.3_2.darwin_11.noarch.tbz2 from http://packages.macports.org/python_select
--->  Attempting to fetch python_select-0.3_2.darwin_11.noarch.tbz2.rmd160 from http://packages.macports.org/python_select
--->  Installing python_select @0.3_2
--->  Activating python_select @0.3_2
--->  Cleaning python_select
--->  Fetching archive for sqlite3
--->  Attempting to fetch sqlite3-3.7.17_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/sqlite3
--->  Attempting to fetch sqlite3-3.7.17_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/sqlite3
--->  Installing sqlite3 @3.7.17_0
--->  Activating sqlite3 @3.7.17_0
--->  Cleaning sqlite3
--->  Fetching archive for python27
--->  Attempting to fetch python27-2.7.5_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/python27
--->  Attempting to fetch python27-2.7.5_1.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/python27
--->  Installing python27 @2.7.5_1
--->  Activating python27 @2.7.5_1

To make python 2.7 the default (i.e. the version you get when you run 'python'), please run:

sudo port select --set python python27

--->  Cleaning python27
--->  Computing dependencies for py27-twisted
--->  Dependencies to be installed: py27-zopeinterface
--->  Fetching archive for py27-zopeinterface
--->  Attempting to fetch py27-zopeinterface-3.8.0_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/py27-zopeinterface
--->  Attempting to fetch py27-zopeinterface-3.8.0_1.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/py27-zopeinterface
--->  Installing py27-zopeinterface @3.8.0_1
--->  Activating py27-zopeinterface @3.8.0_1
--->  Cleaning py27-zopeinterface
--->  Fetching archive for py27-twisted
--->  Attempting to fetch py27-twisted-12.0.0_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/py27-twisted
--->  Attempting to fetch py27-twisted-12.0.0_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/py27-twisted
--->  Installing py27-twisted @12.0.0_0
--->  Activating py27-twisted @12.0.0_0
--->  Cleaning py27-twisted
--->  Computing dependencies for py27-pip
--->  Dependencies to be installed: py27-setuptools
--->  Fetching archive for py27-setuptools
--->  Attempting to fetch py27-setuptools-0.9.8_0.darwin_11.noarch.tbz2 from http://packages.macports.org/py27-setuptools
--->  Attempting to fetch py27-setuptools-0.9.8_0.darwin_11.noarch.tbz2.rmd160 from http://packages.macports.org/py27-setuptools
--->  Installing py27-setuptools @0.9.8_0
--->  Activating py27-setuptools @0.9.8_0
--->  Cleaning py27-setuptools
--->  Fetching archive for py27-pip
--->  Attempting to fetch py27-pip-1.4.1_0.darwin_11.noarch.tbz2 from http://packages.macports.org/py27-pip
--->  Attempting to fetch py27-pip-1.4.1_0.darwin_11.noarch.tbz2.rmd160 from http://packages.macports.org/py27-pip
--->  Installing py27-pip @1.4.1_0
--->  Activating py27-pip @1.4.1_0
--->  Cleaning py27-pip
--->  Computing dependencies for py-bsddb
--->  Dependencies to be installed: py24-bsddb python24
--->  Fetching archive for python24
--->  Attempting to fetch python24-2.4.6_10.darwin_11.x86_64.tbz2 from http://packages.macports.org/python24
--->  Attempting to fetch python24-2.4.6_10.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/python24
--->  Installing python24 @2.4.6_10
--->  Activating python24 @2.4.6_10

To make python 2.4 the default (i.e. the version you get when you run 'python'), please run:

sudo port select --set python python24

--->  Cleaning python24
--->  Fetching archive for py24-bsddb
--->  Attempting to fetch py24-bsddb-2.5.2_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/py24-bsddb
--->  Attempting to fetch py24-bsddb-2.5.2_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/py24-bsddb
--->  Installing py24-bsddb @2.5.2_0
--->  Activating py24-bsddb @2.5.2_0
--->  Cleaning py24-bsddb
--->  Fetching archive for py-bsddb
--->  Attempting to fetch py-bsddb-2.5.2_0.darwin_11.noarch.tbz2 from http://packages.macports.org/py-bsddb
--->  Attempting to fetch py-bsddb-2.5.2_0.darwin_11.noarch.tbz2 from http://lil.fr.packages.macports.org/py-bsddb
--->  Attempting to fetch py-bsddb-2.5.2_0.darwin_11.noarch.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py-bsddb
--->  Fetching distfiles for py-bsddb
--->  Verifying checksums for py-bsddb
--->  Extracting py-bsddb
--->  Configuring py-bsddb
--->  Building py-bsddb
--->  Staging py-bsddb into destroot
--->  Installing py-bsddb @2.5.2_0
--->  Activating py-bsddb @2.5.2_0
--->  Cleaning py-bsddb
--->  Cleaning python_select
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
hostname:~ username$ sudo port select --set python python27
Selecting 'python27' for 'python' succeeded. 'python27' is now active.
hostname:~ username$ sudo easy_install ecdsa
Searching for ecdsa
Reading http://pypi.python.org/simple/ecdsa/
Best match: ecdsa 0.8
Downloading https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.8.tar.gz#md5=a3575705afb24d7cbc1694960d3965b1
Processing ecdsa-0.8.tar.gz
Running ecdsa-0.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-S4Gln6/ecdsa-0.8/egg-dist-tmp-yBI5e6
zip_safe flag not set; analyzing archive contents...
Adding ecdsa 0.8 to easy-install.pth file

Installed /Library/Python/2.7/site-packages/ecdsa-0.8-py2.7.egg
Processing dependencies for ecdsa
Finished processing dependencies for ecdsa
hostname:git username$ git clone https://github.com/username/pywallet
Cloning into 'pywallet'...
remote: Counting objects: 260, done.
remote: Compressing objects: 100% (179/179), done.
remote: Total 260 (delta 89), reused 250 (delta 81)
Receiving objects: 100% (260/260), 230.77 KiB | 347 KiB/s, done.
Resolving deltas: 100% (89/89), done.
hostname:git username$ cd pywallet
hostname:pywallet username$ python ./pywallet.py --web
pywallet needs 'bsddb' package to run, please install it
hostname:pywallet username$
Jump to: