question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No devices can be found

See original GitHub issue

Hello,

I am trying to use the pypylon library to enumerate the devices that are connected via Ethernet. However, when I call the following code, the tlFactory.EnumerateDevices() call is an empty tuple and the line to create the device fails with an exception. I’ve copied the code and the result below. Pylon sees 10 cameras connected.

from pypylon import pylon
from pypylon import genicam

tlFactory = pylon.TlFactory.GetInstance()
devices = tlFactory.EnumerateDevices()
print(f"devices: {devices}")
camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
devices: ()
Traceback (most recent call last):
  File "C:\python_issue.py", line 7, in <module>
    camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
  File "C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\pypylon\pylon.py", line 1582, in CreateFirstDevice
    return _pylon.TlFactory_CreateFirstDevice(self, *args)
_genicam.RuntimeException: No device is available or no device contains the provided device info properties. : RuntimeException thrown (file 'tlfactory.cpp', line 694)

Is there something else I need to do to let pypylon know that the devices are connected via Ethernet? The only way this code works is if I set an environment variable to run with emulated devices. No real devices are ever seen.

Thank you!

Environment Setup

Windows 10 Python 3.9.5 pypylon 1.7.2 image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
milancurciccommented, May 7, 2022

Same problem here. I have a GigE camera (acA2500-20gm) configured on the same subnet as the host. I can connect to it from Pylon Viewer, and I can ping it from the command line. However, tl_factory.EnumerateDevices() keeps returning an empty tuple.

@thiesmoeller, how do you recommend to best diagnose this? I’m using the pypylon from the latest commit on the master branch.

Thank you!

1reaction
ghazalehtrbcommented, Jul 12, 2022

Hi @ghazalehtrb,

in the setup you describe it shouldn’t be required to use this special procedure to open a camera by it’s IP address. Or has your PC multiple network interfaces which run in LLA mode? ( LLA == network 169.254.x.x)

Have you followed the documentation for installing on gige? https://docs.baslerweb.com/network-configuration-(gige-cameras)

Thank you. I repeated the configuration process and it seems to be working now. (don’t know what was wrong before!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Learn more: No devices found - Android - Chromecast Help
Learn more: No devices found · Step 1. Make sure Local Network Access is enabled · Step 2. Complete the initial checklist ·...
Read more >
Chromecast No Devices Found: How to Troubleshoot In ...
Chromecast No Devices Found: How to Troubleshoot In seconds · Power Cycle your Networking Devices · Restart your Chromecast · Check Your ...
Read more >
How to Fix "No Cast Devices Found" Error Chromecast
1. To Power Cycle Your Modem and Router: Remove the power cable from both your modem and router. Verify all lights are off on the...
Read more >
How To Fix No devices found. Make sure that ... - YouTube
Your browser can 't play this video. ... How To Fix No devices found. Make sure that device are turned on and available...
Read more >
NO DEVICES FOUND - Microsoft Community
Press Windows key + R. · Type devmgmt.msc. · Click OK. · Click View. · Select and click Show hidden devices. · Find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found