Optical Character Recognition (OCR)

2019-04-24 Thread meherfrioui2017
Hello , I want to extract text Arabic from image please can anyone tell me is there way to figure out this kind of problem tanks -- https://mail.python.org/mailman/listinfo/python-list

Read the table data from PDF files in Python

2019-04-24 Thread mrawat213
Hello, Anyone knows how to fetch the data from PDF file having tables with other text in Python. Need to fetch some cell values based on condition from that table. Thanks, Mukesh -- https://mail.python.org/mailman/listinfo/python-list

Re: Optical Character Recognition (OCR)

2019-04-24 Thread Chris Angelico
On Wed, Apr 24, 2019 at 5:44 PM wrote: > > Hello , > > I want to extract text Arabic from image please can anyone tell me is there > way to figure out this kind of problem > Arabic is somewhat harder than many languages, but I'm sure it's possible. Have you searched the internet for OCR librarie

Re: Read the table data from PDF files in Python

2019-04-24 Thread Rhodri James
On 24/04/2019 10:36, mrawat...@gmail.com wrote: Anyone knows how to fetch the data from PDF file having tables with other text in Python. Need to fetch some cell values based on condition from that table. Hi there! If you have any alternatives to doing this, use them. Extracting data from P

Re: Read the table data from PDF files in Python

2019-04-24 Thread Peter Pearson
On Wed, 24 Apr 2019 02:36:27 -0700 (PDT), mrawat...@gmail.com wrote: > Hello, > Anyone knows how to fetch the data from PDF file having tables with > other text in Python. Need to fetch some cell values based on > condition from that table. You might find pdftotext useful. The command . . . pd

Re: Importing module from another subdirectory

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, dieter wrote: "sys.path" tweaks are typically employed with a "central" Python installation, to have it look at non-standard places for module/packages under specific circumstances. Almost all python packages installed here are built using the SlackBuilds.org scripts (I ru

Re: Importing module from another subdirectory

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, dieter wrote: With a "virtualenv", there is usually no need to tweak "sys.path" -- you simply install everything your project needs into the "virtualenv". Dieter, Okay. I just upgraded pip to 19.1 for python3 and virtualenv to version 16.5.0. Now I'll learn how to use it

Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
I've installed virtualenv in Slackware-14.2. Now I want to set up the ENV in an application's development directory. Which is the CWD for running virtualenv and spcifying the path to the project's directoy? Rich -- https://mail.python.org/mailman

Re: Importing module from another subdirectory

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, Rich Shepard wrote: If I correctly understand the process, in bustrac.py I'll add import sys.path sys.path.append(controller, model, scripts, views) Never mind. I've installed virtualenv and will work within it. Regards, Rich -- https://mail.python.org/mailman/listinfo/p

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) { PyObject *tmp; char *fname; if (!PyArg_ParseTuple(args, "s", &fname)) ret

Re: Running virtualenv to set the ENV [RESOLVED]

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, Rich Shepard wrote: Which is the CWD for running virtualenv and spcifying the path to the project's directoy? The project's subdirectory. It's up and running now. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 23/04/19 à 21:48, MRAB a écrit : On 2019-04-23 19:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 19:23, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 3:18 AM Vincent Vande Vyvre wrote: Hi, In a CPython lib I have an _init() method wich take one argument, a file name.   char *fname

Re: How to catch a usefull error message ?

2019-04-24 Thread MRAB
On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) { PyObject *tmp; char *fname; if (!P

Re: How to catch a usefull error message ?

2019-04-24 Thread MRAB
On 2019-04-23 21:03, Vincent Vande Vyvre wrote: Le 23/04/19 à 21:48, MRAB a écrit : On 2019-04-23 19:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 19:23, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 3:18 AM Vincent Vande Vyvre wrote: Hi, In a CPython lib I have an _init() method wich tak

Re: Read the table data from PDF files in Python

2019-04-24 Thread Mark Kettner
I've heard about camelot a while ago: https://camelot-py.readthedocs.io/ but I never really used it and cannot provide any support or comparison to other data-extraction tools or the like. -- Mit freundlichen Gruessen / Best Regards Mark Kettner -- https://mail.python.org/mailman/listinfo/pyth

Re: Importing module from another subdirectory

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, Rich Shepard wrote: The current project's directory structure is: I changed package names so there are no duplicate names for packages and modules. bustrac/ README.rst bustrac.py* controller/ classes/ model.py scripts/ gui/ test_act

Re: Running virtualenv to set the ENV

2019-04-24 Thread Chris Angelico
On Thu, Apr 25, 2019 at 8:55 AM Dennis Lee Bieber wrote: > > On Wed, 24 Apr 2019 09:17:28 -0700 (PDT), Rich Shepard > declaimed the following: > > >I've installed virtualenv in Slackware-14.2. Now I want to set up the ENV > > in an application's >

Re: Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, Dennis Lee Bieber wrote: That... sounds backwards... So far as I understand it (I've only used a virtual when following a book for Flask) you create the virtual environment first, and then set up the application development INSIDE that environment. The project dir

Re: Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
On Thu, 25 Apr 2019, Chris Angelico wrote: Can be either way. What I do is "python3 -m venv env" in the app directory, which creates a subdirectory called "env". (I also have some bash integration that means that any time it sees a directory called "env", it auto-activates that venv.) So the ven

Re: Running virtualenv to set the ENV

2019-04-24 Thread Cameron Simpson
On 24Apr2019 16:50, Rich Shepard wrote: Can be either way. What I do is "python3 -m venv env" in the app directory, which creates a subdirectory called "env". (I also have some bash integration that means that any time it sees a directory called "env", it auto-activates that venv.) So the venv i

Re: Running virtualenv to set the ENV

2019-04-24 Thread Chris Angelico
On Thu, Apr 25, 2019 at 11:40 AM Cameron Simpson wrote: > > On 24Apr2019 16:50, Rich Shepard wrote: > >>Can be either way. What I do is "python3 -m venv env" in the app > >>directory, which creates a subdirectory called "env". (I also have some > >>bash integration that means that any time it see

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 24/04/19 à 19:57, MRAB a écrit : On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) {   PyObject *

Re: Running virtualenv to set the ENV

2019-04-24 Thread Cameron Simpson
On 25Apr2019 12:05, Chris Angelico wrote: venv-requirements.txt Periodically I run "pip freeze >venv-requirements.txt"; this file is revision controlled. That way I can rebuild an equivalent venv somewhere else later. Any particular reason for this name? If not, I would generally recomme

Re: Importing module from another subdirectory

2019-04-24 Thread dieter
Rich Shepard writes: >> bustrac/ >>README.rst >>bustrac.py* >>controller/ >>classes/ > model.py >>scripts/ >>gui/ > test_act_de.py > > test_act_de.py tries to import model.py from the classes package: > from classes import model as m > > Running in bustrac

Re: How to catch a usefull error message ?

2019-04-24 Thread Chris Angelico
On Thu, Apr 25, 2019 at 2:32 PM Vincent Vande Vyvre wrote: > > Le 24/04/19 à 19:57, MRAB a écrit : > > On 2019-04-23 20:21, Vincent Vande Vyvre wrote: > >> Le 23/04/19 à 20:54, Chris Angelico a écrit : > >>> On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre > >>> wrote: > >>> > >>> Into the lib

Re: Running virtualenv to set the ENV

2019-04-24 Thread Chris Angelico
On Thu, Apr 25, 2019 at 2:38 PM Cameron Simpson wrote: > > On 25Apr2019 12:05, Chris Angelico wrote: > >> venv-requirements.txt > >> Periodically I run "pip freeze >venv-requirements.txt"; this file is > >> revision controlled. That way I can rebuild an equivalent venv > >> somewhere else l

Re: Running virtualenv to set the ENV

2019-04-24 Thread dieter
Rich Shepard writes: > Which is the CWD for running virtualenv and spcifying the path to the > project's directoy? I mentioned "virtualenv" together with "setuptools". "virtualenv" gives you a (light weight) isolated Python installation (sharing things with the base Python installation). You typ