Pages:
Author

Topic: [ANNOUNCE] Electrum - Lightweight Bitcoin Client - page 68. (Read 274562 times)

legendary
Activity: 1896
Merit: 1353
What version of Python do you have? I think the dev likes you to have 2.7.

you need at least python 2.6.
EDIT: I just added a test of the python version to the setup script
hero member
Activity: 784
Merit: 1010
Bitcoin Mayor of Las Vegas
What version of Python do you have? I think the dev likes you to have 2.7.
sr. member
Activity: 278
Merit: 251
Bitcoin-Note-and-Voucher-Printing-Empowerer
Hi,

I tried to install Electrum on Linux (ubuntu), but I failed already at the very beginning.

I use the command
Code:
sudo pip install http://ecdsa.org/electrum/Electrum-latest.tar.gz
but I just get the reply
Code:
sudo: pip: command not found

Any ideas? I am using kubuntu 8.04, and I do not know how to install "pip" - I did not find it in the packet manager.

Thanks, Michael

UPDATE:
I installed pip acc. to the description in "http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/" for the section "For older versions of Ubuntu".

After that, I tried again
Code:
sudo pip install http://ecdsa.org/electrum/Electrum-latest.tar.gz

This time, the console output showed the following errors:
Code:
Downloading/unpacking http://ecdsa.org/electrum/Electrum-latest.tar.gz
  Downloading Electrum-latest.tar.gz (205Kb): 205Kb downloaded
  Running setup.py egg_info for package from http://ecdsa.org/electrum/Electrum-latest.tar.gz
    lib/wallet.py:729: Warning: 'with' will become a reserved keyword in Python 2.6
    Traceback (most recent call last):
      File "", line 14, in
      File "/tmp/pip--Pqcg9-build/setup.py", line 6, in
        from lib.version import ELECTRUM_VERSION as version
      File "lib/__init__.py", line 1, in
        from wallet import Wallet, format_satoshis
      File "lib/wallet.py", line 729
        with self.lock:
                ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    lib/wallet.py:729: Warning: 'with' will become a reserved keyword in Python 2.6

Traceback (most recent call last):

  File "", line 14, in

  File "/tmp/pip--Pqcg9-build/setup.py", line 6, in

    from lib.version import ELECTRUM_VERSION as version

  File "lib/__init__.py", line 1, in

    from wallet import Wallet, format_satoshis

  File "lib/wallet.py", line 729

    with self.lock:

            ^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip--Pqcg9-build
Storing complete log in /home/michael/.pip/pip.log

At the end of the "pip.log" file, there is the following additional info compared to above screen output:
Code:
----------------------------------------

Command python setup.py egg_info failed with error code 1 in /tmp/pip-l7TSb--build

Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/pip-1.1-py2.5.egg/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/usr/lib/python2.5/site-packages/pip-1.1-py2.5.egg/pip/commands/install.py", line 245, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.5/site-packages/pip-1.1-py2.5.egg/pip/req.py", line 1009, in prepare_files
    req_to_install.run_egg_info()
  File "/usr/lib/python2.5/site-packages/pip-1.1-py2.5.egg/pip/req.py", line 225, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/lib/python2.5/site-packages/pip-1.1-py2.5.egg/pip/__init__.py", line 256, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-l7TSb--build

I am not a programmer or a Linux expert. Anyone has an idea? I just want to run Electrum.
newbie
Activity: 29
Merit: 0
Thanks to Tuxavant's suggestion, it seems that adding a contact only works if it's just the address. No protocol and no label. It also just stores it as the address, with no way to name it and also doesn't seem to be a way to delete it.

Making it work with the standard protocol and allowing renaming or at least deleting would be nice additions to the app. If I have time later I'll check out the code and see if it's something I can add myself. Probably be a day or so till I get around to it though.
newbie
Activity: 29
Merit: 0
Dunno if this is the intended process, but when you can something with zxing, it does copy it to the clipboard. hold press on the input field and select paste.

Also, I've seen some clients fumble with the bitcoin uri - by prepending or removing "bitcoin:" from the qr encoded text makes it work. I know you can't readily change someone else's QR code... just sayin... If that is the case, perhaps pasted it to an editable field, add/remove the protocol reference, and then drop it in your client address field.

The problem is there is no place to paste the address into. It seems adding a contact is fully automated, and no way to do it manually. I should be able to generate some new QR codes and test with and without the protocol though, thanks for the idea.
hero member
Activity: 784
Merit: 1010
Bitcoin Mayor of Las Vegas
Dunno if this is the intended process, but when you can something with zxing, it does copy it to the clipboard. hold press on the input field and select paste.

Also, I've seen some clients fumble with the bitcoin uri - by prepending or removing "bitcoin:" from the qr encoded text makes it work. I know you can't readily change someone else's QR code... just sayin... If that is the case, perhaps pasted it to an editable field, add/remove the protocol reference, and then drop it in your client address field.
newbie
Activity: 29
Merit: 0
Maybe I'm doing something wrong, but on the Android client, when I try to create a new contact it will let me scan a QR code but then nothing is saved. Using Barcode Scanner (ZXing) to do the QR code scanning.

Steps:

Open Electrum on android
Press Menu
Press Contacts
Press New Contact
Complete Action Using: Barcode Scanner
QR code is scanned from computer (Bitcoin-QT)
I am returned to Electrum on Android looking at my balance.
Press Menu
Press Contacts
Still no contacts listed.


Using Stock ICS on Verizon Galaxy Nexus. There doesn't seem to be any other way to add contacts other than QR code scanning either. Known bug? Need any more information?
legendary
Activity: 1092
Merit: 1016
760930
Nope, the same thing still happens (just tested again)...
with ecdsa.org?

Yes.



But again, as I initially mentioned, it doesn't seem to happen when I have the console open.
Only when I start Electrum in GUI-only mode (which uses a slightly different Python interpreter under windows,
pythonW.exe vs python.exe). Definitely a strange one...

[EDIT] I'll see if I can fix this by looking for the latest version of pythonW.exe

Looks like I've got a fix for this one...
 I'm doing some testing at the moment and it looks good.
legendary
Activity: 1092
Merit: 1016
760930
Nope, the same thing still happens (just tested again)...
with ecdsa.org?

Yes.



But again, as I initially mentioned, it doesn't seem to happen when I have the console open.
Only when I start Electrum in GUI-only mode (which uses a slightly different Python interpreter under windows,
pythonW.exe vs python.exe). Definitely a strange one...

[EDIT] I'll see if I can fix this by looking for the latest version of pythonW.exe
legendary
Activity: 1896
Merit: 1353
Nope, the same thing still happens (just tested again)...
with ecdsa.org?
legendary
Activity: 1092
Merit: 1016
760930
I think there's a new bug that shows bad data for transactions and wallet balance while they are pending. Probably related to the 'display coins sent to change address' commit. I will post some screenshots tomorrow, can't right now as I'm posting from my phone.

More about this one, with screenshots taken yesterday, while the issue was visible:

The data displayed for amount and balance are incorrect for while a transaction is pending:

There should be a single -0.192 transaction at 23:00, as seen in the second screenshot,
but instead, Electrum was showing 2 positive transactions, +5.376 and +5.184? With
some addresses I don't recognize - quite possibly these are some of my change addresses
I suspect:



My wallet balance should be around 20 BTC, not 30 - Once the transactions get confirmed, the data is OK again:
 



Perhaps a bug in commit 12e2b8d ?

[EDIT]  Tried to reproduce the issue this morning, but can't.
legendary
Activity: 1092
Merit: 1016
760930
Thanks. I just tested it, and now I can see that when the process stalls
at the last address (115 for me) there is no more data received, and I have to
manually close the window. (First, I tried to wait for 3 minutes but nothing else
was happening)

can you test if you still have that problem?
I just fixed something (serverside) that could have had to do with it


Nope, the same thing still happens (just tested again)...
But the download / address generation seems to be a bit faster now!
legendary
Activity: 1896
Merit: 1353
Thanks. I just tested it, and now I can see that when the process stalls
at the last address (115 for me) there is no more data received, and I have to
manually close the window. (First, I tried to wait for 3 minutes but nothing else
was happening)

can you test if you still have that problem?
I just fixed something (serverside) that could have had to do with it
legendary
Activity: 1092
Merit: 1016
760930
I think there's a new bug that shows bad data for transactions and wallet balance while they are pending. Probably related to the 'display coins sent to change address' commit. I will post some screenshots tomorrow, can't right now as I'm posting from my phone.
hero member
Activity: 784
Merit: 1010
Bitcoin Mayor of Las Vegas
Thanks for fixing those little issues so fast.

ThomasV is a machine! tipped
legendary
Activity: 1092
Merit: 1016
760930
version 0.52 released today.

no new features, but 3 bugfixes:
 * correctly display small amounts (reported by flatfly)
 * display "at:" address if bitcoins are received on a change address (reported by flatfly)
 * fix socket problem


Thanks for fixing those little issues so fast.
legendary
Activity: 1896
Merit: 1353
version 0.52 released today.

no new features, but 3 bugfixes:
 * correctly display small amounts (reported by flatfly)
 * display "at:" address if bitcoins are received on a change address (reported by flatfly)
 * fix socket problem
legendary
Activity: 1092
Merit: 1016
760930
1. tiny amounts (like 1 satoshi) are unexpectedly displayed in 'scientific
    notation', such as 1E-8 rather than 0.00000001.
indeed. format_satoshis() needs to be rewritten using Decimal.as_tuple()

Quote
2. i was playing around with satoshidice a little bit: the amounts returned
    by satoshidice show with a blank description, which looks a bit strange...
I see. this is because it is sending to a change address.  EDIT: that's fixed on git.

Thanks!
legendary
Activity: 1896
Merit: 1353
1. tiny amounts (like 1 satoshi) are unexpectedly displayed in 'scientific
    notation', such as 1E-8 rather than 0.00000001.
indeed. format_satoshis() needs to be rewritten using Decimal.as_tuple()

Quote
2. i was playing around with satoshidice a little bit: the amounts returned
    by satoshidice show with a blank description, which looks a bit strange...
I see. this is because it is sending to a change address.  EDIT: that's fixed on git.
legendary
Activity: 1092
Merit: 1016
760930
Hi,

I have 2 (very minor) issues to report:

1. tiny amounts (like 1 satoshi) are unexpectedly displayed in 'scientific
    notation', such as 1E-8 rather than 0.00000001.

2. i was playing around with satoshidice a little bit: the amounts returned
    by satoshidice show with a blank description, which looks a bit strange...

  (both issues can be seen in the topmost entry of the screenshot)

Other than that, everything looks great!


Pages:
Jump to: