Cannot import cookies

F

Ferrous Cranus

Hello from some reason 'http' module is missing and i cannot use pip to install it. please help/ i'am on CentOS v6.4

Code:
File "metrites.py", line 7, in <module>
from http import cookies
ImportError: No module named http

=======================================

root@secure [/home/nikos/www/cgi-bin]# pip install http
Downloading/unpacking http
Downloading http-0.02.tar.gz
Running setup.py egg_info for package http
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_root/http/setup.py", line 3, in <module>
import http
File "./http/__init__.py", line 17, in <module>
from request import Request
ImportError: No module named 'request'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 16, in <module>

File "/tmp/pip_build_root/http/setup.py", line 3, in <module>

import http

File "./http/__init__.py", line 17, in <module>

from request import Request

ImportError: No module named 'request'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/http
Storing complete log in /root/.pip/pip.log
root@secure [/home/nikos/www/cgi-bin]#



But up until now i was using 'from http import cookies' in Python 3.3.2

This is the standard library to get cookies from.

import cookielib
import urllib2

also fail to be found.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top