Coder Social home page Coder Social logo

Comments (7)

shenalexw avatar shenalexw commented on August 24, 2024 1

I have the same issue as well on an intel macbook

from pdftotext.

jalan avatar jalan commented on August 24, 2024

How are you installing python, poppler, and pdftotext? I think most people use brew these days, in which case I believe everything works on M1 Macs, thanks to #86. But I don't have an M1 Mac to do any testing.

from pdftotext.

anprieto avatar anprieto commented on August 24, 2024

This is what I do:

  1. Install python 3.10
  2. Install command line developer tools
  3. pip3 install pdftotext from terminal
  4. Open IDLE, type import pdftotext
  5. I get this error:
    Traceback (most recent call last): File "<pyshell#9>", line 1, in import pdftotext ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdftotext.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_ZN7poppler24set_debug_error_functionEPFvRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPvES9'

I'm not super expert, and I don't understand the difference with using brew or not. With my previous mac I ended up with multiple versions of packages. I'll try though

from pdftotext.

jalan avatar jalan commented on August 24, 2024

Folks, if you're going to post here at all, please post details that might help someone to help you. Or at least answer my questions when I ask for details about how you have installed each component.

As an example, if the question is "How are you installing python, poppler, and pdftotext?", then "I install python 3.10" is not really answering the question, is it?

from pdftotext.

anprieto avatar anprieto commented on August 24, 2024

Hi jalan,

Let me be more specific:
I installed python 3.10, by downloading it from the official page (https://www.python.org/downloads/) and just executing. Nothing more. Mostly I use IDLE to develop.
I installed Command Line tools, from the apple store.
I don't use brew, that's why I mentioned I install pdftotext as "pip3 install pdftotext from terminal".
There is no more to it. It just does not work. Maybe with brew does, but I don't like that option.
I finally ended up using an alternative, Tika parser. Its output it's similar to pdftotext.
I'm not an advanced developer, so I cannot say anything more unless the question is more specific. Maybe other M1 users with more experience have the same problem and can help.

from pdftotext.

shenalexw avatar shenalexw commented on August 24, 2024

I was able to to do it by upgrading my python to 3.10. I went to the link https://www.python.org/downloads/ and proceeded to install pdftotext using pip3 install pdftotext and it worked! I was using python 3.8 previously and it would not work.

from pdftotext.

jalan avatar jalan commented on August 24, 2024

I don't think there's anything to fix here. See #100 for an example of everything working on an M1 Mac.

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.