You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing: python app.py returning error:
`Traceback (most recent call last):
File "app.py", line 1, in from ExampleApp import app
File "/home/flask-microservice-example/ExampleApp/init.py", line 1, in
from flask_microservices import MicroServicesApp
File "/home/xxx/anaconda3/lib/python3.6/site-packages/flask_microservices/init.py", line 22, in
FLASK_VERSION = float(version)
ValueError: could not convert string to float: '0.12.2'
`
The text was updated successfully, but these errors were encountered:
I ran into the same with version 1.1.2. I created a pull request to fix #3
A work around until then is:
import flask
flask.__version__ = 1.1
from flask_microservices import MicroServicesApp
Set the version attribute of flask to whatever the closest relative major version would be for what you have, so 1.0.2 would be 1.0
There may be a better workaround that's just something to try and help, I have no idea if modifying that number in that way will cause other problems but I'm sure there are issues one could run into arbitrarily modifying it.
Executing:
python app.py
returning error:`Traceback (most recent call last):
File "app.py", line 1, in from ExampleApp import app
File "/home/flask-microservice-example/ExampleApp/init.py", line 1, in
from flask_microservices import MicroServicesApp
File "/home/xxx/anaconda3/lib/python3.6/site-packages/flask_microservices/init.py", line 22, in
FLASK_VERSION = float(version)
ValueError: could not convert string to float: '0.12.2'
`
The text was updated successfully, but these errors were encountered: