Skip to content

Error when running setupAccess.py #30

@PeterHickson

Description

@PeterHickson

When running the command "sudo python setupAccess.py", I get this error:

Traceback (most recent call last):
File "/home/pi/MagicMirror/modules/MMM-fitbit/python/setupAccess.py", line 4, in
import cherrypy
File "/usr/local/lib/python3.9/dist-packages/cherrypy/init.py", line 64, in
from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect
File "/usr/local/lib/python3.9/dist-packages/cherrypy/_cperror.py", line 118, in
from cgi import escape as _escape
ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.9/cgi.py)

I am on python version 3.9.2 which may be part of the problem but am not sure how to roll it back to an older version for the sake of this module without breaking anything else on my raspberry pi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions