Boostr



0 votes
4 views
I've seen this question asked before but none of the answers seem to work for me. I am using python version 2.7.13 In my code I have ..

import base64
import httplib2
Now when I run it on my own pc it works fine, but when I run it on my works p.c. behind a firewall I get ..

Traceback (most recent call last):

File "mail4.py", line 2, in

import httplib2

File "C:\Python27\lib\site-packages\httplib2__init__.py", line 39, in

import urllib

File "C:\mypy\urllib.py", line 1, in

import requests

File "C:\Python27\lib\site-packages\requests__init__.py", line 43, in

import urllib3

File "C:\Python27\lib\site-packages\urllib3__init__.py", line 8, in

from .connectionpool import (

File "C:\Python27\lib\site-packages\urllib3\connectionpool.py", line 35, in

from .request import RequestMethods>

File "C:\Python27\lib\site-packages\urllib3\request.py", line 10, in >

from .packages.six.moves.urllib.parse import urlencode

ImportError: cannot import name urlencode

I've tried setting proxies.

I've tried uninstalling and re-installing six

Also

from urllib.parse import urlencode
All to no avail ?
asked Dec 30, 2017 in python by Amrendra | 4 views



Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Related Questions



Welcome to Knowledge Boostr, where you can ask questions and receive answers from other members of the community.
This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

http://boostr.in Q&A for professional and enthusiast programmers http://boostr.in Q&A for professional and enthusiast programmers http://boostr.in Q&A for professional and enthusiast programmers http://boostr.in Q&A for professional and enthusiast programmers


23,494 questions
40,169 answers
12 comments
23,610 users