You are not logged in.

#1 2016-06-15 19:48:43

goamech
Member
Registered: 2016-06-15
Posts: 4

How to start Pytyle2 in updated Arch?

Hi there.
I'm in luv with Arch linux.

But I'm in big trouble with attempts to start Pytyle2 in Arch.

 ~ openbox --version                                                            
Openbox 3.6.1

~ python2 -V                                                                                                                        
Python 2.7.11

 ~ pytyle2                                                                      
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pt/ptxcb/window.py", line 394, in set_event_masks
    [event_masks]
  File "/usr/lib/python2.7/site-packages/xcb/xproto.py", line 1408, in ChangeWindowAttributes
    for elt in xcb.Iterator(value_list, 15, 'value_list', False):
Exception: Too few items in 'value_list' list (expect 15).

Traceback (most recent call last):
  File "/usr/bin/pytyle2", line 27, in <module>
    import pt.state as state
  File "/usr/lib/python2.7/site-packages/pt/state.py", line 272, in <module>
    init()
  File "/usr/lib/python2.7/site-packages/pt/state.py", line 20, in init
    load_properties()
  File "/usr/lib/python2.7/site-packages/pt/state.py", line 109, in load_properties
    update_property(pname)
  File "/usr/lib/python2.7/site-packages/pt/state.py", line 155, in update_property
    m()
  File "/usr/lib/python2.7/site-packages/pt/state.py", line 199, in update_NET_CURRENT_DESKTOP
    properties['_NET_CURRENT_DESKTOP'] = ptxcb.XROOT.get_current_desktop()
  File "/usr/lib/python2.7/site-packages/pt/ptxcb/window.py", line 564, in get_current_desktop
    return self._get_property('_NET_CURRENT_DESKTOP')[0]
TypeError: 'NoneType' object has no attribute '__getitem__'

Also tried installation and launching with python2.6.

Pytyle2 throw same error.

Openbox + pytyle2 worked flawless on prevision setup (mint-cinnamon 17.3 / python 2.7).
Have almost same trouble with terminal "Terra"..  But it is not such a big deal for me.
I think something with python version, or some tweaky python package didn't list in deps?...

Any advice will be appreciated.
Thanks smile

Offline

#2 2016-06-15 20:45:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: How to start Pytyle2 in updated Arch?

What is in the output of head -1 $(which pytyle2)
?
Is it something like #! /usr/bin/python
?

Try running using the command python2 pytle2


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-06-15 23:08:18

goamech
Member
Registered: 2016-06-15
Posts: 4

Re: How to start Pytyle2 in updated Arch?

$ head -1 $(which pytyle2)
#!/usr/bin/python2.7

ls -all /usr/bin/python* 
lrwxrwxrwx 1 root root     7 Mar  3 11:44 /usr/bin/python -> python3
lrwxrwxrwx 1 root root     9 Mar 31 09:30 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root  6280 Mar 31 09:30 /usr/bin/python2.7
-rwxr-xr-x 1 root root  1681 Mar 31 09:30 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root    16 Mar 31 09:30 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root     9 Mar  3 11:44 /usr/bin/python3 -> python3.5
-rwxr-xr-x 2 root root 13040 Mar  3 11:44 /usr/bin/python3.5
lrwxrwxrwx 1 root root    17 Mar  3 11:44 /usr/bin/python3.5-config -> python3.5m-config
-rwxr-xr-x 2 root root 13040 Mar  3 11:44 /usr/bin/python3.5m
-rwxr-xr-x 1 root root  3148 Mar  3 11:44 /usr/bin/python3.5m-config
lrwxrwxrwx 1 root root    16 Mar  3 11:44 /usr/bin/python3-config -> python3.5-config
lrwxrwxrwx 1 root root    14 Mar  3 11:44 /usr/bin/python-config -> python3-config

I have tried. As you can see it is same python.

Seems some of new updates bring this issue.
Other users recreate this error on different WMs (example 1 , example 2)

Last edited by goamech (2016-06-15 23:28:12)

Offline

#4 2016-06-15 23:25:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: How to start Pytyle2 in updated Arch?

Yeah, based on that output, I would not expect it to work any differently.  The script seems to be set up properly to invoke Python 2.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB