Kernel: Python 3
In [1]:
Out[1]:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-bd56f4c59bef> in <module>()
----> 1 import pdf2image
ModuleNotFoundError: No module named 'pdf2image'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
In [2]:
Out[2]:
Collecting pdf2image
Downloading pdf2image-1.16.0-py3-none-any.whl (10 kB)
Requirement already satisfied: pillow in /usr/local/lib/python3.7/dist-packages (from pdf2image) (7.1.2)
Installing collected packages: pdf2image
Successfully installed pdf2image-1.16.0
In [33]:
Out[33]:
Mounted at /content/drive
In [36]:
Out[36]:
cnn-vis-modified.gslides
'Flaxifying (V)AE MLAPP examples.gdoc'
GANs.gdraw
GenModelsTree.gdraw
hier-vae.pdf
InfTree.gdraw
'Introduction to Bayesian Machine Learning.gslides'
'Intro to Prob Stats for ML.gslides'
'LSTM (1).gdraw'
LSTM.gdraw
'Machine learning: a probabilistic perspective MLAPA.gdoc'
mlapa-30jan17.pdf
'MLAPA figures.gslides'
'MLAPA todo.gsheet'
'MLAPA v2.gdoc'
MLtriad.gdraw
nnet-8jan16.pdf
pmlSol-camera-22may12.pdf
'sRGB Color Space Profile.icm'
survey-results-google-RG-dec2015.png
Text-200416.zip
USWebCoatedSWOP.icc
In [3]:
In [4]:
Out[4]:
2dgridDAGa.pdf sample_data
In [6]:
Out[6]:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
poppler-utils
0 upgraded, 1 newly installed, 0 to remove and 40 not upgraded.
Need to get 154 kB of archives.
After this operation, 613 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 poppler-utils amd64 0.62.0-2ubuntu2.12 [154 kB]
Fetched 154 kB in 1s (304 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 1.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Selecting previously unselected package poppler-utils.
(Reading database ... 160837 files and directories currently installed.)
Preparing to unpack .../poppler-utils_0.62.0-2ubuntu2.12_amd64.deb ...
Unpacking poppler-utils (0.62.0-2ubuntu2.12) ...
Setting up poppler-utils (0.62.0-2ubuntu2.12) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
In [30]:
In [32]:
Out[32]:
2dgridDAGa.pdf sample_data temp2dgridDAGa.png
In [48]:
In [41]:
In [51]:
Out[51]:
input /content/2dgridDAGa.pdf
output /content/temp2dgridDAGa
call convert
/content/temp2dgridDAGa.png
[Errno 2] No such file or directory: '/content/temp2dgridDAGa.png'
cannot convert/content/temp2dgridDAGa.png, copying it instead.
exception
Error in file: /content/2dgridDAGa.pdf
[Errno 2] No such file or directory: '/content/temp2dgridDAGa.png'
False
In [52]:
Out[52]:
2dgridDAGa.pdf drive sample_data
In [ ]: