Closed eprigorodov closed 4 years ago
Thanks for bringing this to our attention, Evgeny! We created an issue to the upstream cachlib
. Let's see how that goes. Either they fix it there, and we do not need to change anything in our sample; or we will somehow document your workaround. But we do not plan to pin their older version here.
Meanwhile, you can use the workaround you discovered above.
From the cachelib
issue it seems like maintainers just have dropped support of Python 2 without declaring that.
One can expect this to happen more and more in all dependencies that pull unpinned packages.
Eventually, support of Python 2 in this package will also be broken completely.
Maybe the document update that you mention should just reflect that.
Following the README guide fails on the "Step 4. Run the sample" with the following traceback:
That happens due the last release of
cachelib==0.1.1
, a dependency package pulled byflask-sessions~=0.3.2
, this particular commit: fa376861b7e8364531e0f673ee97a8278897c3e0.os.replace()
is only available starting from Python 3.3.The quick working fix is pinning down the version of
cachelib
in therequirements.txt
: