gillescastel / inkscape-shortcut-manager

Inkscape shorcut manager
MIT License
365 stars 100 forks source link

Inkscape-shortcut-manager install issue. #14

Open ivannomad opened 4 years ago

ivannomad commented 4 years ago

Hi! I've cloned repository inkscape-shortcut-manager in this path ~/.config/inkscape-shortcut-manager. When I go to this directory and run command python3 main.py in terminal, I receive next error in log: RecursionError: maximum recursion depth exceeded while calling a Python object How to fix this issue?

simon-fredrich commented 4 years ago

Hi! I've cloned repository inkscape-shortcut-manager in this path ~/.config/inkscape-shortcut-manager. When I go to this directory and run command python3 main.py in terminal, I receive next error in log: RecursionError: maximum recursion depth exceeded while calling a Python object How to fix this issue?

I encountered the same issue. Even when I installed all the dependencies and so on.

Best regards Simon

simon-fredrich commented 4 years ago

I found the solution. You have to save the repository to another location - i.e. in a libraries folder of some sort - and call the main.py script from there. I had to install urxvt with the command sudo apt install rxvt-unicode. When the script is running you just have to open another inkscape window and you are good to go. I hope this was helpful and many thanks to gillescastel for developing this awesome latex-vim suite! I really enjoy this kind of stuff.

Best regards Simon

ivannomad commented 4 years ago

I found the solution. You have to save the repository to another location - i.e. in a libraries folder of some sort - and call the main.py script from there. I had to install urxvt with the command sudo apt install rxvt-unicode. When the script is running you just have to open another inkscape window and you are good to go. I hope this was helpful and many thanks to gillescastel for developing this awesome latex-vim suite! I really enjoy this kind of stuff.

Best regards Simon

I saved the repository to another location (to home directory) and run main.py from there, but I receive the same issue. However, if I remove folder ~/.config/inkscape-shortcut-manager and run main.py again, I receive in terminal log this: {'style': PosixPath('/home/user/.config/inkscape-shortcut-manager/styles'), 'object': PosixPath('/home/user/.config/inkscape-shortcut-manager/objects')}

simon-fredrich commented 4 years ago

I replicated the error and when the script run and I opened a inkscape instance I got this error: FileNotFoundError: [Errno 2] No such file or directory: 'urxvt'. Have you tried sudo apt install rxvt-unicode? You also need xclip, so if you do not have it install it with sudo apt-get install xclip and you should be fine.

ivannomad commented 4 years ago

rxvt-unicode & xclip also installed on my system. But problem also exist.

simon-fredrich commented 4 years ago

If it runs {'style': PosixPath('/home/user/.config/inkscape-shortcut-manager/styles'), 'object': PosixPath('/home/user/.config/inkscape-shortcut-manager/objects')}` and then does nothing else then you are fine.

balazsxyz commented 5 months ago

Hi! i encountered the same problem as @ivannomad . Then installed rxvt-unicode. Then, based on the infos before my comment i managed to get to the point:

"If it runs {'style': PosixPath('/home/user/.config/inkscape-shortcut-manager/styles'), 'object': PosixPath('/home/user/.config/inkscape-shortcut-manager/objects')}` and then does nothing else then you are fine." - by @simon-fredrich

then i issued python3 main.py in the terminal and started inkscape after pressing the "windows" key typed "inkscape" and hit "enter". new document, bit of clicky-clicky until the canvas. Made a rectangle by "r" keystroke. Trying to see whether Castell's keychords work, does not look like.

What am i doing wrong? Please help me.

Fringe3141 commented 5 months ago

I use ubuntu and it only works when I use Xorg and not wayland. Under your "If it runs {'style': PosixPath('/home/user/.config/inkscape-shortcut-manager/styles'), 'object': PosixPath('/home/user/.config/inkscape-shortcut-manager/objects')}`

there also needs to be a "New window!" message, otherwise it probably isn`t working.