thks flatfly, I just had the same error… but when I restarted, it did not recur. I think BCI returns an unexpected output.
I just do a quick push with additional check…
[quote author=JahPowerBit link=topic=166.msg1390#msg1390 date=1395252266]
thks flatfly, I just had the same error… but when I restarted, it did not recur. I think BCI returns an unexpected output.
I just do a quick push with additional check…
[/quote]
Great, thanks!
I keep getting this quite often.
[quote author=flatfly link=topic=166.msg1310#msg1310 date=1395081468]<br />> python pyrpcwallet.py --rpc-user testingrpc --rpc-password test<br />Bottle v0.12.4 server starting up (using WSGIRefServer())...<br />Listening on http://localhost:8383/<br />Updating balances and unspent outputs from Blockchain.info...Hit Ctrl-C to quit.<br /><br /><br />Exception in thread Thread-1:<br />Traceback (most recent call last):<br /> File "C:\\Python33\\lib\\threading.py", line 901, in _bootstrap_inner<br /> self.run()<br /> File "C:\\Python33\\lib\\threading.py", line 858, in run<br /> self._target(*self._args, **self._kwargs)<br /> File "C:\\Python33\\pyrpcwallet\\lib\\json_rpc.py", line 56, in update_balances<br /> db.update()<br /> File "C:\\Python33\\pyrpcwallet\\lib\\wallet_db.py", line 86, in update<br /> new_unspent['txid'],<br />TypeError: 'NoneType' object is not subscriptable<br /><br /><br />
[/quote]
What I’m doing is, I have
- the official counterpartyd running (instead of using followblocks.py)
- pyrpcwallet
- composer
- counterpartyws --light
everytime I use “bitcoind getnewaddress” on the pyrpcwallet, and reload the gui on the browser, the browser freezes (with the wait let me think pop up), and sometimes it displays that new_unspent[‘txid’] exception, to fix this I have to restart pyrpcwallet and wait for a while / reload a few times then it’s okay again until the next getnewaddress
Can this be installed on Windows/Linux. The instructions(brew) seem to be Mac OS specific.
[quote author=romerun link=topic=166.msg1569#msg1569 date=1395682960]
I keep getting this quite often.
[quote author=flatfly link=topic=166.msg1310#msg1310 date=1395081468]<br />> python pyrpcwallet.py --rpc-user testingrpc --rpc-password test<br />Bottle v0.12.4 server starting up (using WSGIRefServer())...<br />Listening on http://localhost:8383/<br />Updating balances and unspent outputs from Blockchain.info...Hit Ctrl-C to quit.<br /><br /><br />Exception in thread Thread-1:<br />Traceback (most recent call last):<br /> File "C:\\Python33\\lib\\threading.py", line 901, in _bootstrap_inner<br /> self.run()<br /> File "C:\\Python33\\lib\\threading.py", line 858, in run<br /> self._target(*self._args, **self._kwargs)<br /> File "C:\\Python33\\pyrpcwallet\\lib\\json_rpc.py", line 56, in update_balances<br /> db.update()<br /> File "C:\\Python33\\pyrpcwallet\\lib\\wallet_db.py", line 86, in update<br /> new_unspent['txid'],<br />TypeError: 'NoneType' object is not subscriptable<br /><br /><br />
[/quote]
What I’m doing is, I have
- the official counterpartyd running (instead of using followblocks.py)
- pyrpcwallet
- composer
- counterpartyws --light
everytime I use “bitcoind getnewaddress” on the pyrpcwallet, and reload the gui on the browser, the browser freezes (with the wait let me think pop up), and sometimes it displays that new_unspent[‘txid’] exception, to fix this I have to restart pyrpcwallet and wait for a while / reload a few times then it’s okay again until the next getnewaddress
[/quote]
hum… same bug as flatfly i think. do yo use the latest version of counterpartyws? I’ll look more closely…
thank you romerun
Thanks
Hi,
I’m trying to install on Mac OSX Mavericks 10.9.2. I get the following errors when I run the step “pip3 install https://github.com/rogerbinns/apsw/archive/master.zip”:
[quote] /usr/bin/clang -fno-strict-aliasing -Werror=declaration-after-statement -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -Isrc -I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c src/apsw.c -o build/temp.macosx-10.6-intel-3.4/src/apsw.o
src/apsw.c:62:2: error: Your SQLite version is too old. It must be at least 3.8.3
#error Your SQLite version is too old. It must be at least 3.8.3[/quote]
Ok, I see my installed SQLite version is 3.7.2, so I need to update SQLite. I install the new version. It tells me this:
[quote]==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/sqlite-3.8.
######################################################################## 100.0%
==> Pouring sqlite-3.8.4.1.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
OS X provides an older sqlite3.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include
==> Summary
[quote][font=Verdana]
hum… same bug as flatfly i think. do yo use the latest version of counterpartyws? I’ll look more closely…[/font][font=Verdana]thank you romerun
[/font][/quote][font=Verdana]
[font=verdana, arial, helvetica, sans-serif]Latest. I might have a lead to what happens:[/font]
[font=verdana, arial, helvetica, sans-serif]when calling “update” lib/wallet_db.py after a getnewaddress request,[/font]
[font=verdana, arial, helvetica, sans-serif]it will try to get balance of the new address, so it calls BCI.listunspent for that address,[/font]
[font=verdana, arial, helvetica, sans-serif]of course, blockchain.info returns “No free outputs to spend”, then it returns None, None[/font]
[font=verdana, arial, helvetica, sans-serif]causing the exception when trying to read the [‘txid’] out of it,[/font]
[font=verdana, arial, helvetica, sans-serif]It will happens only 1 time because, it updates the address balance on database before calling the listunspent, [/font]
[font=verdana, arial, helvetica, sans-serif]next time it will just get 0 from database and won’t call listunspent[/font]
[font=verdana, arial, helvetica, sans-serif]------[/font]
[font=verdana, arial, helvetica, sans-serif]on a possibly relating problem, the counterwalletws --light display this exception when reload the gui after getnewaddress,[/font]
[/font][quote][font=Verdana]
Traceback (most recent call last):
File “/usr/local/lib/python3.3/dist-packages/bottle.py”, line 862, in _handle
return route.call(**args)
File “/usr/local/lib/python3.3/dist-packages/bottle.py”, line 1727, in wrapper
rv = callback(*a, **ka)
File “counterpartyws.py”, line 129, in wallet
listaddressgroupings = bitcoin.rpc(‘listaddressgroupings’, [])
File “/counterpartyws/counterpartyd/lib/bitcoin.py”, line 153, in rpc
raise exceptions.BitcoindError(’{}’.format(response_json[‘error’]))
counterpartyd.lib.exceptions.BitcoindError: {‘code’: -1, ‘message’: “unsupported operand type(s) for *: ‘NoneType’ and ‘decimal.Decimal’”}
[/font][/quote]
This should be fine. Have you tried [font=verdana]"pip3 install [/font][font=verdana]https://github.com/rogerbinns/apsw/archive/master.zip[/font][font=verdana]" after brewing the sqlite 3.8.x ?[/font]
[quote author=slashbinslashbash link=topic=166.msg1578#msg1578 date=1395705693]
…
[/quote]
[quote]==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/sqlite-3.8.
######################################################################## 100.0%
==> Pouring sqlite-3.8.4.1.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
OS X provides an older sqlite3.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include
==> Summary
[/quote]
the same problem
[quote author=romerun link=topic=166.msg1582#msg1582 date=1395714702]
This should be fine. Have you tried [font=verdana]“pip3 install [/font][font=verdana]https://github.com/rogerbinns/apsw/archive/master.zip[/font][font=verdana]” after brewing the sqlite 3.8.x ?[/font]
[quote author=slashbinslashbash link=topic=166.msg1578#msg1578 date=1395705693]
…
[/quote]
[/quote]
Yes, sorry, forgot to mention that I’m still getting the exact same error, it’s still seeing the original sqlite 3.7.2 (which was not uninstalled, as OSX needs it) and not detecting the new 3.8.4.
[quote author=supersuber link=topic=166.msg1583#msg1583 date=1395715153]
[quote]==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/sqlite-3.8.
######################################################################## 100.0%
==> Pouring sqlite-3.8.4.1.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
OS X provides an older sqlite3.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include
==> Summary
[/quote]
the same problem
[/quote]
what’s the error when installing
[size=x-small][font=verdana]pip3 install [/font][/size][size=x-small][font=verdana][color=rgb(51, 68, 102)]https://github.com/rogerbinns/apsw/archive/master.zip[/color][/font][/size]
–Edit–
I just tried brewing sqlite and pip3ing apsw from a fresh Maverick and there’s no issue
[tt]pip install pycrypto[/tt] error. [font=dejavu sans mono][size=x-small]error: Unable to find vcvarsall.bat[/size][/font]------------------------------------------------------------<br />C:\\Python32\\Scripts\\pip-script.py run on 03/29/14 17:27:14<br />Downloading/unpacking pycrypto<br /> Getting page https://pypi.python.org/simple/pycrypto/<br /> URLs to search for versions for pycrypto:<br /> * https://pypi.python.org/simple/pycrypto/<br /> Analyzing links from page https://pypi.python.org/simple/pycrypto/<br /> Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.0.1.tar.gz#md5=4d5674f3898a573691ffb335e8d749cd (from https://pypi.python.org/simple/pycrypto/), version: 2.0.1<br /> Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.1.0.tar.gz#md5=1d3eb04f06e6f09a080bc37fb019f9bf (from https://pypi.python.org/simple/pycrypto/), version: 2.1.0<br />*********************************************<br />*********************************************<br /><br /><br />Skipping implicit fixer: buffer<br /><br /><br />Skipping implicit fixer: idioms<br /><br /><br />Skipping implicit fixer: set_literal<br /><br /><br />Skipping implicit fixer: ws_comma<br /><br /><br />running build_ext<br /><br /><br />building 'Crypto.Random.OSRNG.winrandom' extension<br /><br /><br />warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.<br /><br /><br />error: Unable to find vcvarsall.bat<br /><br /><br />----------------------------------------<br />Cleaning up...<br /> Removing temporary dir c:\\users\\miracl~1\\appdata\\local\\temp\\pip_build_MiracleSamantha...<br />Command c:\\python32\\python.exe -c "import setuptools, tokenize;__file__='c:\\\\users\\\\miracl~1\\\\appdata\\\\local\\\\temp\\\\pip_build_MiracleSamantha\\\\pycrypto\\\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\
', '\
'), __file__, 'exec'))" install --record c:\\users\\miracl~1\\appdata\\local\\temp\\pip-8eso1h-record\\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\\users\\miracl~1\\appdata\\local\\temp\\pip_build_MiracleSamantha\\pycrypto<br />Exception information:<br />Traceback (most recent call last):<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\basecommand.py", line 122, in main<br /> status = self.run(options, args)<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\commands\\install.py", line 283, in run<br /> requirement_set.install(install_options, global_options, root=options.root_path)<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\req.py", line 1435, in install<br /> requirement.install(install_options, global_options, *args, **kwargs)<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\req.py", line 706, in install<br /> cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\util.py", line 697, in call_subprocess<br /> % (command_desc, proc.returncode, cwd))<br />pip.exceptions.InstallationError: Command c:\\python32\\python.exe -c "import setuptools, tokenize;__file__='c:\\\\users\\\\miracl~1\\\\appdata\\\\local\\\\temp\\\\pip_build_MiracleSamantha\\\\pycrypto\\\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\
', '\
'), __file__, 'exec'))" install --record c:\\users\\miracl~1\\appdata\\local\\temp\\pip-8eso1h-record\\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\\users\\miracl~1\\appdata\\local\\temp\\pip_build_MiracleSamantha\\pycrypto
looks like counterpartyd 6.10 requires pycrypto , i did pip3 install pycrypto on osx and ubuntu and it went through just fine, no clue on windows
[quote author=520Bit link=topic=166.msg1655#msg1655 date=1396086214]
[tt]pip install pycrypto[/tt] error. [font=dejavu sans mono][size=x-small]error: Unable to find vcvarsall.bat[/size][/font]------------------------------------------------------------<br />C:\\Python32\\Scripts\\pip-script.py run on 03/29/14 17:27:14<br />Downloading/unpacking pycrypto<br /> Getting page https://pypi.python.org/simple/pycrypto/<br /> URLs to search for versions for pycrypto:<br /> * https://pypi.python.org/simple/pycrypto/<br /> Analyzing links from page https://pypi.python.org/simple/pycrypto/<br /> Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.0.1.tar.gz#md5=4d5674f3898a573691ffb335e8d749cd (from https://pypi.python.org/simple/pycrypto/), version: 2.0.1<br /> Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.1.0.tar.gz#md5=1d3eb04f06e6f09a080bc37fb019f9bf (from https://pypi.python.org/simple/pycrypto/), version: 2.1.0<br />*********************************************<br />*********************************************<br /><br /><br />Skipping implicit fixer: buffer<br /><br /><br />Skipping implicit fixer: idioms<br /><br /><br />Skipping implicit fixer: set_literal<br /><br /><br />Skipping implicit fixer: ws_comma<br /><br /><br />running build_ext<br /><br /><br />building 'Crypto.Random.OSRNG.winrandom' extension<br /><br /><br />warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.<br /><br /><br />error: Unable to find vcvarsall.bat<br /><br /><br />----------------------------------------<br />Cleaning up...<br /> Removing temporary dir c:\\users\\miracl~1\\appdata\\local\\temp\\pip_build_MiracleSamantha...<br />Command c:\\python32\\python.exe -c "import setuptools, tokenize;__file__='c:\\\\users\\\\miracl~1\\\\appdata\\\\local\\\\temp\\\\pip_build_MiracleSamantha\\\\pycrypto\\\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\
', '\
'), __file__, 'exec'))" install --record c:\\users\\miracl~1\\appdata\\local\\temp\\pip-8eso1h-record\\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\\users\\miracl~1\\appdata\\local\\temp\\pip_build_MiracleSamantha\\pycrypto<br />Exception information:<br />Traceback (most recent call last):<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\basecommand.py", line 122, in main<br /> status = self.run(options, args)<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\commands\\install.py", line 283, in run<br /> requirement_set.install(install_options, global_options, root=options.root_path)<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\req.py", line 1435, in install<br /> requirement.install(install_options, global_options, *args, **kwargs)<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\req.py", line 706, in install<br /> cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)<br /> File "c:\\python32\\lib\\site-packages\\pip-1.5.4-py3.2.egg\\pip\\util.py", line 697, in call_subprocess<br /> % (command_desc, proc.returncode, cwd))<br />pip.exceptions.InstallationError: Command c:\\python32\\python.exe -c "import setuptools, tokenize;__file__='c:\\\\users\\\\miracl~1\\\\appdata\\\\local\\\\temp\\\\pip_build_MiracleSamantha\\\\pycrypto\\\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\
', '\
'), __file__, 'exec'))" install --record c:\\users\\miracl~1\\appdata\\local\\temp\\pip-8eso1h-record\\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\\users\\miracl~1\\appdata\\local\\temp\\pip_build_MiracleSamantha\\pycrypto
[/quote]
pycrypto is notoriously shitty on Windows
I never knew why Counterparty cared about people running counterpartyd on Windows. I very much doubt if most Windows users will be capable or motivated to that even in the short term. I don’t mean to bash Windows, but it seems at least for the purposes of running a software daemon that it isn’t a platform worth supporting. Better solution short and long term is to give windows users some kind of a light client.