Page 1 of 1

Problem with freespeechme on linux

Posted: Fri Feb 21, 2014 4:44 am
by risho
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?

Re: Problem with freespeechme on linux

Posted: Fri Feb 21, 2014 8:04 am
by Ben
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".

Re: Problem with freespeechme on linux

Posted: Fri Feb 21, 2014 9:01 am
by risho
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?

Re: Problem with freespeechme on linux

Posted: Sun Feb 23, 2014 3:48 am
by biolizard89
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.

Re: Problem with freespeechme on linux

Posted: Mon Mar 03, 2014 7:05 pm
by khal
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