Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Apr 25, 2021 15:49
I upgraded to pip 21.1 and got the error:
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /Users/bobhihi/anaconda3/include/python3.8/UNKNOWN
sysconfig: /Users/bobhihi/anaconda3/include/python3.8
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Apr 25, 2021 15:43
Indent the for loops (so you won't get an IndentationError)
Apr 25, 2021 15:42
Maybe you could use .index() (although that would find the first instance of the number)
Apr 25, 2021 15:37
Yeah; thanks!
Apr 25, 2021 15:36
hmm I'll take a look into it
Apr 25, 2021 15:34
Are there any good (emphasis on the good) alternatives to pytesseract for OCR?
Apr 24, 2021 19:48
Oh yeah...
Apr 24, 2021 19:47
@Mostafa What do you mean "for math"...
Apr 24, 2021 19:44
Because pytesseract requires you to translate to PNG before parsing it
Apr 24, 2021 19:41
My understanding of GPL is that you must distribute the source code and license it under equivalent terms...
Apr 24, 2021 19:39
Licensing is very confusing
Apr 24, 2021 19:33
If that's the case, any other OCR engines (also licensed non-copyleft)?
Apr 24, 2021 19:31
It's part of a much larger project that we plan to distribute; part of that project means OCR-ing some PDFs, which means using pytesseract which means converting to an image
Apr 24, 2021 19:30
Well, without dependencies licensed under GPL
Apr 24, 2021 19:29
Yes; that is correct (looked forever xD)
Apr 24, 2021 19:26
Hey guys- Anyone know how to export the first page of a PDF as a JPG or PNG without a module (or dependency of the module) licensed under a copyleft license? (examples include Wand, which uses ImageMagick which uses Ghostscript which is under AGPL, or pdf2image with Poppler, also under GNU GPL)
Apr 13, 2021 18:37
I appreciate that Andras, but I guess it is very narrow.
Apr 13, 2021 18:34
Anyone know how to merge XDP file with XFA-compliant PDF?