Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'GlobalPassword' is not defined #35

Open
marcodesantis71 opened this issue Feb 1, 2021 · 1 comment
Open

NameError: name 'GlobalPassword' is not defined #35

marcodesantis71 opened this issue Feb 1, 2021 · 1 comment

Comments

@marcodesantis71
Copy link

Hi,

I have migrate from Ubuntu 16.04 to Ubuntu 20.04 and now it doesn't work.

When I try to learn command I receive this error:

Exception happened during processing of request from ('192.168.123.14', 59197)
Traceback (most recent call last):
File "server.py", line 51, in do_GET
if GlobalPassword:
NameError: name 'GlobalPassword' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.8/socketserver.py", line 316, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.8/socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.8/socketserver.py", line 720, in init
self.handle()
File "server.py", line 44, in handle
self.handle_one_request()
File "/usr/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "server.py", line 60, in do_GET
self.messageHandler()
File "server.py", line 121, in messageHandler
result = learnCommand(commandName,deviceName)
File "server.py", line 302, in learnCommand
deviceKey = device.key
AttributeError: 'rm' object has no attribute 'key'

Where is the problem?

@radinsky
Copy link
Owner

radinsky commented Oct 6, 2021

I would suggest trying previous version before password was introduced: checkout on 4cd34e9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants