xavctn / img2table

img2table is a table identification and extraction Python Library for PDF and images, based on OpenCV image processing
MIT License
581 stars 76 forks source link

Kernel keeps restarting #179

Open AchBou96 opened 8 months ago

AchBou96 commented 8 months ago

Hello,

I dont seem to be able to import PDF nor Image from from img2table.document The kernel keeps restarting. I tried reinstalling the library and everything but it just doesn't work Any solutions please ?

Thanks in advance

shivamsinghs485 commented 8 months ago

if you are using jupyter kernel, whenever you hit a max threshold limit of either CPU or memory your kernel will be auto killed and restarted. to validate this you may wanna monitor your resource usage while you run this.

AchBou96 commented 8 months ago

Hello, Thank you for your answer, i highly doubt it's ressource wise since i run it on a M1 pro macbook with 16g of memory and the problem actually doesnt depend on the IDE, tried the same thing in spyder and other IDEs and it keeps crashing The actual line that makes the kernel restart is just the import

paarivarik-engineer commented 8 months ago

Interesting. I have been running this whole thing on my m2 pro 16gb everything works fine.

AchBou96 commented 8 months ago

how did you install the package ? using pip or conda ?

paarivarik-engineer commented 8 months ago

Pip

AchBou96 commented 8 months ago

I dont understand what's the issue here, i tried everything and the kernel still crash even to install it with brew