DiffSK / configobj

Python 3+ compatible port of the configobj library
https://configobj.readthedocs.org
Other
322 stars 76 forks source link

Getting "None" on some fields on some computers. What could cause this? #190

Closed komodovaran closed 1 year ago

komodovaran commented 5 years ago

I have a GUI that adjusts according to a set of values on startup.

On my computer it reads all values fine. On somebody else's computer, it reads almost all values, but returns None instead of a float for a specific line.

E.g. in the config.ini I would read the following keys:

val1 = 0 # returns 0
val2 = 0 # returns 0
val3 = 0 # returns None??

What could cause this? All the other values are seemingly read without problems. Both computers are using configobj 5.0.6.

robdennis commented 1 year ago

I don't think I have enough information to just know, but as a complete guess (and assuming it's the last line in the file), maybe there's something with different OS line endings

I think I'm declaring bankruptcy on this, just for the limited scope I'm actually able to do on a 5.1.0