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

CAN Devices Not Detected When Executable Is Run #1840

Open
abcde4631 opened this issue Aug 18, 2024 · 0 comments
Open

CAN Devices Not Detected When Executable Is Run #1840

abcde4631 opened this issue Aug 18, 2024 · 0 comments
Labels

Comments

@abcde4631
Copy link

Describe the bug

Hi,

I'm using your application to forward messages between CAN buses, and I've noticed an issue when running the executable file. When I call the detect_available_configs function, it does not detect any CAN devices. However, when I run the Python script directly, the CAN devices are detected without any problems.
image
微信图片_20240818184210

To Reproduce

Expected behavior

Additional context

OS and version: Windows 10
Python version:Python 3.8.5
python-can version:4.2.2
python-can interface/s (if applicable):detect_available_configs
Executable Creation Tool:auto-py-to-exe,cmd is:pyinstaller --noconfirm --onefile --windowed --hidden-import "Pyqt5-sip" --hidden-import "can" --hidden-import "python-can" "C:\Users\Administrator\Desktop\TsPy" "C:\Users\Administrator\Desktop\TsPy\zhuanfagui.py"

Traceback and logs
def func():
    return "hello, world!"
@abcde4631 abcde4631 added the bug label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant