Код: Выделить всё
import UnavailableModule
class Bob:
def useful_func(self, arg):
# Do useful stuff (doesn't use UnavailableModule)
Код: Выделить всё
from foo.Bob import useful_func
Код: Выделить всё
problem: [Error 126] The specified module could not be found
An exception has occurred, use %tb to see the full traceback.
Код: Выделить всё
C:\...\bar.py in ()
----> 1 from foo.Bob import useful_func
C:\...\foo.py in ()
----> 1 import UnavailableModule
Подробнее здесь: https://stackoverflow.com/questions/429 ... -that-file