Solution for importing the packages
Status: Beta
Brought to you by:
rliebscher
Sometimes there is an error as "Traceback (most recent call last):
File "D:\fuzzy\pytipper3.py", line 102, in <module>
fuzzy.doc.structure.dot.dot.print_header(f,"XXX")
AttributeError: 'module' object has no attribute 'dot'"
that says Python could not find the package;
By adding the module name in init .py file
such as
import dot
you can solve the problem.
Putting the module name in init.py is very useful.
init .py file for directory " fuzzy.doc.structure.dot."
Could you please provide the full traceback, I don't see the reason for error.
In windows (OS) , sometimes it says ,there is no module such as "dot ",
It is a little strange , because the empty "init" file is enough to trace and follow the direction of modules.