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

Fixes 'Document instance has no attribute 'file_basename'' #3

Merged
merged 1 commit into from
Aug 30, 2016

Conversation

achikin
Copy link
Contributor

@achikin achikin commented Aug 30, 2016

Fixes the following issue

import doc2text
doc = doc2text.Document()
doc.read('image.png')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/doc2text/init.py", line 67, in read
self.file_basepath, self.file_basename + '_temp.png'
AttributeError: Document instance has no attribute 'file_basename'

Fixes the following issue
>>> import doc2text
>>> doc = doc2text.Document()
>>> doc.read('image.png')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/doc2text/__init__.py", line 67, in read
    self.file_basepath, self.file_basename + '_temp.png'
AttributeError: Document instance has no attribute 'file_basename'
@jlsutherland
Copy link
Owner

Thanks @achikin !

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

Successfully merging this pull request may close these issues.

2 participants