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

Python AttributeError for Filtering Cams #422

Closed
Lord0fBytes opened this issue Jun 16, 2022 · 4 comments
Closed

Python AttributeError for Filtering Cams #422

Lord0fBytes opened this issue Jun 16, 2022 · 4 comments

Comments

@Lord0fBytes
Copy link

I set this up for Portainer using the following compose file:

version: '2.4'
services:
    wyze-bridge:
        container_name: wyze-bridge
        restart: unless-stopped
        image: mrlt8/wyze-bridge:latest
        ports:
            - 1935:1935 # RTMP
            - 8554:8554 # RTSP
            - 8889:8888 # HLS
        environment:
            - WYZE_EMAIL=# Replace with wyze email 
            - WYZE_PASSWORD=# Replace with wyze password
            - FILTER_NAMES=oldcam #This is the V1 cam im trying to filter out
            - FILTER_BLOCK=true

It looks like it works once I enter my auth code and then I get an AttributeError for the filtering cams:

🚀 STARTING DOCKER-WYZE-BRIDGE v1.5.4
2022/06/16 01:43:48 [WyzeBridge] 📚 Using 'user' from local cache...
2022/06/16 01:43:48 [WyzeBridge] 📚 Using 'cameras' from local cache...
2022/06/16 01:43:48 [WyzeBridge] 💔 WYZEC1 not supported
Traceback (most recent call last):
  File "/app/wyze_bridge.py", line 820, in <module>
�
    wb.run()
  File "/app/wyze_bridge.py", line 50, in run
    self.get_filtered_cams()
  File "/app/wyze_bridge.py", line 311, in get_filtered_cams
    cams.os.remove(cam)
AttributeError: 'list' object has no attribute 'os'
@mrlt8
Copy link
Owner

mrlt8 commented Jun 16, 2022

whoops, I see it! will push a fix!

btw, would you be willing to do some testing so we might be able to get the v1 supported?

mrlt8 added a commit that referenced this issue Jun 16, 2022
@encg
Copy link

encg commented Jun 16, 2022

I had this error on v1.5.4 as well (fixed now with 1.6.0 - thanks!) and am willing to do some testing on my V1s.

@Lord0fBytes
Copy link
Author

Absolutely, I love helping out with this stuff. Just let me know what you need me to do.

@mrlt8
Copy link
Owner

mrlt8 commented Jun 19, 2022

Marking this issue as resolved.

@Webtron18, would appreciate it if you could test out the https://github.com/mrlt8/docker-wyze-bridge/tree/cam_v1 branch and report any errors you see in #57.

@mrlt8 mrlt8 closed this as completed Jun 19, 2022
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

3 participants