bhowiebkr / laser-level-webcam

A tool for measuring height in microns of arbitrary sized objects using a webcam and a laser level.
MIT License
141 stars 13 forks source link

Can not install, give me some hint s please #23

Open eduardsik opened 7 months ago

eduardsik commented 7 months ago

Hi,

I tried to install on 4 machines, including on 2 Mac M2's, Mac M2 with parallels win11, individual win10 machine and a debian12. It fails on every machine, with different errors. On macs are starting but requesting access to camera, which is not showing up in system pref. On windows throws very different errors. Itried to install Visual studio, but not helped. On linux... well, hard to tell, not even reaching to install the requirements.

Very strange. I'm sure I did something wrong, but I can not figure out what. I try to install since a week now.

Please give me some hints.

bhowiebkr commented 6 months ago

Sorry I’ve been a little MIA as of late.

From my understanding on a Mac there seems to be an issue with PySide (main dependency) in which it cannot get access to the camera. Otherwise the tool works fine on both Windows and Linux platforms. I don’t have a Mac so I might be limited in what I can help here.

Post the errors you are getting on windows and linux. It’s very likely your errors are because you didn’t run the python code in a virtual environment and it’s running into dependency issues. See the main readme if you are installing it that way.

dennisbun commented 5 months ago

Hi,

I'm trying to install this on windows 11 and I'm getting this error

No QtMultimedia backends found. Only QMediaDevices, QAudioDevice, QSoundEffect, QAudioSink, and QAudioSource are available.
Failed to initialize QCamera "Not available"
Failed to initialize QMediaCaptureSession "Not available"
Failed to create QVideoSink "Not available"

Also the readme says to run this

python.exe laser_level_tool/main.py

but the laser_level_tool directory doesn't exist, am I missing something ?

Tried to run the laser-level-webcam.py, it launched the app but I get the same errors

Regards,

Dennis

viddi98 commented 1 month ago

Hi, I have the same problem as Dennis with the QtMultimedia backends. Is there any update on this issue?

I'm running on RaspberryPi5 with Ubuntu 24.04 The Programm is starting but i can't select the camera and get no image.

Maybe you can help. Best regards, Vitus