question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error running aocr

See original GitHub issue

After installing aocr (pip install aocr) in both my OS and the official tensor docker container(gcr.io/tensorflow/tensorflow) I’m getting this error even when I run aocr --help:

Traceback (most recent call last):
  File "/usr/local/bin/aocr", line 7, in <module>
    from aocr.__main__ import main
  File "/usr/local/lib/python2.7/dist-packages/aocr/__main__.py", line 15, in <module>
    from .model.model import Model
  File "/usr/local/lib/python2.7/dist-packages/aocr/model/model.py", line 20, in <module>
    from .seq2seq_model import Seq2SeqModel
  File "/usr/local/lib/python2.7/dist-packages/aocr/model/seq2seq_model.py", line 27, in <module>
    from .seq2seq import model_with_buckets
  File "/usr/local/lib/python2.7/dist-packages/aocr/model/seq2seq.py", line 74, in <module>
    linear = rnn_cell._linear  # pylint: disable=protected-access
AttributeError: 'module' object has no attribute '_linear'
# uname -a
Linux 71e18aa0cfc4 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
emedvedevcommented, Jan 12, 2018

Thanks! Closing the issue.

1reaction
AdamWPcommented, Jan 10, 2018

@emedvedev Done!

Read more comments on GitHub >

github_iconTop Results From Across the Web

show AssertionError when I run "aocr train training.tfrecords" #2
I have this error when i train: 2020-12-05 14:03:20,638 root INFO Step 1: 6.937s, loss: 3.699641, perplexity: 40.432805. Traceback (most recent ...
Read more >
Error when serving attention_ocr model ("error": "Expected ...
In case somebody else is trying to figure out how to run inference, here are steps that worked for me. Export the model:...
Read more >
add-in error message after installing - Symantec AntiVirus
Run the tool on the computer that is having the problem. You can run the tool silently at a command prompt by adding...
Read more >
aocr · PyPI
Optical character recognition model for Tensorflow based on Visual Attention.
Read more >
avoid common aotc errors | Earned Income Tax Credit - IRS
Use the tips below to help avoid common AOTC errors: Claim a credit for a student that did not attend a college, university...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found