Python Forum
pdfminer package: module isn't found
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pdfminer package: module isn't found
#21
ERROR launchpadlib 1.10.6 requires testresources which is not installed
Reply
#22
Thanks.
Working on resolving of python mess problem I also upgarded Ubuntu to 20.04.
Now everything seems Ok.
Puthon3: 3.10.7
pdfminer: pdfminer.six, Version: 20220524
But still doesn't work.
Tried example from this link:
Extract text from a PDF using Python
Here is output:
Output:
>>> from pdfminer.high_level import extract_text Traceback (most recent call last): File "/usr/lib/python3.8/idlelib/run.py", line 559, in runcode exec(code, self.locals) File "<pyshell#0>", line 1, in <module> ModuleNotFoundError: No module named 'pdfminer' >>>
Reply
#23
Well, I was a little hasty when I said that the problems with python are solved.
I installed IDLE and it seems that this installation also installed python 3.8 because IDLE uses it
But this python 3.8 isn't displayed in the list of alternatives:
Output:
xxx@ALABAMA:~$ update-alternatives --list python3 /usr/bin/python3.10 /usr/bin/python3.6
Any suggestions on how to manage this staff ?
Thanks.
Reply
#24
(Sep-17-2022, 08:35 AM)Pavel_47 Wrote: I also upgarded Ubuntu to 20.04.

I installed IDLE and it seems that this installation also installed python 3.8 because IDLE uses it
But this python 3.8 isn't displayed in the list of alternatives:
No IDLE did not install Python 3.8.
As you upgrade to Ubuntu to 20.04 then it come with default Python 3.8.2 installed.
Then you need to figure if you shall use this version or use your python3.10(recommended).
You most make sure that pip -V or pip3- V or python -m pip -V or python3 -m pip -V
install to correct Python version test with which python or which python3.
Reply
#25
Quote:No IDLE did not install Python 3.8.
As you upgrade to Ubuntu to 20.04 then it come with default Python 3.8.2 installed.
Then you need to figure if you shall use this version or use your python3.10(recommended).
You most make sure that pip -V or pip3- V or python -m pip -V or python3 -m pip -V
install to correct Python version test with which python or which python3.

Thanks.
I wonder why there is no Python 3.8 in the list of Python alternatives.
Concerning python 3.10 ... I can't use it directly because if 3.10 is pointed as python3, some ubuntu tools (e.g. terminal) don't run.
I guess the only solution to use python 3.10 with my actual ubuntu release is to create virtual environment.
Otherwise - upgrade ubuntu to 22.0, that comes with python 3.10.

Going back to pdfminer.six, is it used the same way as pdfminer?
For example, the PDFPageInterpreter module still present in pdfminer.six?
Reply
#26
I have seen numbers that state there are about 10 million python developers in the world.
A large number of these will be using Ubuntu, without a hint of a python problem.

I would suggest that you find a friend or colleague who understands the OS well to help you get your system straightened out.
Once they get all working properly, don't mess with the OS at all, ask for help.
This will save you much grief.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pyside6 module not found ForeverNoob 4 1,409 Aug-18-2023, 04:36 PM
Last Post: snippsat
  Module Not Found Error bitoded 4 1,408 Jan-01-2023, 09:08 AM
Last Post: bitoded
  Module not found question sighhhh12 0 1,498 Sep-09-2022, 05:43 AM
Last Post: sighhhh12
  [SOLVED] Tkinter module not found Milan 7 24,036 Aug-05-2022, 09:45 PM
Last Post: woooee
  No module found when I run a main.py tomtom 2 1,474 Jul-20-2022, 09:24 AM
Last Post: tomtom
  "ModuleNotFoundError: No module named 'PyQt5.QtWidgets'; 'PyQt5' is not a package" chipx 3 7,444 Dec-09-2021, 07:05 AM
Last Post: chipx
Question Setuptools CLI program ModuleNotFoundError after splitting up module into package Postbote 1 2,318 Nov-25-2021, 06:35 PM
Last Post: Postbote
  No Module found in other directory than source code [SOLVED] AlphaInc 1 2,059 Nov-10-2021, 04:34 PM
Last Post: AlphaInc
  pdfminer to csv mfernandes 2 2,826 Jun-16-2021, 10:54 AM
Last Post: mfernandes
  KafkaUtils module not found on spark 3 pyspark aupres 2 7,378 Feb-17-2021, 09:40 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020