Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: could not convert string to float: '0.12.2' #1

Open
chuong98 opened this issue Jun 1, 2018 · 2 comments
Open

ValueError: could not convert string to float: '0.12.2' #1

chuong98 opened this issue Jun 1, 2018 · 2 comments

Comments

@chuong98
Copy link

chuong98 commented Jun 1, 2018

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'
`

@hmanjarawala
Copy link

Hi,
I am also getting same issue.

ValueError: could not convert string to float: '1.0.2'

@ilulillirillion
Copy link

ilulillirillion commented Aug 15, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants