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

02-idp-document-extraction-01.ipynb #8

Open
jonreade opened this issue Dec 19, 2022 · 0 comments
Open

02-idp-document-extraction-01.ipynb #8

jonreade opened this issue Dec 19, 2022 · 0 comments

Comments

@jonreade
Copy link

Document

documentName = "simple-document-image.jpg"
display(Image(filename=documentName))

ERROR:

FileNotFoundError Traceback (most recent call last)
in
----> 1 display(Image(filename=documentName))

/opt/conda/lib/python3.7/site-packages/IPython/core/display.py in init(self, data, url, filename, format, embed, width, height, retina, unconfined, metadata)
1230 self.unconfined = unconfined
1231 super(Image, self).init(data=data, url=url, filename=filename,
-> 1232 metadata=metadata)
1233
1234 if self.width is None and self.metadata.get('width', {}):

/opt/conda/lib/python3.7/site-packages/IPython/core/display.py in init(self, data, url, filename, metadata)
635 self.metadata = {}
636
--> 637 self.reload()
638 self._check_data()
639

/opt/conda/lib/python3.7/site-packages/IPython/core/display.py in reload(self)
1261 """Reload the raw data from file or URL."""
1262 if self.embed:
-> 1263 super(Image,self).reload()
1264 if self.retina:
1265 self._retina_shape()

/opt/conda/lib/python3.7/site-packages/IPython/core/display.py in reload(self)
660 """Reload the raw data from file or URL."""
661 if self.filename is not None:
--> 662 with open(self.filename, self._read_flags) as f:
663 self.data = f.read()
664 elif self.url is not None:

FileNotFoundError: [Errno 2] No such file or directory: 'simple-document-image.jpg'

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

1 participant