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

AttributeError: 'DXCamera' object has no attribute 'is_capturing' #49

Closed
Lvicek07 opened this issue Jan 28, 2023 · 1 comment
Closed

Comments

@Lvicek07
Copy link

Lvicek07 commented Jan 28, 2023

Traceback (most recent call last):
File "C:\Users\user\Downloads\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 49, in
import ets2LaneDetection as LaneDetection
File "C:\Users\user\Downloads\Euro-Truck-Simulator-2-Lane-Assist-main\ets2LaneDetection.py", line 123, in
camera = dxcam.create(region=monitor, output_color="BGR")
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\dxcam_init_.py", line 112, in create
return _factory.create(
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\dxcam_init
.py", line 71, in create
camera = DXCamera(
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\dxcam\dxcam.py", line 33, in init
self._duplicator: Duplicator = Duplicator(
File "", line 6, in init
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\dxcam\core\duplicator.py", line 19, in post_init
output.output.DuplicateOutput(device.device, ctypes.byref(self.duplicator))
_ctypes.COMError: (-2005270524, 'Zadané rozhraní zařízení nebo úroveň funkce nejsou v systému podporovány.', (None, None, None, 0, None))
Exception ignored in: <function DXCamera.del at 0x000001DD0F7EE670>
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\dxcam\dxcam.py", line 243, in del
self.release()
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\dxcam\dxcam.py", line 238, in release
self.stop()
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'

@Lvicek07
Copy link
Author

It's repaired, python was running on bad graphics card

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

1 participant