Comments (3)
@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.
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.
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)
- Instruction Updates and Corrupt JPEG data HOT 3
- Integration with HomeAssistant
- VIDEOIO ERROR: V4L2: setting property #38 is not supported HOT 6
- Hue App HOT 1
- Canβt connect to the Hue Bridge HOT 2
- Lights Flickering HOT 2
- Build process doesn't seem to work. HOT 13
- does it work on odroid xu4 HOT 1
- Does it works with bulbs also or only ledstrip? HOT 1
- Running harmonize.py line error 15 #14 HOT 2
- Only shows first frame / image then errors out HOT 2
- module v4l2src0 reported: Internal data stream error. HOT 6
- Option to increase light's brightness HOT 7
- Dead image links in README HOT 2
- [Enhancement] HDMI to CSI adapter HOT 3
- bridge = int(input()) Error (multiple bridges?) HOT 3
- Finds bridge and then doesn't HOT 2
- More configuration Values for fine tunig the grapper input HOT 1
- Error with "rgb_bytes" & "w" not defined 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 harmonizeproject.