Problem with freespeechme on linux

Post Reply
risho
Posts: 2
Joined: Fri Feb 21, 2014 4:36 am
os: linux

Problem with freespeechme on linux

Post by risho » Fri Feb 21, 2014 4:44 am

I'm running arch linux and I'm trying to run freespeechme and it isn't working

Code: Select all

[anonymous@Anonymous ~]$ firefox -console

(process:2970): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Linux in use
namecoind path: /home/anonymous/.mozilla/firefox/nijhsgnx.default/extensions/convergence@dot-bit.org/daemons/namecoind/linux/x64/namecoind
namecoind exists: true
namecoind profile dir: /home/anonymous/.convergence-namecoin
Linux in use
namecoind started.
Linux in usenmcontrol path: /home/anonymous/.mozilla/firefox/nijhsgnx.default/extensions/convergence@dot-bit.org/daemons/nmcontrol/python/cd_launcher.sh
nmcontrol exists: true
Linux in use
Linux in use
nmcontrol started.
  File "./nmcontrol.py", line 63
    print "Exception when loading "+modType, module, ":", e
                                  ^
it would appear the problem is it is failing to run ./nmcontrol.py

i googled the error and it seems that it's trying to run it with python3 which is the default "python" on arch. python 2 isn't run by using python it's run by using python2. How can i fix this?

Ben
Posts: 65
Joined: Fri Dec 20, 2013 2:22 pm
os: linux

Re: Problem with freespeechme on linux

Post by Ben » Fri Feb 21, 2014 8:04 am

I had this same problem when using nmcontrol, and I opened it as an issue a couple of months ago but got no response.

You can fix it by installing the python2 package (if you don't already have it), and then change the first line of nmcontrol.py to read "#!/usr/bin/python2" instead of "#!/usr/bin/python".
N9kVqK8zrgtHvD6kD4yk3UgM2dkP2NykDr

risho
Posts: 2
Joined: Fri Feb 21, 2014 4:36 am
os: linux

Re: Problem with freespeechme on linux

Post by risho » Fri Feb 21, 2014 9:01 am

Ben wrote:I had this same problem when using nmcontrol, and I opened it as an issue a couple of months ago but got no response.

You can fix it by installing the python2 package (if you don't already have it), and then change the first line of nmcontrol.py to read "#!/usr/bin/python2" instead of "#!/usr/bin/python".
thanks that worked like a dream. now i'm having the problem of

Code: Select all

ERROR: Unable to start DNS server ([Errno 13] Permission denied)
 ERROR: Unable to start HTTP server ([Errno 13] Permission denied)


I ran it again as root and it worked just fine, which I'm obviously not going to just run firefox as root, so do you know what groups i need to add my user account to?

biolizard89
Posts: 1997
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Problem with freespeechme on linux

Post by biolizard89 » Sun Feb 23, 2014 3:48 am

Ben wrote:I had this same problem when using nmcontrol, and I opened it as an issue a couple of months ago but got no response.

You can fix it by installing the python2 package (if you don't already have it), and then change the first line of nmcontrol.py to read "#!/usr/bin/python2" instead of "#!/usr/bin/python".
Thanks for the heads up, I'll see if we can get that fixed in nmcontrol.

@risho: the HTTP and DNS servers aren't needed by FreeSpeechMe, I'll look into disabling them so that the error doesn't show up.
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: Problem with freespeechme on linux

Post by khal » Mon Mar 03, 2014 7:05 pm

I've pushed a patch here :
https://github.com/namecoin/nmcontrol/pull/14

I hope every most distribution are using "python2" as binary name :p
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

Post Reply