Code Monkey home page Code Monkey logo

Comments (3)

MCPCapital avatar MCPCapital commented on May 23, 2024

@SeattleSi and @evangryz confirmed seeing the second error listed.

On August 14h SeattleSi commented:

I'm seeing issue #2 as well.

Traceback (most recent call last):
File "./harmonizeproject/harmonize.py", line 143, in
r = requests.get(url = baseurl+"/config")
NameError: name 'baseurl' is not defined

However, after restarting ./harmonizeproject/harmonize.py I'm seeing:

Press return to stopException in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "./harmonizeproject/harmonize.py", line 226, in averageimage
coords[0] = ((coords[0])+1) * w//2 #Translates x value and resizes to video aspect ratio
NameError: name 'w' is not defined

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "./harmonizeproject/harmonize.py", line 309, in buffer_to_light
for i in rgb_bytes:
NameError: name 'rgb_bytes' is not defined

from harmonizeproject.

MCPCapital avatar MCPCapital commented on May 23, 2024

On August 17th I replied:
For your # 1, I think this is the expected behavior. You gotta install the dependencies it before you can run it! I think it also generates client.json where your terminal session 'is'; but then always looks for it in the root directory. We can update the instructions to clarify you must cd into the directory first, thanks!

For your # 2, I can see this bug in the code now. The issue is we only define 'baseurl' IF client.json is found. If you haven't set it up yet, there is no client.json and thus you see the error you saw. I think it should run on the second try though, as SeattleSi pointed out. I'll label this a bug and get to fixing it as well.

Regarding SeattleSi 's issue, first off, try again. Sometimes one thread gets ahead of another and doesn't define the video shape in time. If that doesn't work, you may have an issue getting video input. Does the videotest.py script work for you?

from harmonizeproject.

MCPCapital avatar MCPCapital commented on May 23, 2024

On August 18th I closed the issue with:

I have some updates on this.

Sub-Issue # 1 has been clarified in the Readme, telling users they must CD into the directory to generate the clientdata properly.

To clarify the issue with # 2 in this issue - it is that the below code which defines the baseurl is only triggered if Path("./client.json").is_file(): {See line 122}. To fix this we need to include the below code in the 'else' tied to the same IF statement

    global baseurl
    baseurl = "http://{}/api".format(hueip)

For now I've included the workaround instructions in the Readme, but I will fix this in the code sometime soon. Thanks again for calling these out!

from harmonizeproject.

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.