Code Monkey home page Code Monkey logo

Comments (7)

scrool avatar scrool commented on August 16, 2024

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.

bodagetta avatar bodagetta commented on August 16, 2024

Done - sorry about that!

from xled.

Anders-Holst avatar Anders-Holst commented on August 16, 2024

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.

bodagetta avatar bodagetta commented on August 16, 2024

@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.

Anders-Holst avatar Anders-Holst commented on August 16, 2024

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.

bodagetta avatar bodagetta commented on August 16, 2024

sorry for delay - Thanksgiving happened.

I tried that change and it works - it returns 400.

Thanks!

from xled.

scrool avatar scrool commented on August 16, 2024

I'm closing this as from previous comment it looks like not a bug.

from xled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.