-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
So, to keep it simple. Ubuntu 12.10 has python 3.2 pre installed and it is linked to "python3". I downloaded python 3.3 and it's command is "python3.3". However, I downloaded pySide for python3 from synaptic. Using "from PySide.QtCore import *" fails on python3.3. BUT, when I ran just "python3" (aka…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I was trying to install python3-setuptools, and when i run
$ sudo apt-get install python3-setuptools
I get this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I'm trying to install pip or setup tools form python 3.2 in debian 6.
First case:
apt-get install python3-pip...OK
python3 easy_install.py webob
Searching for webob
Reading http://pypi.python.org/simple/webob/
Reading http://webob.org/
Reading http://pythonpaste.org/webob/
Best match: WebOb 1…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
After very few issues only I moved my application from Python2 to Python3 making sure it will still run with Python 2.7, and hence has python = 2.7 as dependency only.
This was mainly done because Python3, and some dependencies are not installed in a default 12.04 LTS, and I do not want my users…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
The following was reported after I attempted to report the problem back to Ubuntu:
The problem cannot be reported:
You have some obsolete package versions installed. Please upgrade the
following packages and check if the problem still occurs:
ubuntu-release-upgrader-gtk, apport, apport-gtk…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm having a problem sending basic AUTH over urllib2. I took a look at this article, and followed the example. My code:
passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
passman.add_password(None, "api.foursquare.com", username, password)
urllib2.install_opener(urllib2.build_opener(urllib2.HTTPBasicAuthHandler(passman)))
req…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey I am trying to publish a score to Facebook through python's urllib2 library.
import urllib2,urllib
url = "https://graph.facebook.com/USER_ID/scores"
data = {}
data['score']=SCORE
data['access_token']='APP_ACCESS_TOKEN'
data_encode = urllib.urlencode(data)
request = urllib2.Request(url, data_encode)
response…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to create a secure channel between my server and a remote web service. I'll be using HTTPS with a client certificate. I'll also need to validate the certificate presented by the remote service.
How can I use my own client certificate with urllib2?
What will I need to do in my code to ensure…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to make POST request to CAS SSO server login page, and CAS login page has few input hidden params which are dynamically populated through java. I don't know how to read these hidden param values from response and pass in to CAS server. Without passing these hidden params I am not able to login…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello. Is it possible to fetch pages with urllib2 through a SOCKS proxy on a one socks server per opener basic? I've seen the solution using setdefaultproxy method, but I need to have different socks in different openers.
>>> More