[ create a new paste ] login | about

Link: http://codepad.org/dQo20KGr    [ raw code | fork ]

Plain Text, pasted on Aug 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
E:\Dropbox\dev\python\importing is hard\app\components>another_tool.py
Traceback (most recent call last):
  File "E:\Dropbox\dev\python\importing is hard\app\components\another_tool.py",
 line 1, in <module>
    from app import general_useful_things
ImportError: No module named app

E:\Dropbox\dev\python\importing is hard\app\components>another_tool.py
Traceback (most recent call last):
  File "E:\Dropbox\dev\python\importing is hard\app\components\another_tool.py",
 line 1, in <module>
    from app.framework import general_useful_things
ImportError: No module named app.framework

E:\Dropbox\dev\python\importing is hard\app\components>another_tool.py
Traceback (most recent call last):
  File "E:\Dropbox\dev\python\importing is hard\app\components\another_tool.py",
 line 1, in <module>
    from ..framework import general_useful_things
ValueError: Attempted relative import in non-package


Create a new paste based on this one


Comments: