Giter Club home page Giter Club logo

Comments (8)

jalan avatar jalan commented on September 25, 2024 3

Did you install the dependencies? brew install pkg-config poppler is the usual way to do it on macOS.

from pdftotext.

jalan avatar jalan commented on September 25, 2024

Can you provide more detail? What command did you type? What was the full output?

from pdftotext.

R470R avatar R470R commented on September 25, 2024

simply typed pip install pdftotext on terminal, and received the following error

Owners-MacBook-Pro:~ owner$ pip install pdftotext
You are using pip version 6.1.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pdftotext
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/pdftotext/
Could not find a version that satisfies the requirement pdftotext (from versions: )
No matching distribution found for pdftotext

from pdftotext.

R470R avatar R470R commented on September 25, 2024

already solved it , needed to disable ipv6 while using pip due to my wi-fi router I think

from pdftotext.

jalan avatar jalan commented on September 25, 2024

👍

from pdftotext.

R470R avatar R470R commented on September 25, 2024

Now I'm getting this error

Owners-MacBook-Pro:~ owner$ pip install pdftotext
You are using pip version 6.1.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pdftotext
Using cached https://files.pythonhosted.org/packages/a6/a7/c202adb0bcd3adc3030b0c5f7f0e21f62a721913e93296e6c4ddc305cbd3/pdftotext-2.1.2.tar.gz
Installing collected packages: pdftotext
Running setup.py install for pdftotext
Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/private/var/folders/vh/ktk4_qrn5k7_043z22q7y2p00000gn/T/pip-build-mzgEx9/pdftotext/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/vh/ktk4_qrn5k7_043z22q7y2p00000gn/T/pip-S6ghdk-record/install-record.txt --single-version-externally-managed --compile:
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running install
running build
running build_ext
building 'pdftotext' extension
creating build
creating build/temp.macosx-10.14-intel-2.7
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPOPPLER_CPP_AT_LEAST_0_30_0=0 -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pdftotext.cpp -o build/temp.macosx-10.14-intel-2.7/pdftotext.o -Wall -mmacosx-version-min=10.9
pdftotext.cpp:3:10: fatal error: 'poppler/cpp/poppler-document.h' file not found
#include <poppler/cpp/poppler-document.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'cc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/vh/ktk4_qrn5k7_043z22q7y2p00000gn/T/pip-build-mzgEx9/pdftotext/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/vh/ktk4_qrn5k7_043z22q7y2p00000gn/T/pip-S6ghdk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/vh/ktk4_qrn5k7_043z22q7y2p00000gn/T/pip-build-mzgEx9/pdftotext

from pdftotext.

vandelouw avatar vandelouw commented on September 25, 2024

Hi @R470R, did you solve the problem ? I have the same issue...

from pdftotext.

davydany avatar davydany commented on September 25, 2024

Still having the same issue in 2022, on a M1 Macbook Pro. Anyone else have this issue? I tried all the things mentioned on this post.

from pdftotext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.