Git Product home page Git Product logo

Comments (11)

luizsoares avatar luizsoares commented on July 4, 2024

I checked 1st virtual console where I started X and there I see a syntax error at line 134:

def read(self):
    configuration = ""
    if (os.path.exists(self.configuration_file) and 
        os.path.isfile(self.configuration_file)):

        in_file = open(self.configuration_file,"r")
        configuration = self.custom_decode(json.load(in_file))
        in_file.close()

    else:

134: print "Configuration file not exists"
configuration = self.custom_decode(json.loads('{"Root": []}'))

    return configuration

from connectionmanager2.

sciancio avatar sciancio commented on July 4, 2024

Hi,
probably you have python linked to python3 executable. Can you launch, from shell, the following command?

python2 /home//.local/share/gnome-shell/extensions/[email protected]/connmgr.py

with = user on your linux box.

If it's work correctly, then the problem is version python (it is required version 2). You can fix this bug substituting in extension.js file, only line 89 like shown:

originale line 89: Util.spawnCommandLine('python ' + this._prefFile);

new line 89: Util.spawnCommandLine('python2 ' + this._prefFile);

and reload extension.

I think to fix this bug in the next release.

from connectionmanager2.

luizsoares avatar luizsoares commented on July 4, 2024
  • 797 - ~ % python2 /home/luiz/.local/share/gnome-shell/extensions/[email protected]/connmgr.py
    /usr/lib/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
    import gobject._gobject
    Traceback (most recent call last):
    File "/home/luiz/.local/share/gnome-shell/extensions/[email protected]/connmgr.py", line 7, in
    import gconf
    ImportError: No module named gconf

Probably I'm missing some package here...

from connectionmanager2.

luizsoares avatar luizsoares commented on July 4, 2024

ok arch users need python2-gconf. Now I can run your command no problems, however the instance started by gnome-shell seems to ignore my alteration in the shebang line to /usr/bin/env python2, is it cached somewhere?

from connectionmanager2.

sciancio avatar sciancio commented on July 4, 2024

You can reload extension. You can try these ways:

  • ALT-F2 + 'r' command
  • Logout, Login

On 12/07/2011 07:05 PM, luizsoares wrote:

ok arch users need python2-gconf. Now I can run your command no problems, however the instance started by gnome-shell seems to ignore my alteration in the shebang line to /usr/bin/env python2, is it cached somewhere?


Reply to this email directly or view it on GitHub:
#5 (comment)

from connectionmanager2.

luizsoares avatar luizsoares commented on July 4, 2024

Ah I understand it now. The CM icon on the panel is controlled by extension.js and not your python script. I changed the invocation on line 89 to python2, problem solved. Thanks!

from connectionmanager2.

ALSai avatar ALSai commented on July 4, 2024

Hi,

On archlinux, this still doesn't work.

I have to change line 114 of extension.js file to replace python by python2.
Obviously, calling python .... does'nt work but don't catch any Exception.

Can't you do the reverse order?
(Try python2 and if it fails, catch the exception to launch python?)

from connectionmanager2.

masteinhauser avatar masteinhauser commented on July 4, 2024

I'm on Arch Linux and was hitting the same issue that @ALSai was hitting. I made the change to try python2 first and then fall back to python which fixed my problem. Just a thought, but it seems like that should be fine to do.

from connectionmanager2.

sciancio avatar sciancio commented on July 4, 2024

Hi masteinhauser, have you tried code on github or you have installed it from extensions.gnome.org site?
The code on github is newer and it would be works correctly. On e.g.o. site are pending review.

from connectionmanager2.

masteinhauser avatar masteinhauser commented on July 4, 2024

Ah, okay. I installed it from extensions.gnome.org which would explain it. Thanks for commenting back!

from connectionmanager2.

arfett avatar arfett commented on July 4, 2024

I have the current version of Connection Manager from the gnome extensions website and the Settings menu will not open for me. Running Arch Linux x64 with gnome 3.6. It wasn't working initially after installing and I installed the python2-gconf package which made it work and then for no apparent reason (was just web browsing) it stopped opening again. How can I troubleshoot why it won't open?

from connectionmanager2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.