I am new to Linux and also to Python. I am trying to run Pyglossary on Python 3.10.6 (preinstalled) on ubuntu 22.04.1.
I installed it using pip (pip install --upgrade pyglossary). There was a warning that it had defaulted to a user installation and that /home/linux/.local/bin wasn't on the path. I added it to the path.
When I try to run it I get the following error message:
[CRITICAL] Traceback (most recent call last):
File "/home/linux/.local/bin/pyglossary", line 8, in <module>
sys.exit(main())
File "/home/linux/.local/lib/python3.10/site-packages/pyglossary/ui/main.py", line 790, in main
sys.exit(0 if ui_module.UI().run(**runKeywordArgs) else 1)
File "/home/linux/.local/lib/python3.10/site-packages/pyglossary/ui/ui_gtk.py", line 962, in __init__
screenW, screenH = getWorkAreaSize()
File "/home/linux/.local/lib/python3.10/site-packages/pyglossary/ui/ui_gtk.py", line 88, in getWorkAreaSize
rect = monitor.get_workarea()
AttributeError: 'NoneType' object has no attribute 'get_workarea'
I had previously tried to install it using both pip and sudo apt commands but later ran apt remove and pip uninstall so hopefully that's not connected.
I have no idea what to do next - any advice?