2
votes
0answers
22 views

python encoding for turkish characters

I have to read pdf books that are turkish stories. I found a library which is called pyPdf. My test function whichis the below doesn't encode correctly. I think, I need to have turkish codec packet. ...
2
votes
0answers
116 views

Pything tkinter: plot function with canvas, HOMEWORK

An assignment for uni asks me to use tkinter to create a GUI program that takes a function, color, start point, end point and how many steps to take between (line drawn between each step). I have had ...
2
votes
0answers
44 views

How to change all permisson of folder in python

i use python to add all allow or all deny permisson of folder: info=win32security.DACL_SECURITY_INFORMATION sd=win32security.GetFileSecurity(str(path),info) acl=sd.GetSecurityDescriptorDacl() ...
2
votes
0answers
66 views

Python/Django 1.5 DatabaseWrapper thread error

Throwing the following DatabaseError in Django 1.5.1 (and 1.5.0) and mysql when I runserver and attempt to load a local version of the web app: DatabaseError at / DatabaseWrapper objects ...
2
votes
0answers
38 views

How to create virtualenv with specific site-wide installed libraries?

I would like to know if it is possible to create virtual environments that only using certain system installed libraries. For examples I have scipy, numpy and matplotlib installed system-wide. I ...
2
votes
0answers
113 views

Using Tweepy to sort tweets by location

Using tweepy we can search for tweets by locations and for multiple locations, such as: stream.filter(locations=[-122.75,36.8,-121.75,37.8,-74,40,-73,41], track=terms) However when I try to put all ...
2
votes
0answers
365 views

Python 2.7 ImportError: no module named _ssl

I'm trying to build python 2.7 in Redhat with SSL. I've uncommented out the lines in Modules/Setup.dist: SSL=/urs/local/ssl _ssl _ssl.c -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl ...
2
votes
0answers
61 views

distutils - How to add a .pyw script if windows

I am distributing a simple library/application which includes a script with GUI. Under windows I want this to be run by pythonw.exe, preferrably by making it a .pyw file. root/ lib/ ...
2
votes
0answers
123 views

Read Matlab matrix into Python

When I'm trying to read a Matlab matrix into python, I get the following error >>> scipy.io.loadmat("Dynamical.mat") Traceback (most recent call last): File "<stdin>", line 1, in ...
2
votes
0answers
76 views

I get NameError when extending Python's Rdio module

I've been using Python to access the Rdio API a fair bit so decided to add a couple methods to the Rdio module to make life easier. I keep getting stymied. Here, as background, is some of the Rdio ...
2
votes
0answers
147 views

Installing password protected network printer in Python with win32print

I am trying to connect to/install a network printer on my local machine through Python 2.7 and the win32print module. When attempting to connect to the printer normally (entering the IP address of the ...
2
votes
0answers
286 views

Broken Python 2.7 GAE installation causing ImportError

Gae sdk was running without errors (using 2.7 and webapp2), but stopped suddenly. Now I cannot even get the example from the getting started page to work. I've done clean installs of both python ...
1
vote
0answers
25 views

how to line up text in list box python

i have three lists populating a list box. what i would like to know is there a way to format the phrases so that the names are all in line then the dates and then the info. i have tried to use + to ...
1
vote
0answers
8 views

Call a macro with parameters : Python win32com API

What I want to do is call a macro from my python code. Here isa sample of the sources : xl = win32.gencache.EnsureDispatch('Excel.Application') xl.Visible = 1 xl.Workbooks.Open("C:\\Program ...
1
vote
0answers
21 views

How can I work with a GLib.Array in Python?

I am writing a plugin for Rhythmbox, wherein a signal raised is passing in an object of type GArray. The documentation for GLib Arrays shows me a few methods I am interested in, but am unable to ...

1 2 3 4 5 49
15 30 50 per page