Open julienschmidt opened 5 years ago
This is a strange one. It looks like the ConverterMapping
class is new in the 3.5.0
version of the module, so I wonder your new setup is somehow using an outdated version of backports.configparser
. In the virtualenv, if you just import backports.configparser
and inspect the resulting module, does it give any indication that it might not be using the correct version? Example from my own local install:
$ ./local/bin/python
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import backports.configparser
>>> backports.configparser.__file__
'/mnt/c/Users/ryan/Desktop/repos/mozilla-services/syncserver/local/local/lib/python2.7/site-packages/backports/configparser/__init__.pyc'
>>>
What python version are you running on the old build, and the new?
Old (Debian Stretch):
Python 2.7.13 (default, Sep 26 2018, 18:42:22)
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import backports.configparser
>>> backports.configparser.__file__
'/var/fxcloud/syncserver/local/local/lib/python2.7/site-packages/backports/configparser/__init__.pyc'
>>>
New (Debian Buster):
Python 2.7.15+ (default, Nov 28 2018, 16:27:22)
[GCC 8.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import backports.configparser
>>> backports.configparser.__file__
'/var/fxcloud/syncserver/local/local/lib/python2.7/site-packages/backports/configparser/__init__.pyc'
>>>
I migrated my syncserver from a Debian Stretch to a Debian Buster host and WSGI suddenly starts to fail:
If I edit the
requirements.txt
as follows:and rebuild the env, it suddenly starts to work. The same version (90d8e83) works fine on the Debian Stretch host without any modifications. I further tried to add the pip flag
--no-cache-dir
and copying the already built env from the old host, both leading to the same error.I'm a bit out of ideas why this might fail. The diff between
3.5.0b2
and3.5.0
is not big, but it does include some changes regardingConverterMapping
: https://bitbucket.org/ambv/configparser/branches/compare/78998f2..3005b52#diff