-
-
Notifications
You must be signed in to change notification settings - Fork 278
Troubleshooting
Matthieu Houdebine edited this page May 24, 2023
·
39 revisions
Try to get error logs from the program:
- if you run the program from a command-line, errors from the Python interpreter will be printed in the same window
- if you run the program automatically at boot (e.g. from the Task Scheduler) you can find logs in the
log.logfile from the project main folder
When you have located your error from the logs, search it on this page or in the existing issues
-
Symptoms: When running the program the following error appears:
[Errno 13] Permission denied: '/dev/ttyACM0' - Cause: your user does not have permanent access to TTY devices created by your system
-
Fix: adding your user to the group
dialout, on Ubuntu & Debian the command issudo usermod -a -G dialout $USER
On ArchLinux the group isuucp, the command issudo usermod -a -G uucp $USER
- Symptoms: When running program on Windows, the following error appears at launch:
System.NotSupportedException: An attempt was made to load an assembly from a network location
which would have caused the assembly to be sandboxed in previous versions of the .NET Framework.
This release of the .NET Framework does not enable CAS policy by default, so this load may be
dangerous. If this load is not intended to sandbox the assembly, please enable the
loadFromRemoteSources switch.
- Cause: Since .Net Framework 4.0, the ability to run code in assemblies loaded from a remote source is disabled by default. See https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/loadfromremotesources-element#remarks
-
Fix: find the path of your
python.exe/pythonw.exeprogram using the commandwhere pythonand create in the same folderpython.exe.configandpythonw.exe.configtext files with both the following content:
<configuration>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
</configuration> -
Symptoms: Running
python.exefrom a command line opens the Microsoft Store instead of actually running a Python shell. - Cause: Python has been installed from official website, not from Microsoft Store
-
Fix: Use
py.exeinstead, or disablepython.exe&python3.exeApp Execution Aliases : Windows 10 or Windows 11
- Symptoms: System monitor displays "No supported GPU found" with an AMD GPU, and no GPU stats are displayed on the screen
-
Cause: For Python 3.11+, the
pyamdgpuinfolibrary isn't available as pre-built Wheel package for Python3.11+ in Pip repositories. -
Fix: Install some packages manually: you need
python3-dev/python3-develandlibdrm-dev/libdrm-devel, then installpyamdgpuinfomanually with Pip:
python3 -m pip install pyamdgpuinfo