TabPad icon indicating copy to clipboard operation
TabPad copied to clipboard

..Syntax error?

Open ghost opened this issue 5 years ago • 2 comments

I would preface this saying I followed the guide 2 or 3 times, I might be missing something that shoulda been common sense. Haven't had a linux daily driver in a long time. Ubuntu 19.10.

 vamp@HP-x2-Detachable-10-p0XX:~$ python TabPad.py
 python: can't open file 'TabPad.py': [Errno 2] No such file or directory
 vamp@HP-x2-Detachable-10-p0XX:~$ cd /home/vamp/Applications/Python
 vamp@HP-x2-Detachable-10-p0XX:~/Applications/Python$ python TabPad.py
   File "TabPad.py", line 875
     print ("\nTerminated Autorepeat Processes:", *set(proc_list), sep=' ')
                                                  ^
 SyntaxError: invalid syntax
 vamp@HP-x2-Detachable-10-p0XX:~/Applications/Python$ 

Also I honestly don't know where I was meant to extract that zip so its within path.

 ~/.bashrc
 export PYTHONPATH="${PYTHONPATH}:/home/vamp/Applications/Python"

But I'm excited this could be just what I need. Any help is very appreciated.

ghost avatar Jan 28 '20 22:01 ghost

Please make the file executable if it is not already.

You can do it from right click properties menu of a file or you can run the commnad below:

chmod +x filename

Also run the file with python3. So in all, you may have to run these two commands for the file to work.

chmod +x TabPad.py sudo python3 TabPad.py

Let me know if the issue persists.

On Wed, 29 Jan, 2020, 3:45 AM Keith, [email protected] wrote:

I would preface this saying I followed the guide 2 or 3 times, I might be missing something that shoulda been common sense. Haven't had a linux daily driver in a long time. Ubuntu 19.10.

vamp@HP-x2-Detachable-10-p0XX:$ python TabPad.py python: can't open file 'TabPad.py': [Errno 2] No such file or directory vamp@HP-x2-Detachable-10-p0XX:$ cd /home/vamp/Applications/Python vamp@HP-x2-Detachable-10-p0XX:/Applications/Python$ python TabPad.py File "TabPad.py", line 875 print ("\nTerminated Autorepeat Processes:", *set(proc_list), sep=' ') ^ SyntaxError: invalid syntax vamp@HP-x2-Detachable-10-p0XX:/Applications/Python$

Also I honestly don't know where I was meant to extract that zip so its within path.

~/.bashrc export PYTHONPATH="${PYTHONPATH}:/home/vamp/Applications/Python" But I'm excited this could be just what I need. Any help is very appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nitg16/TabPad/issues/14?email_source=notifications&email_token=ACVZEQJAQUCN3SESCGGFDIDRACU65A5CNFSM4KM2WEFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJLTQ5Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVZEQPWT6PNKVKVZBQ6PVDRACU65ANCNFSM4KM2WEFA .

nitg16 avatar Jan 29 '20 00:01 nitg16

Those 2 commands and I got this:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Traceback (most recent call last):
  File "TabPad.py", line 883, in <module>
    main()
  File "TabPad.py", line 879, in main
    ex = TabPad()
  File "TabPad.py", line 51, in __init__
    self.py_mouse = PyMouse()
  File "/usr/local/lib/python3.7/dist-packages/pymouse/x11.py", line 86, in __init__
    self.display = Display(display)
  File "/usr/local/lib/python3.7/dist-packages/Xlib/display.py", line 89, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/local/lib/python3.7/dist-packages/Xlib/display.py", line 71, in __init__
    protocol_display.Display.__init__(self, *args, **keys)
  File "/usr/local/lib/python3.7/dist-packages/Xlib/protocol/display.py", line 166, in __init__
    raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n'

If I use python I get the same syntax error as before, Is the location of this relevant? My home directory is a microSD..

ghost avatar Jan 30 '20 18:01 ghost