Re: Why not being able to call modules from lib folder into test folder although I have __init__.py file both?

2019-04-25 Thread dieter
Arup Rakshit writes: > I am not able to call modules from lib folder in my test folder, but outside > of tests folder I can access them. How should I fix this? > > Mocks$ tree . > . > ├── lib > │ ├── __init__.py > │ ├── __pycache__ > │ │ ├── __init__.cpython-37.pyc > │ │ └── product.c

Re: How to catch a usefull error message ?

2019-04-25 Thread Vincent Vande Vyvre
Le 25/04/19 à 08:25, Chris Angelico a écrit : 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 : Why a SystemError ? The SystemError means that you're us

Re: Running virtualenv to set the ENV

2019-04-25 Thread Rich Shepard
On Thu, 25 Apr 2019, Cameron Simpson wrote: Personally, I like to treat the virtualenv as a source for third party modules needed by the project. I explicitly do not like to pollute it with project code - that way revision control can ignore the whole venv tree and it can be blown away/rebuilt f

Re: Importing module from another subdirectory

2019-04-25 Thread Rich Shepard
On Thu, 25 Apr 2019, dieter wrote: The means that "test_act_de.py" has not extended "sys.path" appropriately. Dieter, That's what I thought. When Python starts a script ("gui/test_act_de.py" in your case), it automatically extends "sys.path" with the folder containing the script ("gui" in y

Why not being able to call modules from lib folder into test folder although I have __init__.py file both?

2019-04-25 Thread Arup Rakshit
I am not able to call modules from lib folder in my test folder, but outside of tests folder I can access them. How should I fix this? Mocks$ tree . . ├── lib │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── product.cpython-37.pyc │ └── product.py └── test

EuroPython 2019: Call for Proposals

2019-04-25 Thread M.-A. Lemburg
We are happy to announce the Call for Proposals is now open. The CfP will close on Sunday in two weeks: * Sunday, May 12 23:59:59 CEST * Please submit your proposal via our website: * https://ep2019.europython.eu/events/call-for-proposals/ * We’re looking for proposals

EuroPython 2019: Launching our website

2019-04-25 Thread M.-A. Lemburg
We are happy to announce the launch of our website for EuroPython 2019: * https://ep2019.europython.eu/ * Thanks to Artur, Patrick and our web WG, the website now comes with a renovated layout, modern technology and new features. At the same time, we are launching the CFP for t

Re: How to catch a usefull error message ?

2019-04-25 Thread Gregory Ewing
Vincent Vande Vyvre wrote: But the "return 0" is a common case for an "Foo_init()" see: https://docs.python.org/3.5//extending/newtypes.html#adding-data-and-methods-to-the-basic-example Look carefully at the init function from that example: static int Noddy_init(Noddy *self, PyObject