Comments (7)
Please edit your report and format the code with https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code
from xled.
Done - sorry about that!
from xled.
I can not manage to repeat it here - with python 3.6 it works fine. However, I notice something fishy in auth.py - two incompatible ways of import. Maybe python 3.8 is more picky with such things.
@bodagetta , please try to remove line 31 in auth.py, which reads from xled.security import generate_challenge
, and then try again to see if the problem persists.
from xled.
@Anders-Holst I tried commenting out line 31 from auth.py as requested and it is then missing that import.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/michael.whitley/Developer/xled/xled/control.py", line 226, in get_device_info
response = self.session.get(url)
File "/Users/michael.whitley/Developer/xled/xled/control.py", line 77, in session
self._session = BaseUrlChallengeResponseAuthSession(
File "/Users/michael.whitley/Developer/xled/xled/auth.py", line 219, in __init__
self.client = client or ClientApplication()
File "/Users/michael.whitley/Developer/xled/xled/auth.py", line 415, in __init__
self.challenge = challenge or generate_challenge
NameError: name 'generate_challenge' is not defined```
from xled.
Ah, I see. Then on line 415 where it says self.challenge = challenge or generate_challenge
, can you add xled.security.
before generate_challenge, so it says: self.challenge = challenge or xled.security.generate_challenge
. And try again.
from xled.
sorry for delay - Thanksgiving happened.
I tried that change and it works - it returns 400.
Thanks!
from xled.
I'm closing this as from previous comment it looks like not a bug.
from xled.
Related Issues (20)
- Trick to update app with new mapping? HOT 6
- Xled_plus - use xled to produce various effects HOT 3
- Documentation is rendered incorrectly (inconsistently) on read the docs HOT 2
- xled on not working HOT 4
- xled sometimes hangs, probably when network is flaky HOT 8
- cli --hostname argument does nothing (broadcast ping gets used regardless)
- music dongle support? HOT 1
- ControlInterface wrapper to help with timeouts
- Turn device on doesn't work after factory reset HOT 3
- Discovery when multiple interfaces are present HOT 3
- Add support for new WiFi configuration encryption HOT 1
- Error: Only one usage of each socket address HOT 4
- Validation error HOT 2
- What should I put in octet-stream in uploading movie? HOT 22
- `python setup.py install`/`develop` need manual intervention to install dependencies
- Move this repository to xled organization HOT 4
- "get" Commands Not Functioning As Expected HOT 12
- Example of movie file/stream? HOT 4
- What about adding a Discussion forum for xled in github? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xled.