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

No module named 'setuptools' with run_project.py #166

Open
mikael1234 opened this issue Oct 28, 2024 · 0 comments
Open

No module named 'setuptools' with run_project.py #166

mikael1234 opened this issue Oct 28, 2024 · 0 comments

Comments

@mikael1234
Copy link

mikael1234 commented Oct 28, 2024

sudo apt-get install python3-setuptools
[sudo] password for xx:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-setuptools is already the newest version (68.1.2-2ubuntu1.1).
python3-setuptools set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.


lib/python3.12/site-packages/torchtext/data/init.py:4: UserWarning:
/!\ IMPORTANT WARNING ABOUT TORCHTEXT STATUS /!
Torchtext is deprecated and the last released version will be 0.18 (this one). You can silence this warning by calling the following at the beginnign of your scripts: import torchtext; torchtext.disable_torchtext_deprecation_warning()
warnings.warn(torchtext._TORCHTEXT_DEPRECATION_MSG)
Traceback (most recent call last):
File "project/pdf2markdown/scripts/run_project.py", line 5, in
from pdf2markdown import PDF2MARKDOWN
File "project/pdf2markdown/scripts/pdf2markdown.py", line 13, in
from pdf_extract_kit.tasks.ocr.task import OCRTask
File "project/pdf2markdown/scripts/../../../pdf_extract_kit/tasks/init.py", line 5, in
from pdf_extract_kit.tasks.ocr.task import OCRTask
File "project/pdf2markdown/scripts/../../../pdf_extract_kit/tasks/ocr/init.py", line 1, in
from pdf_extract_kit.tasks.ocr.models.paddle_ocr import ModifiedPaddleOCR
File "project/pdf2markdown/scripts/../../../pdf_extract_kit/tasks/ocr/models/paddle_ocr.py", line 10, in
from paddleocr import PaddleOCR
File "lib/python3.12/site-packages/paddleocr/init.py", line 14, in
from .paddleocr import *
File "/lib/python3.12/site-packages/paddleocr/paddleocr.py", line 21, in
import paddle
File "lib/python3.12/site-packages/paddle/init.py", line 28, in
from .base import core # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^
File "lib/python3.12/site-packages/paddle/base/init.py", line 77, in
from . import dataset
File "lib/python3.12/site-packages/paddle/base/dataset.py", line 20, in
from ..utils import deprecated
File lib/python3.12/site-packages/paddle/utils/init.py", line 16, in
from . import ( # noqa: F401
File "lib/python3.12/site-packages/paddle/utils/cpp_extension/init.py", line 15, in
from .cpp_extension import (
File "lib/python3.12/site-packages/paddle/utils/cpp_extension/cpp_extension.py", line 21, in
import setuptools
ModuleNotFoundError: No module named 'setuptools'

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