jondot / formation

A generic functional middleware infrastructure for Python.

Home Page:https://jondot.github.io/formation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import error on formation.middleware.create_request_duration in python2+pip

look4regev opened this issue · comments

Hi,

On a python2.7.14 virtualenv I install latest formation. I use this import:
from formation.middleware import create_request_duration
And it fails on import error.
If done in python3.6.5 all is good.
Can you advise please? Maybe related somehow to recent commits?
Thank you :)

Just now noticed, in python2 for some reason I am getting the latest formation-0.1.30 and in python3 I am getting formation-0.1.27. So maybe this bug happens only in the new version (not sure why I get different versions on different python versions in this case).

Sorry for the multiple comments, just now simply tested in python2 version 0.1.27 works for that import and 0.1.30 breaks that import.

try importing request_duration. the create_ pattern was ditched a few versions ago.. sorry!