cinnamon-menu-editor does not start

Created on 18 Nov 2019  路  10Comments  路  Source: linuxmint/cinnamon

```

  • Cinnamon version (cinnamon --version)
    Cinnamon 4.2.4

    • Please specify if you are using the daily builds PPA (https://launchpad.net/~linuxmint-daily-build-team/+archive/ubuntu/daily-builds).

      NO

  • Distribution - (Mint 17.2, Arch, Fedora 25, etc...)
    Arch
  • Graphics hardware and driver used
    Nvidia G440 / nvidia-390xx 390.132-1
  • 32 or 64 bit
    64 bit
  • Attach /home//.xsession-errors, or /var/log/syslog
    `
    xsession-errors.tar.gz

``

Issue
cinnamon-menu-editor does not start

Steps to reproduce
[xxxxxxxx ~]$ cinnamon-menu-editor
Traceback (most recent call last):
File "/usr/bin/cinnamon-menu-editor", line 29, in
main()
File "/usr/bin/cinnamon-menu-editor", line 24, in main
app.run()
File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MainWindow.py", line 66, in run
self.loadMenus()
File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MainWindow.py", line 201, in loadMenus
self.loadMenu({ None: None })
File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MainWindow.py", line 212, in loadMenu
name = cgi.escape(menu.get_name())
AttributeError: module 'cgi' has no attribute 'escape'

Expected behaviour
cinnamon editor should open

Other information

BUG

All 10 comments

@msjr65 what happens when you run cinnamon-menu-editor?

This is what I have shown under steps to reproduce. It is ending up with error AttributeError: module 'cgi' has no attribute 'escape'

what version of Python are you running?

@claudiux is this related to Python 3.2 deprecating cgi.escape() for html.escape() ?

8959

@icarter09 It seems to be that.

8956

@claudiux is this related to Python 3.2 deprecating cgi.escape() for html.escape() ?

8959

Python Version is 3.8. Upgraded from 3.7 through regular pacman update on November 15 and indeed I have the impression that since then the issue started occuring.

@eli-schwartz

This is fixed by 058e3a1e7dd26eca4bacb37b7c20c1e9d430de6a, which is not yet tagged and released.

Thank you @eli-schwartz
Fixed this myself for the time being by adjusting the .py files as outlined in 058e3a1

Was this page helpful?
0 / 5 - 0 ratings