scottkirkwood / key-mon

Automatically exported from code.google.com/p/key-mon
Apache License 2.0
141 stars 38 forks source link

python 3.12 breaks key-mon (once again) #105

Open zirneklitis opened 8 months ago

zirneklitis commented 8 months ago

Hi. python 3.12 has removed configparser module APIs: the SafeConfigParser class alias, the ParsingError.filename property and parameter, and the ConfigParser.readfp method.

The attached patch file should fixed the issue.

key-mon_SafeConfigParser2.patch.zip

aanandharaja commented 4 months ago

How to apply this patch, can you please explain about this

zirneklitis commented 4 months ago

Hi!

The easiest way:

  1. unzip the attachment “key-mon_SafeConfigParser2.patch.zip”;
  2. use “[patch]” to apply differences.
zirneklitis commented 4 months ago

I have created pull request: #107

aanandharaja commented 4 months ago

i tried to apply the patch using this command "patch < key-mon_SafeConfigParser2.patch" asking the file to patch where is that file located ? , can you please guide me

zirneklitis commented 4 months ago

Hi,

It depends on Your location. ./key-mon/src/keymon/ If You are in the same directory where the “src” directory resides, you should use parameter “-p1”: patch -p1 -i key-mon_SafeConfigParser2.patch

aanandharaja commented 4 months ago

Thankyou applied the patch successfully now working fine.