Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...
  • Page:
  • 1
  • 2

TOPIC: indi-web -v --> not starting [SOLVED]

indi-web -v --> not starting [SOLVED] 8 months 3 weeks ago #21963

I have installed indi-web from github.com/knro/indiwebmanager with the command: $ pip install indiweb
Trying to launch it produces the following error:
root@heidenrod-obs:~# indi-web -v
Traceback (most recent call last):
  File "/usr/local/bin/indi-web", line 7, in <module>
    from indiweb.main import main
  File "/usr/local/lib/python3.5/dist-packages/indiweb/main.py", line 49, in <module>
    collection = DriverCollection(args.xmldir)
  File "/usr/local/lib/python3.5/dist-packages/indiweb/driver.py", line 30, in __init__
    self.parse_drivers()
  File "/usr/local/lib/python3.5/dist-packages/indiweb/driver.py", line 43, in parse_drivers
    family = group.attrib['group']
KeyError: 'group'
root@heidenrod-obs:~#
root@heidenrod-obs:~# which python
/usr/bin/python
root@heidenrod-obs:~# ll /usr/bin/python
lrwxrwxrwx 1 root root 9 Dec 10  2015 /usr/bin/python -> python2.7*
root@heidenrod-obs:~#


I'm sure it's something simple that I can't see, if anyone could point me in the right direction please, that would be appreciated.

Please Log in or Create an account to join the conversation.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+
Last Edit: by Gonzothegreat.

indi-web -v --> not starting 8 months 3 weeks ago #21972

  • xsnrg
  • xsnrg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 229
  • Karma: 2
  • Thank you received: 45
It looks even though your symlink is pointing at 2.7, 3.5 is being used to execute indi-web. It also appears you might have a custom python installed as the path is in /usr/local.

Please Log in or Create an account to join the conversation.

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

indi-web -v --> not starting 8 months 3 weeks ago #21977

I did't have python-pip installed, just the one for python 3.5

Even now it's still not working.
root@heidenrod-obs:~# indi-web -v
Traceback (most recent call last):
  File "/usr/local/bin/indi-web", line 7, in <module>
    from indiweb.main import main
  File "/usr/local/lib/python2.7/dist-packages/indiweb/main.py", line 49, in <module>
    collection = DriverCollection(args.xmldir)
  File "/usr/local/lib/python2.7/dist-packages/indiweb/driver.py", line 30, in __init__
    self.parse_drivers()
  File "/usr/local/lib/python2.7/dist-packages/indiweb/driver.py", line 43, in parse_drivers
    family = group.attrib['group']
KeyError: 'group'
root@heidenrod-obs:~# python -V
Python 2.7.12
root@heidenrod-obs:~#


edit:
maybe it's the pip version itself too?
root@heidenrod-obs:/home# pip3 -V
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)
root@heidenrod-obs:/home# pip2 -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
root@heidenrod-obs:/home#

Please Log in or Create an account to join the conversation.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+
Last Edit: by Gonzothegreat.

indi-web -v --> not starting 8 months 3 weeks ago #21980

  • xsnrg
  • xsnrg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 229
  • Karma: 2
  • Thank you received: 45
I found this for your particular error, though it seems to have been fixed along the way. You might try to do a pip uninstall indiweb, and make sure the system is cleansed of all things indi-web, then pip install again with the 2.7 pip.

indilib.org/forum/general/1653-error-sta...g-servermanager.html

example of working:

$ indi-web -v
INFO: pkill indiserver
Bottle v0.12.9 server starting up (using WSGIRefServer())...
Listening on http://0.0.0.0:8624/
Hit Ctrl-C to quit.

Please Log in or Create an account to join the conversation.

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI
Last Edit: by xsnrg. Reason: working output

indi-web -v --> not starting 8 months 3 weeks ago #21981

Thanks for the help and link, I have cleansed indi-web and reinstalled it again with pip2.7 but no joy.
Going to try to debug it somehow

Please Log in or Create an account to join the conversation.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

indi-web -v --> not starting 8 months 3 weeks ago #21983

debug output:
root@heidenrod-obs:/usr/local/bin# pdb indi-web 
> /usr/local/bin/indi-web(4)<module>()
-> import re
(Pdb) c
Traceback (most recent call last):
  File "/usr/lib/python2.7/pdb.py", line 1314, in main
    pdb._runscript(mainpyfile)
  File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript
    self.run(statement)
  File "/usr/lib/python2.7/bdb.py", line 400, in run
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "indi-web", line 4, in <module>
    import re
  File "/usr/local/lib/python2.7/dist-packages/indiweb/main.py", line 49, in <module>
    collection = DriverCollection(args.xmldir)
  File "/usr/local/lib/python2.7/dist-packages/indiweb/driver.py", line 30, in __init__
    self.parse_drivers()
  File "/usr/local/lib/python2.7/dist-packages/indiweb/driver.py", line 43, in parse_drivers
    family = group.attrib['group']
KeyError: 'group'
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /usr/local/lib/python2.7/dist-packages/indiweb/driver.py(43)parse_drivers()
-> family = group.attrib['group']
(Pdb) l
 38  	        for fname in self.files:
 39  	            tree = ET.parse(fname)
 40  	            root = tree.getroot()
 41  	
 42  	            for group in root:
 43  ->	                family = group.attrib['group']
 44  	
 45  	                for device in group:
 46  	                    label = device.attrib["label"]
 47  	                    skel = device.attrib.get("skel", None)
 48  	                    drv = device[0]
(Pdb)

Please Log in or Create an account to join the conversation.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

indi-web -v --> not starting 8 months 3 weeks ago #21984

  • xsnrg
  • xsnrg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 229
  • Karma: 2
  • Thank you received: 45
It looks like you are running it as root. Not going to debate pros or cons, I saw the other thread :) But... in root's home, in the .indi hidden folder ( cd ~/.indi ), do you have a file called profiles.db ? If you do, try copying it somewhere else or renaming it and re-trying indi-web -v.

Please Log in or Create an account to join the conversation.

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

indi-web -v --> not starting 8 months 3 weeks ago #21985

I have no profiles.db in the /root/.indi folder and I also ran indi-web as my normal user (non root). Still the same issue.
This is a weird one :dry:

Please Log in or Create an account to join the conversation.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

indi-web -v --> not starting 8 months 3 weeks ago #21986

  • xsnrg
  • xsnrg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 229
  • Karma: 2
  • Thank you received: 45
Well, bummer, but you always start with the easy stuff first...

Can look for something missing by trying strace... Like 'strace -f indi-web -v' That will output a lot of stuff, but somewhere in there should be your error. You might get lucky and see something right before it.

Please Log in or Create an account to join the conversation.

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

indi-web -v --> not starting 8 months 3 weeks ago #21987

Even strace doesn't give me much info.
_llseek(4, 0, [0], SEEK_SET)            = 0
_llseek(4, 0, [0], SEEK_CUR)            = 0
read(4, "#!/usr/bin/python\n\nimport os\nimp"..., 8192) = 2426
close(4)                                = 0
write(2, "    family = group.attrib['group"..., 35    family = group.attrib['group']
) = 35
write(2, "KeyError: 'group'\n", 18KeyError: 'group'
)     = 18
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0xb6ee2261}, {0x19c34d, [], SA_RESTORER, 0xb6ee2261}, 8) = 0
close(3)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++

Please Log in or Create an account to join the conversation.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

indi-web -v --> not starting 8 months 3 weeks ago #21988

  • xsnrg
  • xsnrg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 229
  • Karma: 2
  • Thank you received: 45
try adding -s 1024 to the strace command line. strace -f -s 1024 indi-web -v

This is one of those things that somebody that has been in there just knows about and says oh, you "need to just do this" :)

Please Log in or Create an account to join the conversation.

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

indi-web -v --> not starting 8 months 3 weeks ago #21989

xsnrg wrote: try adding -s 1024 to the strace command line. strace -f -s 1024 indi-web -v

This is one of those things that somebody that has been in there just knows about and says oh, you "need to just do this" :)




oh, more output :woohoo:
read(4, "#!/usr/bin/python\n\nimport os\nimport xml.etree.ElementTree as ET\n\n# Default INDI data directory\nINDI_DATA_DIR = \"/usr/share/indi/\"\n\n\nclass DeviceDriver:\n    \"\"\"Device driver container\"\"\"\n\n    def __init__(self, name, label, version, binary, family, skel=None):\n        self.name = name\n        self.label = label\n        self.skeleton = skel\n        self.version = version\n        self.binary = binary\n        self.family = family\n        self.role = \"\"\n\n\nclass DriverCollection:\n    \"\"\"A collection of drivers\"\"\"\n\n    def __init__(self, path=INDI_DATA_DIR):\n        self.path = path\n        self.drivers = []\n        self.files = []\n        self.parse_drivers()\n\n    def parse_drivers(self):\n        for fname in os.listdir(self.path):\n            # Skip Skeleton files\n            if fname.endswith(\".xml\") and \"_sk\" not in fname:\n                self.files.append(os.path.join(self.path, fname))\n\n        for fname in self.files:\n            tree = ET.parse(fname)\n            root = tree.getroot()\n\n            for group "..., 8192) = 2426
close(4)                                = 0
write(2, "    family = group.attrib['group']\n", 35    family = group.attrib['group']
) = 35
write(2, "KeyError: 'group'\n", 18KeyError: 'group'
)     = 18
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0xb6e11261}, {0x19c34d, [], SA_RESTORER, 0xb6e11261}, 8) = 0
close(3)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++


had to man strace to check out this -s, pretty cool, I shall use this switch at work when necessary.
-s strsize Specify the maximum string size to print (the default is 32). Note that filenames are not considered strings and are always printed in full.

Please Log in or Create an account to join the conversation.

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+
  • Page:
  • 1
  • 2
Time to create page: 0.149 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica