-
Notifications
You must be signed in to change notification settings - Fork 481
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
Gcloud is not working #180
Comments
Google Vision needs a lot of setup. You need:
There are no instructions for this as of now, but it should be clear from the source code. Did you do all the setup tasks correctly before encountering this error? |
Hi , I have done all the configuration , Created bucket and the api is mapped to the project with the full access . |
I dont think gcloud config is the problem here this line shows the error |
Then I'd check if you have a result in your bucket because this line just reads the result. If your configuration is wrong there won't be a result in the bucket and this specific line will fail. |
Let me check the configuration again . |
You should make a pull request for your fix. Else your improvement will never make it into the official repo and you need to maintain the change during every update. |
created the pull request |
Hi, I am trying to make the Gvision work. I have my Google credential's json and am trying to figure out how to properly connect the bucket. I see that it is a default argument but none of the API calls refer to a bucket. Where can I specify my bucket? |
Hey guys,
|
Right. When you integrate the lib in your own script, you can pass your bucket as optional keyword arg, as shown by @ananthnagan above. |
This might work for a local solution, but if the code is in a docker which runs |
a PR is created regarding @ananthnagan's fix |
I'm starting to look into gvision. |
@bosd: I have zero experience with OCR inputs |
Waiting for the operation to finish.
Traceback (most recent call last):
File "/home/caprice/anaconda3/bin/invoice2data", line 11, in
sys.exit(main())
File "/home/caprice/anaconda3/lib/python3.6/site-packages/invoice2data/main.py", line 166, in main
res = extract_data(f.name, templates=templates, input_module=input_module)
File "/home/caprice/anaconda3/lib/python3.6/site-packages/invoice2data/main.py", line 90, in extract_data
extracted_str = input_module.to_text(invoicefile).decode('utf-8')
File "/home/caprice/anaconda3/lib/python3.6/site-packages/invoice2data/input/gvision.py", line 79, in to_text
json_string = result_blob.download_as_string()
AttributeError: 'NoneType' object has no attribute 'download_as_string'
The text was updated successfully, but these errors were encountered: