Convert PDF to HTML having issuesNo module named 'pafy'How to import a module given its name?Does Python have a ternary conditional operator?Converting string into datetimeConvert bytes to a string?Converting integer to string?Does Python have a string 'contains' substring method?Install tkinter for PythonCall a function from another file in PythonAPScheduler(Advance Python Scheduler) ImportError: No module named schedulerNo module named 'glob2'
Is killing off one of my queer characters homophobic?
Why does Hellboy file down his horns?
What to put after taking off rear stabilisers from child bicyle?
Is `curl something | sudo bash -` a reasonably safe installation method?
How do I write a romance that doesn't look obvious
Should you avoid redundant information after dialogue?
Is this floating-point optimization allowed?
Cubic programming and beyond?
Supporting developers who insist on using their pet language
Is it rude to tell recruiters I would only change jobs for a better salary?
Mistakenly modified `/bin/sh'
Dropping outliers based on "2.5 times the RMSE"
Back to the nineties!
Why would guns not work in the dungeon?
CPU overheating in Ubuntu 18.04
Does Google Maps take into account hills/inclines for route times?
Why the term 'unified' in "unified mass unit"?
What does `[$'rn']` mean?
What are some symbols representing peasants/oppressed persons fighting back?
Why did my rum cake turn black?
How might the United Kingdom become a republic?
What is the English equivalent of 干物女 (dried fish woman)?
Chaining Dissonant Whispers via War Caster feat
When did the Roman Empire fall according to contemporaries?
Convert PDF to HTML having issues
No module named 'pafy'How to import a module given its name?Does Python have a ternary conditional operator?Converting string into datetimeConvert bytes to a string?Converting integer to string?Does Python have a string 'contains' substring method?Install tkinter for PythonCall a function from another file in PythonAPScheduler(Advance Python Scheduler) ImportError: No module named schedulerNo module named 'glob2'
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am getting this error:
ImportError:
No module named pdftotree
my code is:
import pdftotree
pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
How I installed pdftotree:
sudo apt install python3-tk
pip install pdftotree
python
|
show 4 more comments
I am getting this error:
ImportError:
No module named pdftotree
my code is:
import pdftotree
pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
How I installed pdftotree:
sudo apt install python3-tk
pip install pdftotree
python
Do you use virtual environments?
– Devang Padhiyar
Mar 26 at 5:46
which OS are you using? do you have multiple python versions?
– Jeril
Mar 26 at 5:46
Ubunt 16.04,yes i have python 2.7 and python 3.6
– san
Mar 26 at 5:48
i install with pip3 install pdftotree,but same issue.
– san
Mar 26 at 5:49
@san use sudo....
– eyllanesc
Mar 26 at 5:50
|
show 4 more comments
I am getting this error:
ImportError:
No module named pdftotree
my code is:
import pdftotree
pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
How I installed pdftotree:
sudo apt install python3-tk
pip install pdftotree
python
I am getting this error:
ImportError:
No module named pdftotree
my code is:
import pdftotree
pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
How I installed pdftotree:
sudo apt install python3-tk
pip install pdftotree
python
python
edited Mar 26 at 5:45
verfluecht
861 silver badge16 bronze badges
861 silver badge16 bronze badges
asked Mar 26 at 5:42
sansan
735 bronze badges
735 bronze badges
Do you use virtual environments?
– Devang Padhiyar
Mar 26 at 5:46
which OS are you using? do you have multiple python versions?
– Jeril
Mar 26 at 5:46
Ubunt 16.04,yes i have python 2.7 and python 3.6
– san
Mar 26 at 5:48
i install with pip3 install pdftotree,but same issue.
– san
Mar 26 at 5:49
@san use sudo....
– eyllanesc
Mar 26 at 5:50
|
show 4 more comments
Do you use virtual environments?
– Devang Padhiyar
Mar 26 at 5:46
which OS are you using? do you have multiple python versions?
– Jeril
Mar 26 at 5:46
Ubunt 16.04,yes i have python 2.7 and python 3.6
– san
Mar 26 at 5:48
i install with pip3 install pdftotree,but same issue.
– san
Mar 26 at 5:49
@san use sudo....
– eyllanesc
Mar 26 at 5:50
Do you use virtual environments?
– Devang Padhiyar
Mar 26 at 5:46
Do you use virtual environments?
– Devang Padhiyar
Mar 26 at 5:46
which OS are you using? do you have multiple python versions?
– Jeril
Mar 26 at 5:46
which OS are you using? do you have multiple python versions?
– Jeril
Mar 26 at 5:46
Ubunt 16.04,yes i have python 2.7 and python 3.6
– san
Mar 26 at 5:48
Ubunt 16.04,yes i have python 2.7 and python 3.6
– san
Mar 26 at 5:48
i install with pip3 install pdftotree,but same issue.
– san
Mar 26 at 5:49
i install with pip3 install pdftotree,but same issue.
– san
Mar 26 at 5:49
@san use sudo....
– eyllanesc
Mar 26 at 5:50
@san use sudo....
– eyllanesc
Mar 26 at 5:50
|
show 4 more comments
1 Answer
1
active
oldest
votes
You might have multiple python environments. Or if you installed modules with sudo, they are not accessible to non-sudo users (No module named 'pafy').
Install with pip3 and run with python3.
pip3 install --user pdftotree.
python3 file.py
pip install --user pdftotree works for me.
– san
Mar 26 at 6:26
import pdftotree pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
– san
Mar 26 at 6:55
this above code not able to convert PDF to HTML.
– san
Mar 26 at 6:56
@san sorry, I'm not familiar with the library.
– Aravind Voggu
Mar 26 at 7:11
1
No issue,thanks for previous answer.
– san
Mar 26 at 7:18
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55350519%2fconvert-pdf-to-html-having-issues%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You might have multiple python environments. Or if you installed modules with sudo, they are not accessible to non-sudo users (No module named 'pafy').
Install with pip3 and run with python3.
pip3 install --user pdftotree.
python3 file.py
pip install --user pdftotree works for me.
– san
Mar 26 at 6:26
import pdftotree pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
– san
Mar 26 at 6:55
this above code not able to convert PDF to HTML.
– san
Mar 26 at 6:56
@san sorry, I'm not familiar with the library.
– Aravind Voggu
Mar 26 at 7:11
1
No issue,thanks for previous answer.
– san
Mar 26 at 7:18
add a comment |
You might have multiple python environments. Or if you installed modules with sudo, they are not accessible to non-sudo users (No module named 'pafy').
Install with pip3 and run with python3.
pip3 install --user pdftotree.
python3 file.py
pip install --user pdftotree works for me.
– san
Mar 26 at 6:26
import pdftotree pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
– san
Mar 26 at 6:55
this above code not able to convert PDF to HTML.
– san
Mar 26 at 6:56
@san sorry, I'm not familiar with the library.
– Aravind Voggu
Mar 26 at 7:11
1
No issue,thanks for previous answer.
– san
Mar 26 at 7:18
add a comment |
You might have multiple python environments. Or if you installed modules with sudo, they are not accessible to non-sudo users (No module named 'pafy').
Install with pip3 and run with python3.
pip3 install --user pdftotree.
python3 file.py
You might have multiple python environments. Or if you installed modules with sudo, they are not accessible to non-sudo users (No module named 'pafy').
Install with pip3 and run with python3.
pip3 install --user pdftotree.
python3 file.py
answered Mar 26 at 6:03
Aravind VogguAravind Voggu
9186 silver badges14 bronze badges
9186 silver badges14 bronze badges
pip install --user pdftotree works for me.
– san
Mar 26 at 6:26
import pdftotree pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
– san
Mar 26 at 6:55
this above code not able to convert PDF to HTML.
– san
Mar 26 at 6:56
@san sorry, I'm not familiar with the library.
– Aravind Voggu
Mar 26 at 7:11
1
No issue,thanks for previous answer.
– san
Mar 26 at 7:18
add a comment |
pip install --user pdftotree works for me.
– san
Mar 26 at 6:26
import pdftotree pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
– san
Mar 26 at 6:55
this above code not able to convert PDF to HTML.
– san
Mar 26 at 6:56
@san sorry, I'm not familiar with the library.
– Aravind Voggu
Mar 26 at 7:11
1
No issue,thanks for previous answer.
– san
Mar 26 at 7:18
pip install --user pdftotree works for me.
– san
Mar 26 at 6:26
pip install --user pdftotree works for me.
– san
Mar 26 at 6:26
import pdftotree pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
– san
Mar 26 at 6:55
import pdftotree pdftotree.parse(pdf_file, html_path, model_type=None, model_path=None, favor_figures=True, visualize=False)
– san
Mar 26 at 6:55
this above code not able to convert PDF to HTML.
– san
Mar 26 at 6:56
this above code not able to convert PDF to HTML.
– san
Mar 26 at 6:56
@san sorry, I'm not familiar with the library.
– Aravind Voggu
Mar 26 at 7:11
@san sorry, I'm not familiar with the library.
– Aravind Voggu
Mar 26 at 7:11
1
1
No issue,thanks for previous answer.
– san
Mar 26 at 7:18
No issue,thanks for previous answer.
– san
Mar 26 at 7:18
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55350519%2fconvert-pdf-to-html-having-issues%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you use virtual environments?
– Devang Padhiyar
Mar 26 at 5:46
which OS are you using? do you have multiple python versions?
– Jeril
Mar 26 at 5:46
Ubunt 16.04,yes i have python 2.7 and python 3.6
– san
Mar 26 at 5:48
i install with pip3 install pdftotree,but same issue.
– san
Mar 26 at 5:49
@san use sudo....
– eyllanesc
Mar 26 at 5:50