Giter Club home page Giter Club logo

Comments (17)

codereverser avatar codereverser commented on August 19, 2024

If you don't mind, can you please send me a cropped screenshot of just the first scheme entry from the CAS (with all personal data removed) ? something like

cas_screenshot

from casparser.

bharath4793 avatar bharath4793 commented on August 19, 2024

from casparser.

codereverser avatar codereverser commented on August 19, 2024

looks like you missed to attach the file

from casparser.

bharath4793 avatar bharath4793 commented on August 19, 2024

from casparser.

bharath4793 avatar bharath4793 commented on August 19, 2024

from casparser.

codereverser avatar codereverser commented on August 19, 2024

The image is still not visible here. Looks like github doesn't support attaching images in "Reply via email" .

Can you please email me the file if you are having issues uploading it here? My email is available in my profile. [codereverser .at. gmail .dot. com]

from casparser.

bharath4793 avatar bharath4793 commented on August 19, 2024

I have mailed you and attaching the snapshot here

Screen Shot 2021-01-13 at 4 24 07 PM

from casparser.

codereverser avatar codereverser commented on August 19, 2024

Many thanks!
I've pushed a commit that should resolve this issue. Can you please update your code and test?

from casparser.

bharath4793 avatar bharath4793 commented on August 19, 2024

any idea on how to reimport the changes you have done because when I uninstall the requirements and reinstall it using pip, I think it's reinstalling from the cache.

from casparser.

bharath4793 avatar bharath4793 commented on August 19, 2024

the previous error seems to be resolved, but getting below error

raise CASParseError("Unable to parse investor data")

casparser.exceptions.CASParseError: Unable to parse investor data

from casparser.

codereverser avatar codereverser commented on August 19, 2024

I've pushed a new version to sort the issues . Try installing it by

pip install -U 'casparser[mupdf]==0.4.1'

If the error still persists, please give force_pdfminer option a try and let me know

via API,

data = read_cas_pdf(filename, password, force_pdfminer=True)

or via CLI,

casparser -p password --force-pdfminer filename

from casparser.

bharath4793 avatar bharath4793 commented on August 19, 2024

even after adding the above parameter the error still persists

Traceback (most recent call last): File "<project dir>/parse_mf_cams_pdf.py", line 113, in <module> csv_json() File "<project dir>/parse_mf_cams_pdf.py", line 96, in csv_json data = casparser.read_cas_pdf(pdf_path, "password", force_pdfminer=True) File "<project dir>/venv/lib/python3.8/site-packages/casparser/parsers/__init__.py", line 25, in read_cas_pdf partial_cas_data = cas_pdf_to_text(filename, password) File "<project dir>/venv/lib/python3.8/site-packages/casparser/parsers/pdfminer.py", line 150, in cas_pdf_to_text investor_info = parse_investor_info(layout, *page.mediabox[2:]) File "<project dir>/venv/lib/python3.8/site-packages/casparser/parsers/pdfminer.py", line 53, in parse_investor_info raise CASParseError("Unable to parse investor data") casparser.exceptions.CASParseError: Unable to parse investor data

with Cli getting below error
Error parsing pdf file:: Unable to parse investor data

from casparser.

codereverser avatar codereverser commented on August 19, 2024

fixed in 76cf582

from casparser.

developerdiary avatar developerdiary commented on August 19, 2024

I installed the latest package still getting same issue "Unable to parse investor data"

from casparser.

codereverser avatar codereverser commented on August 19, 2024

In that case, it would be difficult to fix this without looking at the actual CAS file (or at least the layout of investor info). It is working for all the sample files I have. May be the contact details are in a different format than the ones I've seen.

Can you please send me the casparser version?

casparser --version

from casparser.

developerdiary avatar developerdiary commented on August 19, 2024

Version : 0.7.4
I can share with you my CAS file. Please share your email address

from casparser.

codereverser avatar codereverser commented on August 19, 2024

CAS file would be super helpful. many thanks! may be it is some regression bug in one of the new releases.

my email id is there in the profile https://github.com/codereverser

from casparser.

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.