Bitcoin Forum
May 28, 2024, 07:38:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 ... 88 »
301  Bitcoin / Armory / Re: Building Armory on OSX on: August 28, 2012, 01:25:37 AM
Red Emerald....

I think with your forumla I have *finally* managed some form of success.... Armory appears to be loading now (loading blk0001.dat)

For others running into the dreaded error:
Code:
/usr/lib/python2.7/config/libpython2.7.a: No such file or directory

Here is what I did to, i think, finally resolve this:
 * brew uninstall anything needed  for Armory: python, cryptopp, swig, sip, qt, pyqt, twisted.
 * brew install --HEAD armory-qt  (after adding the tap of course)
 * interestingly enough this did not install python, so: brew install python

This is where things got interesting... I have somehow gotten my python into 'framework' mode so things didn't work out of the box.

Also I found that when python installs libpython is actually a relative symlink, and given that the armory build is looking in /usr/lib this is why it breaks.  I have created the following script that fixes up my symlinks for me and then a brew install armory-qt worked like a champ (i think... it build/appears to run at least).

Also the command file you built did not work for me... I had to use brew python:
Code:
python /usr/local/Cellar/armory-qt/HEAD/share/armory/ArmoryQt.py

Here is the script I made, please note this will almost certainly not work 'out of the box' but at least be a guide for others:
Code:
#!/bin/bash
# See bottom of script for example paths
CELLAR=`brew --cellar python`
FRAMEWORK_PATH="$CELLAR/2.7.3/Frameworks/Python.framework"
PYTHON_PATH="$FRAMEWORK_PATH/Versions/2.7/Python"

# Update Brew links
cd $FRAMEWORK_PATH/Versions/2.7/lib/python2.7/config
rm libpython2.7.a
rm libpython2.7.dylib
ln -s $PYTHON_PATH libpython2.7.a
ln -s $PYTHON_PATH libpython2.7.dylib


# Now update system links
echo "Updating /usr/lib link... will need to sudo:"
sudo rm /usr/lib/python2.7
sudo ln -s $FRAMEWORK_PATH/Versions/2.7/lib/python2.7 /usr/lib/python2.7

echo "Links updated..."

# /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Python
# /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

@Red Emerald: if armory does indeed come up then I will send you some coin as I have wanted this for MONTHS.  Thank you thank you thank you!
My formula does not install python because brew's python isn't needed (at least in Lion+).  I built armory against the system python as that required less modifications to the Makefile.  That is also why my ArmoryQt.command uses /usr/bin/python and sets PYTHONPATH.

What version of OSX are you using?

I'm guessing your messing with the links to the Framework folders is why it won't build.  What does this command give for you?
Code:
$ ls -la /usr/lib | grep python2.7
lrwxr-xr-x    1 root     wheel    18B Jul 26 16:01 libpython.dylib@ -> libpython2.7.dylib
lrwxr-xr-x    1 root     wheel    68B Jul 26 16:01 libpython2.7.dylib@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/Python
lrwxr-xr-x    1 root     wheel    75B Jul 26 16:01 python2.7@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
If those don't match me (likely because you have messed with those while trying to get Armory to work in the past), then change them to be what I have and try to reinstall armory-qt.  Don't point them to brew.  The system python should work fine.  
302  Bitcoin / Armory / Re: Building Armory on OSX on: August 27, 2012, 06:01:57 PM
So I made this super simple for people.  I'm sure etotheipi will eventually do this himself, but if you want Armory up and running fast and right now.

Code:
brew tap WyseNynja/bitcoin
brew install wysenynja/bitcoin/bitcoind
brew install --HEAD wysenynja/bitcoin/armory-qt

You don't need to install bitcoind, but I like to. I might eventually add a startup service for bitcoind.

thanks works great, but only thing is it never created the link to application, so I just added my own apple script
It doesn't do that part automatically. My formula tells you how to link the command after it finishes installing. You can also run "brew info wysenynja/bitcoin/armory-qt"
303  Bitcoin / Bitcoin Discussion / Re: Please test (if you dare): next and next-test 2012-08-13 on: August 27, 2012, 08:08:32 AM
I've setup a brew tap to easily install bitcoind and bitcoind-next (as well as armory and soon electrum).

Code:
brew tap homebrew/versions #for berkeleydb-4
brew tap WyseNynja/bitcoin
brew install --HEAD wysenynja/bitcoin/bitcoind-next-test
304  Bitcoin / Development & Technical Discussion / Re: Trouble compiling bitcoind on OSX with homebrew on: August 27, 2012, 07:56:32 AM
I've setup a brew-tap that makes this super easy.

Code:
brew tap WyseNynja/bitcoin
brew install wysenynja/bitcoin/bitcoind

Right now it installs version 0.6.3 (or head if you pass --head).  I'm not sure how to have it allow multiple versions; I'm still reading the docs.

I'm also about to add "bitcoind-next-test"
305  Bitcoin / Armory / Re: Building Armory on OSX on: August 27, 2012, 07:21:25 AM
So I made this super simple for people.  I'm sure etotheipi will eventually do this himself, but if you want Armory up and running fast and right now.

Code:
brew tap homebrew/versions
brew tap WyseNynja/bitcoin
brew install wysenynja/bitcoin/bitcoind
brew install --HEAD wysenynja/bitcoin/armory-qt

You don't need to install bitcoind, but I like to. I might eventually add a startup service for bitcoind.

EDIT: I forgot to mention tapping homebrew/versions
306  Bitcoin / Armory / Re: Building Armory on OSX on: August 27, 2012, 04:29:10 AM
`brew install armoryqt` would be awesome, though a distributable binary would be better for the average user.

I'll try playing around with writing a recipe.

EDIT: wow. this is super easy.  I made a pull request to fix your makefile (it also adds qrc_img_resources.py to .gitignore since it is a generated file).  I'll post my formula in a few minutes.



https://github.com/etotheipi/BitcoinArmory/pull/18

Also, what branch should I be using? Dev still?

Here's the formula I made. It installs my dev branch which has two simple changes.  The first fixes the makefile so it can install into the brew prefix properly.  The second adds a "ArmoryQt.command" file.

You can install it by placing the below code into "`brew --prefix`/Library/Formula/bitcoinarmory.rb" and then `brew install --HEAD bitcoinarmory`

Code: ("`brew --prefix`/Library/Formula/bitcoinarmory.rb")
require 'formula'

class Bitcoinarmory < Formula
  homepage 'http://bitcoinarmory.com/'
  head 'https://github.com/WyseNynja/BitcoinArmory/tarball/dev'
  depends_on 'cryptopp'
  depends_on 'swig'
  depends_on 'sip'
  depends_on 'qt'
  depends_on 'pyqt'
  depends_on 'twisted' => :python

  def install
    ENV.j1  # if your formula's build system can't parallelize

    system "make"
    system "make DESTDIR=`brew --prefix BitcoinArmory` install"
    bin.install 'ArmoryQt.command'
  end

  def test
    system "PYTHONPATH=`brew --prefix`/lib/python2.7/site-packages /usr/bin/python `brew --prefix bitcoinarmory`/share/armory/ArmoryQt.py -h"
  end

  def caveats; <<-EOS.undent
    BitcoinArmory.command was installed in
        #{bin}

    To symlink into ~/Applications, you can do:
        ln -s #{bin}/ArmoryQt.command ~/Applications/
    EOS
  end
end

Now you can simply open up a terminal and assuming you already have your PATH setup for brew, `ArmoryQt.command`

You can also symlink the .command file somewhere easy to double click or even drop it onto the dock.
307  Bitcoin / Armory / Re: Building Armory on OSX on: August 19, 2012, 07:19:08 PM
Red Emerald,

I just committed a Makefile modification to the dev branch.  It's basically just the current master with a bug fix and the updated Makefile.  Can you do a fresh checkout and confirm it works on your system, too?  Just want to make sure I did it right.  It works on the OSX VM I have.
It works and the instructions are getting much simpler!  Once you pull out all the bsddb stuff, it should be this:

Code:
$ brew install python cryptopp swig sip qt pyqt
$ export PATH=`brew --prefix`/share/python:$PATH
$ pip install twisted
$ mkdir ~/src
$ cd ~/src
$ git clone git://github.com/etotheipi/BitcoinArmory.git
$ cd BitcoinArmory
$ make

$ PYTHONPATH=`brew --prefix`/lib/python2.7/site-packages /usr/bin/python ArmoryQt.py

Quote
I think py2app is what you should be doing.  I'll play around with it if I can get some time.

I will try it, too.  I just don't have high expectations.  I also had to reinstall my Win64 VM and can't get py2exe working.  I've spent hours on it and even my existing config that works on another machine isn't helping me figure it out.  Not looking forward to doing it again on OSX...
I got it working no problem at all with the alias option (-A), but that isn't very helpful.  I'll try again now that you changed the makefile.

Code:
$ py2applet --make-setup ArmoryQt.py
$ vim setup.py

  set 'argv_emulation' to False

$ PYTHONPATH=`brew --prefix`/lib/python2.7/site-packages /usr/bin/python setup.py py2app -A

$ open dist/ArmoryQt.app

EDIT: So I'm running into problems with Mountain Lion and macholib. I tried installing the development version of macholib, but that requires the development versions of altgraph and modulegraph which break the non-development version of py2app.  Hopefully you will have better luck with Lion.

This might help: http://b.atcg.us/blog/2010/04/13/py2app-hell-the-first.html
308  Bitcoin / Armory / Re: Building Armory on OSX on: August 18, 2012, 11:06:03 PM
Anyone have advice for how I can distribute it?  The OSX equivalent of py2exe does not look... reliable.  I'll try it, but I would prefer to avoid the complexities and run it as a native python script, if possible.  Perhaps bundle up all the site-packages into the install directory so that it can be standalone without having to install extra dependencies...? 

I'm guessing that packaging and distribution will be the biggest hurdle to getting Armory released on OSX.  Perhaps someone with more OSX experience can provide guidance...

Well, you have to install brew manually on OSX, but if it's already installed it might be possible to make up a .pkg for it with a script that will install everything else required and compile/copy all the necessary parts. Not really certain how well that would work, but failing that you could just use a zip or tarball as you would in a manual installation on linux. App file bundles on OSX might also theoretically be used to contain a python script, but I don't know that the functionality is quite flexible enough for that. If you want to dissect some .app files to see how they work, right click->show contents is what you'll want to look at.

One thing that sucks on OSX though, and I'm not sure if this applies to newer versions, but filepaths which contain spaces tend to seriously mess with makefile type scripts, which cause all kinds of corruption and errors. I don't think the same applies for pkgs, but usually those are installed from a dmg which allows you to control the path name.

I definitely can't bank on the user having the stuff installed already.  It seems like it would be... "irresponsible"... to have the install script actually install brew and all the brew packages.  Perhaps there's a way to make a completely self-contained directory tree (that has python and all dependencies pre-compiled and included).  I don't see why not, it just seems like a mess.

Maybe I should try py2app... but so far I've only heard gripes about things not working right, so I imagine I won't be figuring it out, either (I'd need some serious tinkering time available). 

So, perhaps someone here could donate some time to try this.  I bet it would be even easier with:  Portable Python.
I think py2app is what you should be doing.  I'll play around with it if I can get some time.
309  Bitcoin / Armory / Re: Building Armory on OSX on: August 16, 2012, 02:51:38 AM
EDIT: It seems like this would be a breeze if you didn't use bsddb.  It's been depreciated in python 2.6 and completely removed in 3.0.  I'm not sure if pybsddb even supports the newest version of berkeley-db4 (and berkeley-db5 has been out a while).

Looks like I had an older version in my pip cache.  I downloaded http://pypi.python.org/packages/source/b/bsddb3/bsddb3-5.3.0.tar.gz#md5=d5aa4f293c4ea755e84383537f74be82 and installed that easily.

Is this still an issue?  Now that I have removed the functionality for reading Satoshi wallets (because it only worked with older wallets that no one uses anymore), I can remove the bsddb depedency completely.  Would that be worth it?  I never had any interest in using bsddb myself, but obviously I have no choice if I want to read Bitcoin-Qt wallets.  However, leaving it in there would be slightly preferable in case I want to support those old wallets in the future (the new deterministic wallet formats coming at some point, will not use BSDDB).
Please get rid of bsddb.

Quote
On the topic of OSX compiling...  I have still been swamped with... life.  So I haven't had much time for development, but dabbling in OSX is a good exercise while I'm not doing other things.  So I have started learning how to compile things... why are there not packages for anything?  Is that what homebrew is for?
Yes.

Quote
I got swig compiled and running without brew.  It was a good exercise.  Unnecessary complex though (downloaded pcre separately, and used the Tools/pcre-build.sh script with swig).  But from looking at instructions, it looks like I can avoid a lot of pain by just going with brew...?
Oh god.  Don't torture yourself, dude.  Manual dependency tracking is not something worth wasting your time on.  Use homebrew.  It takes all of 10 seconds to install and makes everything way easier. 
310  Bitcoin / Pools / Re: [400GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool on: August 13, 2012, 06:05:47 AM
If you think that my entry in p2pool is breaking up things, I can move my miners to solo-mining. I'm talking of around 250GH/s.

I joined having in mind to help p2pool to perform better, not to upset people.
I'm not blaming you and sincerely hope that you being part of the pool is a good thing.  I'm just wanting to make sure its luck and not a bug or something.  With today, it's looking like it was just a run of bad luck.
311  Bitcoin / Pools / Re: [400GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool on: August 12, 2012, 09:12:13 PM
It's not just the stats.  It's the results.  I know past results aren't a guarantee of the future.. but I'm seeing an awful lot of red, literally, because rounds are taking too long.  We used to get more blocks, and higher payouts.  Now it's less blocks, and smaller payouts.  That's a double whammy.

And it all started when the extra 120 g/h was added.

I'm hoping it's a bad streak.. but I have yet to see anyone indicate for sure that we don't have a scaling issue.

Any chance p2pool could be changed to auto adjust the share difficulty to a given miner based on hash rate?  I know I haven't taken the time to figure out what my ideal share difficulty is, and I'm sure I'm not the only one.

M
+1

It seems like we had our luck problem come up last time when the pool grew from 200 to 300 GH/s.  Maybe there is a scaling issue.
312  Bitcoin / Armory / Re: Building Armory on OSX on: August 09, 2012, 09:01:11 PM
anyone know if the lion instructions work on mountain lion?
They worked for me on both.
313  Economy / Collectibles / Re: How would you like to design a bitcoin banknote? on: July 20, 2012, 04:53:23 PM
I just think a bitcoin note should stand for itself.. no people.. I think it would detract from people taking it seriously, I specially dont like the turing one because the picture is of a young boy it looks like..   

Also the people are too prominent in the design..  these should be their own identity, not just reproducing what people expect see on a typical FIAT note...   This is not fiat...   

I think it should be designed with math in mind, numbers, shapes...  ect..

I asked 8 people at work, who is Alan Turing..   only one knew..   sad but true..  (I work in IT/Banking)
I agree with you about shapes and such, but IMO people not knowing who Turing is is a reason to put his face on the currency, not take it off.
314  Economy / Collectibles / Re: How would you like to design a bitcoin banknote? on: July 15, 2012, 05:08:07 AM
That bearer bond looks awesome.

I've been wanting a nice looking way of saving offline funds to paper.  Armory is pretty cool, but something easily printed would be really nice, too.

We should come up with a good list of people/things for the portraits and the quotes.  I know there have been a few posts before filled with ideas.
315  Bitcoin / Armory / Re: Armory - Discussion Thread on: July 15, 2012, 04:39:31 AM
For those of you compiling from source:  version 0.82.1 is the "logger" branch.
Compiling in Lion now.

EDIT: Well it compiled, but I got some errors when trying to send coins.  I emailed you the logs.
316  Bitcoin / Armory / Re: Building Armory on OSX on: July 14, 2012, 05:19:07 AM
New and improved instructions for 64-bit Lion!

Code:
Install homebrew packages:
$ brew install python cryptopp swig sip qt pyqt berkeley-db

$ export PATH=`brew --prefix`/share/python:$PATH
$ export CFLAGS="-arch x86_64"
$ export ARCHFLAGS="-arch x86_64"
$ export BERKELEYDB_INCDIR=`brew --prefix berkeley-db`/include
$ export BERKELEYDB_LIBDIR=`brew --prefix berkeley-db`/lib

$ pip install twisted bsddb3

$ mkdir ~/src
$ cd ~/src
$ git clone git://github.com/etotheipi/BitcoinArmory.git
$ cd BitcoinArmory

Now edit the DEPSDIR and STATICPYTHON in cppForSwig/Makefile

Code:
$ git diff HEAD cppForSwig/Makefile
diff --git a/cppForSwig/Makefile b/cppForSwig/Makefile
index d5b4340..c20b9a1 100755
--- a/cppForSwig/Makefile
+++ b/cppForSwig/Makefile
@@ -7,14 +7,14 @@ LINKER = g++
 OBJS = UniversalTimer.o BinaryData.o FileDataPtr.o BtcUtils.o BlockObj.o BlockUtils.o EncryptionUtils.o libcryptopp.a
 
 
-DEPSDIR ?= /usr
+DEPSDIR ?= /usr/local
 
 INCLUDE_OPTS += -Icryptopp -DUSE_CRYPTOPP -D__STDC_LIMIT_MACROS
 LIBRARY_OPTS += -lpthread
 SWIG_OPTS    += -c++ -python -classic
 PYVER           += `python -c 'import sys; print str(sys.version_info[0]) + "." + str(sys.version_info[1])'`
 SWIG_INC     += -I"$(DEPSDIR)/include/python$(PYVER)"
-STATICPYTHON +=   "$(DEPSDIR)/lib/libpython$(PYVER).a"
+STATICPYTHON +=   "$(DEPSDIR)/lib/libpython$(PYVER).dylib"
 
 
 #**************************************************************************

Almost there!
Code:
$ make clean
$ make

$ python ArmoryQt.py
********************************************************************************
Loading Armory Engine:
   Armory Version:       0.82
   PyBtcAddress Version: 1.00
   PyBtcWallet  Version: 1.35
Detected Operating system: Mac/OSX
   User home-directory   : /Users/bwstitt/Library/Application Support
   Satoshi BTC directory : /Users/bwstitt/Library/Application Support/Bitcoin/
   Armory home dir       : /Users/bwstitt/Library/Application Support/Armory/
Using settings file: /Users/bwstitt/Library/Application Support/Armory/ArmorySettings.txt
Loading wallets...
Number of wallets read in: 4
   Wallet (---------):    "Primary Cold Wallet (Watch)     "    (No Encryption)
   Wallet (---------):    "Foobar                          "    (No Encryption)
   Wallet (---------):    "Satoshi Wallet                  "    (Encrypted)
   Wallet (---------):    "Primary Hot Wallet              "    (Encrypted)
Internet connection is Available:  True
Bitcoin-Qt/bitcoind is Available:  True
Loading blockchain
Opening file 1: /Users/bwstitt/Library/Application Support/Bitcoin//blk0001.dat
Opening file 2: /Users/bwstitt/Library/Application Support/Bitcoin//blk0002.dat
Highest blkXXXX.dat file: 2
Attempting to read blockchain from file: /Users/bwstitt/Library/Application Support/Bitcoin//blk0001.dat
/Users/bwstitt/Library/Application Support/Bitcoin//blk0001.dat is 2000.04 MB
Attempting to read blockchain from file: /Users/bwstitt/Library/Application Support/Bitcoin//blk0002.dat
/Users/bwstitt/Library/Application Support/Bitcoin//blk0002.dat is 4.13251 MB
Syncing wallets with blockchain...
Syncing wallet:  ---------
Syncing wallet:  ---------
Syncing wallet:  ---------
Syncing wallet:  ---------
Loading blockchain took 123.4 seconds

Since I am using brew's libpython2.7.dylib, we don't need to set PYTHONPATH

Clicking "Filter:" still locks everything up Sad

If you copy these instructions to your site, be careful that the backticks and quotes transfer properly.
317  Other / Politics & Society / Re: Internet Kill Switch to Be Armed by DHS on Monday on: July 13, 2012, 03:22:54 AM
@OP before I forget. The proported false flag virus, is said to be the Stuxnet. http://arstechnica.com/tech-policy/2012/06/confirmed-us-israel-created-stuxnet-lost-control-of-it/
Well if this it really was stuxnet then I should revise my previous post.

A virus went around awhile ago that routed traffic through a US Govt DNS.  They recently turned this server off. It isn't really a conspiracy, more of a cyberweapon gone awry.  There is no firewall or any thing like that.  They simply turned some DNS servers off.

I don't think this DNS changer is stuxnet though.
318  Other / Politics & Society / Re: Internet Kill Switch to Be Armed by DHS on Monday on: July 11, 2012, 11:47:08 PM
I don't think this author knows what he is talking about.

A virus went around awhile ago that routed traffic through a malicious DNS.  The US govt replaced the DNS server with their own.  They recently turned this server off.  I don't understand why people think this is a conspiracy or some sort of internet kill switch. There is no firewall or any thing like it.  They simply turned some DNS servers off.

http://en.wikipedia.org/wiki/Alureon
http://www.dcwg.org/
319  Bitcoin / Bitcoin Discussion / Re: [ANN] The world's first handheld Bitcoin device, the Ellet! on: July 11, 2012, 11:35:11 PM
I'm posting the other thread in a minute. Need to clear some details with investors.

How long could a Matthew minute be for the rest of the world?
Let's try:
Bitcoin Magazine: "weeks" -> "months"
Ellet: "next week" -> "not anytime soon"
So are are there any mathematicians here that can compute this?


Sorry, right when I was about to post the thread that took 20 or so minutes to write, I was asked to handle it privately instead.
So we aren't getting any news?
320  Economy / Goods / Re: Bitcoin Checks on: July 10, 2012, 10:57:43 PM
Comcast wants a $100 installation fee just for some clown to come out and switch out my modem. So instead I am relaying my mail through Gmail, and everything is back to normal now.
Really? My business class only cost $50 to setup and I complained and got it done for free.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 ... 88 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!