Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Issue With Executable Generation Using PyInstaller.

Issue with Executable Generation using PyInstaller.

By Ali_nk, 3 May, 2024
Forums
General discussion

Hi,

I generated the main.py executable file using Gurux.DLMS.Client.Example.python\main.py,
and it's working fine in VS Code.
However, after generating the executable using PyInstaller, I encountered this error when running the executable:

Error:
Traceback (most recent call last):
File "Gurux.DLMS.Client.Example.python\main.py", line 13, in <module>
ModuleNotFoundError: No module named 'GXSettings'
[14452] Failed to execute script 'main' due to an unhandled exception!

My Python version is Python 3.12.3.

Profile picture for user Kurumi

Kurumi

1 year 1 month ago

Hi, It seems like GXSettings…

Hi,

It seems like GXSettings.py is not included in the installation package. Check your arguments.

BR,
Mikko

Ali_nk

1 year 1 month ago

Hi, Thank you for your…

Hi,

Thank you for your response.

It's an issue with PyInstaller. I used cx_Freeze, and it's working now.

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/17/2025 - 13:03
    Gurux.DLMS.Python 1.0.182
  • Wed, 06/04/2025 - 13:35
    gurux.dlms.c 9.0.2506.0401
  • Fri, 05/30/2025 - 08:30
    gurux.dlms.c 9.0.2505.3001
  • Tue, 05/27/2025 - 08:10
    Gurux.Serial.Android 2.0.12
  • Mon, 05/26/2025 - 08:39
    gurux.dlms.c 9.0.2505.2601

New forum topics

  • Day profile action item add error (String is not recognized as valid DateTime value)
  • Create gateway protocol in c
  • Error while reading event log object
  • GXDLMS Simulator – AssociationLogicalName Not Listed
  • Failed to read meter through raspberry pi 5 and probe
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin