Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1584

Python • Re: ConfigUpdater / Parser import in Raspberry

$
0
0
In my Python (3.11) app in a Windows-11-environment, I successfuly imported the ConfigParser and -Updader, to maintain the INI file of the app.
I'm now traying to migrate the same Python software to a Raspberry 5, with a Python 3.11 environment as well.
However, in no way, I have any succes in findfing and importing the Config module. Errors like: No module configparser found...

Does one of you have any idea how to solve? Is there maybe a nother configparser/updater available, suitable for the Windows and Raspberry environment?

Thans for yout help... Gergely

Do you have sample code to demonstrate the problem?


Unable to recreate the problem here. Raspberry Pi[5] board running 64-bit RasPiOS Bookworm -

Code:

david@rp58book101064fnvme:~ $ pythonPython 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import configparser>>> my_parser = configparser.ConfigParser()>>> my_parser<configparser.ConfigParser object at 0x7fff2de1f010>>>> 

Code:

david@rp54bw64full0512:~/Support/gergely $ pythonPython 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> from configupdater import ConfigUpdater>>> my_updater = ConfigUpdater()>>> my_updater<ConfigUpdater []>>>> 

Statistics: Posted by B.Goode — Mon Sep 30, 2024 7:28 pm



Viewing all articles
Browse latest Browse all 1584

Trending Articles