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;








-1















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









share|improve this question
























  • 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

















-1















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









share|improve this question
























  • 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













-1












-1








-1








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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












1 Answer
1






active

oldest

votes


















1














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





share|improve this answer























  • 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










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
);



);













draft saved

draft discarded


















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









1














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





share|improve this answer























  • 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















1














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





share|improve this answer























  • 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













1












1








1







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





share|improve this answer













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






share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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








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.



















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현