Import Python Module Fails (http.cookies)
From what I've learned from my research here and elsewhere, it seems that if a) a module is located in the Python search path or b) contained in a package that is in the Python sea
Solution 1:
You added the Django top-level package to your sys.path
:
C:\Python33\Lib\site-packages\django
Remove that entry, and don't add top-level packages to your path. Python finds the http
top-level package in that directory first, so you are now effectively importing the django.http
package, which does not have a cookies
module.
You should only add the parent directory of a package to your path. C:\Python33\Lib\site-packages
and C:\Python33\Lib
are both already listed, so you do not need any of the following:
c:\Python33\Lib\http
C:\Python33\Lib\site-packages\django
C:\Python33\Lib\site-packages\django\bin
C:\Python33\lib\site-packages\win32
C:\Python33\lib\site-packages\win32\libC:\Python33\lib\site-packages\Pythonwin
Post a Comment for "Import Python Module Fails (http.cookies)"