-
Notifications
You must be signed in to change notification settings - Fork 39
Python compatibility issues on current dev #338
Comments
In theory, the build system should work with both, Python 2 and 3 resp. SCons 2.5 and 3.0. I also tested both Python and SCons versions on my computer, before submitting the changes for Python 3 compatibility. That makes me wondering, why the |
|
That lets @Maju-Ketchup's fix seem reasonable to me. We could discuss if it's more elegant to check for the Python version, instead of catching the import's exception. However, as far as I remember, catching exceptions is "The Pythonic Way"™. |
@mhthies You probably installed the python2 configparser backports package from pypi (https://pypi.python.org/pypi/configparser). |
Python suggests the package |
Since the current dev is 'upgraded' to Python 3, working with Python 2 throws some errors because the 'ConfigParser' class was renamed to 'configparser'.
I have found a small work around to make it backwards compatible while changing one line in one file.
File: compatibility xpcc/scons/site_tools/configfile.py
old code(line 32):
import configparser
new code:
Should I commit this small to the current dev for backwards compatibility or should it stay the way it is so everyone should force update to Python 3?
The text was updated successfully, but these errors were encountered: