KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Note that I searched SO for this error and while there were many similar questions, I didn't find one that addressed this particular issue. I'm working on a Python module that looks like this: /com /company /foo /bar I'm editing a source file within the bar directory and attempting to import classes that live in the foo directory. I've tried importing the files the following ways: from com.company.foo import * from company.foo import * from foo import * import com.company.foo import company.foo import foo Each of these produces a similar error: ImportError: no module named com.company.foo I have __init__.py files in each of the directories, including the directory that contains com . Not sure what I'm doing wrong here - thanks in advance for you assistance!
Tags (comma-separated)
Save Edits
Cancel