Bitcoin Forum
July 04, 2024, 04:27:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Electrum / Re: PermissionError: [Errno 13] Permission denied: .... but only under normal user on: June 02, 2018, 11:20:52 PM
Hi,

so I installed Electrum as suggested but I really can't get my head around why root can launch this programme and the ordinary user can't. I first thought that this was to do with my normal user having Anaconda installed so I checked my Anaconda environments.

You'll see below that even when Python 2.7 is activated (which is default installed version system wide and therefore the version that would be launching the software with sudo ....), its still complaining about permissions. Any further pointers?

I definitely shoudln't be changing permissions manually, this is not the right way to resolve the problem?

Thanks

[dom giu 03, 12:11 ][user@pc:~]electrum
/usr/bin/python3: can't open file '/usr/local/bin/electrum': [Errno 13] Permission denied

[dom giu 03, 12:11 ][user@pc:~]sudo electrum                              (program runs here)
[dom giu 03, 12:12 ][user@pc:~]sudo python --version
Python 2.7.13
[dom giu 03, 12:13 ][user@pc:~]python --version
Python 3.5.5 :: Anaconda custom (64-bit)
[dom giu 03, 12:14 ][user@pc:~]source activate Python27
(Python27) [dom giu 03, 12:14 ][user@pc:~]python --version
Python 2.7.13 :: Continuum Analytics, Inc.
(Python27) [dom giu 03, 12:14 ][user@pc:~]electrum
/usr/bin/python3: can't open file '/usr/local/bin/electrum': [Errno 13] Permission denied
(Python27) [dom giu 03, 12:15 ][user@pc:~]


2  Bitcoin / Armory / Re: Armory 0.96 on Debian Stretch on: June 02, 2018, 10:37:48 PM

You will need to have Bitcoin Core downloaded, installed and fully synced to use Bitcoin Armory properly.

Go here: https://bitcoincore.org/en/download/


Ok, so I downloaded bitcoin core, verified, installed, and spent the last 2 days downloading the whole database. The bitcoin core now seems happy. However, when I start Armory, it says its "preparing the databses" and "Scaning transaction history". It pretty much hangs on this screen. I told it where the binary of bticoin core is located under "settings", I added the path /home/user/.armory/bitcoin-0.16.0/bin under the "bitcoin install dir" and "/mnt/sdb3/user/.bitcoin" for the "bitcoin home dir". I had to download the bitcoing database on another partition  of another disk as I was running out of space on the main disk.

is the "bitcoin install dir" where the database is and "bitcoin home dir" is where the binaries are?

Thanks
3  Bitcoin / Armory / Re: Armory 0.96 on Debian Stretch on: May 29, 2018, 09:37:58 PM
Cool, thanks for your reply PhoenixFire. In fact I only had one dependancy. But I have a few more questions.

Question 1: what are the relationships between all those websites?

QUestion 2: where do i get a dam good newbie guide for armory? I've started it up. It asked for creating a wallet and I skipped. It asked to use armory as default for running bitcoin and I accepted. Now its "offline", appears to be doing something with "Prparing Database" and "Scan Transaction History" althought the bars are not progressing.In fact, there is absolutely no traffic being generated over my network card. Is armory meant to be downloading the bitcoin blockchain? Do I need to install the core bitcoin software and if so, what version and where do I get it for Debian Stretch?

Regards
4  Bitcoin / Electrum / Re: PermissionError: [Errno 13] Permission denied: .... but only under normal user on: May 28, 2018, 11:03:39 PM
mmm, so I tried all that but nbow look what I get below. There seems to be a wider problem. How is it that permissions weren't set properly during the install process?


[mar mag 29, 12:01 ][user@machine:~]electrum
Traceback (most recent call last):
  File "/usr/bin/electrum", line 80, in <module>
    check_imports()
  File "/usr/bin/electrum", line 65, in check_imports
    import google.protobuf
  File "/usr/lib/python3/dist-packages/google/protobuf/__init__.py", line 37, in <module>
    __import__('pkg_resources').declare_namespace(__name__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 646, in _build_master
    ws = cls()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 639, in __init__
    self.add_entry(entry)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 695, in add_entry
    for dist in find_distributions(entry, True):
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2012, in find_on_path
    if len(os.listdir(fullpath)) == 0:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/qrcode-6.0.dist-info'
5  Bitcoin / Electrum / Re: PermissionError: [Errno 13] Permission denied: .... but only under normal user on: May 28, 2018, 09:58:56 AM

It seems that for whatever reason, running as a non-root user, you don't have access to read the pbkdf2.py python library... Huh Have you checked the permissions on both the directory (/usr/local/lib/python3.5/dist-packages/) and the file itself?

How did you originally install Python... and the packages? Did you use pip?


Right, so the version that I referred to in my original post was from the Debian Stretch backports, the most recent avaialble in the Debian world. I prefer to stick to the Debian way as using pip3 messes up the python environment with libraries etc that end up conflicting with apt-get.

That said, I also tried the pip3 way as described on the Electrum website with the most recent version. That too failed and was giving me the exact same problems. Yes, I think it is a permissions problem but I thought pip3 install would take care of that? I've just checked permissions and I think they a bit messed up on that folder. See below, does this look alright to you? BTW, my user is member of the staff group. You can see that most of the stuff in that folder was installed yesterday.

lun mag 28, 10:48 ][user@machine:~]ls -al /usr/local/lib/python3.5/dist-packages/
totale 132K
4,0K drwxrwsr-x 20 root staff 4,0K mag 27 04:20 .
4,0K drwxrwsr-x  3 root staff 4,0K ott 14  2017 ..
4,0K drwx--S---  4 root staff 4,0K mag 27 03:22 dns
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 dnspython-1.15.0.dist-info
4,0K drwx--S---  3 root staff 4,0K mag 27 03:22 ecdsa
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 ecdsa-0.13.dist-info
4,0K drwx--S---  5 root staff 4,0K mag 27 03:22 electrum
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 Electrum-3.1.3.dist-info
4,0K drwx--S---  3 root staff 4,0K mag 27 03:22 google
4,0K drwx--S---  3 root staff 4,0K mag 27 03:22 jsonrpclib
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 jsonrpclib_pelix-0.3.1.dist-info
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 pbkdf2-1.3.dist-info
 12K -rw-------  1 root staff 9,9K mag 27 03:22 pbkdf2.py
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 protobuf-3.5.2.post1.dist-info
4,0K -rw-------  1 root staff  539 mag 27 03:22 protobuf-3.5.2.post1-py3.5-nspkg.pth
4,0K drwx--S---  3 root staff 4,0K mag 27 03:22 pyaes
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 pyaes-1.6.1.dist-info
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 __pycache__
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 PySocks-1.6.8.dist-info
4,0K drwx--S---  5 root staff 4,0K mag 27 03:22 qrcode
4,0K drwx--S---  2 root staff 4,0K mag 27 03:22 qrcode-6.0.dist-info
4,0K -rw-------  1 root staff 2,9K mag 27 03:22 sockshandler.py
 32K -rwxr-xr-x  1 root staff  32K mag 27 03:22 socks.py
4,0K drwx--S---  3 root staff 4,0K mag 27 03:22 usr
6  Bitcoin / Armory / Armory 0.96 on Debian Stretch on: May 27, 2018, 12:14:14 PM
Hi folks,

appears that Armory is not in the official stable realease of Debian. While I accept that being a python programme, the Ubuntu package on https://www.bitcoinarmory.com/ will do the job. However, I've not found a decent installation step by step guide for Debain stretch. Once downloaded the deb from bitcoinarmory, and verfied the signature, how do I go about installing the dependencies via apt-get? I'm not a fan of using pip3, as I'm not a developer and everytime i use pip3 I destroy my python installation on my system due to the conflicts that are created with libs with apt-get.

Anyone aware of a decent step by step guide?

Thanks
7  Bitcoin / Electrum / PermissionError: [Errno 13] Permission denied: .... but only under normal user on: May 27, 2018, 10:24:31 AM
Hi,
I've downloaded the electrum version 3.0.6-1 that is on Debian Stretch backports. There is no way to get it fired up under a normal user. The errors are below. The version of python installed on my system is 3.5.3-1. I find it strange that it fires up is i run "sudo electrum -v" but it doesn't if I don't. It's clearly a question of permissions but can't work out if this is a electrum issue of not. Any pointers?

Thanks

(base) [dom mag 27, 05:58 ][user@system1:~]electrum -v
Traceback (most recent call last):
File "/usr/bin/electrum", line 80, in
check_imports()
File "/usr/bin/electrum", line 64, in check_imports
import pbkdf2
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 669, in exec_module
File "", line 774, in get_code
File "", line 826, in get_data
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/pbkdf2.py'
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!