Aug-27-2018, 10:23 PM
Explained in a more abstract way, a program is finding a class in a place that i can't determine:
Datum 1:
have a program P that instantiates a class C in file c.py with two methods, A and B
import the_dir_where_C_is.C import C
from P: A is called before B
this produces an error: Attribute Error: 'C' object has no attribute 'A'
if I comment the call to A, B executes w/o problem
Datum 2:
if I go to file c.py and mangle the 'B' method (by giving it name X), the progra P still runs
Conclusion 1:
program P is NOT using c.py to get class C.
Datum 3:
The prohect only has one
If B is being obtained elsewhere then there must be a file "z.py" which contains it
greping for 'B' should find the file
I used find from / and it only found one c.py
I grepped huge chunks of the computer for "def B" and found nothing
$PYTHONPATH is empty
The Pycharm IDE finds the missing "def A" without problems
Datum 1:
have a program P that instantiates a class C in file c.py with two methods, A and B
import the_dir_where_C_is.C import C
from P: A is called before B
this produces an error: Attribute Error: 'C' object has no attribute 'A'
if I comment the call to A, B executes w/o problem
Datum 2:
if I go to file c.py and mangle the 'B' method (by giving it name X), the progra P still runs
Conclusion 1:
program P is NOT using c.py to get class C.
Datum 3:
The prohect only has one
If B is being obtained elsewhere then there must be a file "z.py" which contains it
greping for 'B' should find the file
I used find from / and it only found one c.py
I grepped huge chunks of the computer for "def B" and found nothing
$PYTHONPATH is empty
The Pycharm IDE finds the missing "def A" without problems