Title
stringlengths
15
150
A_Id
int64
2.98k
72.4M
Users Score
int64
-17
470
Q_Score
int64
0
5.69k
ViewCount
int64
18
4.06M
Database and SQL
int64
0
1
Tags
stringlengths
6
105
Answer
stringlengths
11
6.38k
GUI and Desktop Applications
int64
0
1
System Administration and DevOps
int64
1
1
Networking and APIs
int64
0
1
Other
int64
0
1
CreationDate
stringlengths
23
23
AnswerCount
int64
1
64
Score
float64
-1
1.2
is_accepted
bool
2 classes
Q_Id
int64
1.85k
44.1M
Python Basics and Environment
int64
0
1
Data Science and Machine Learning
int64
0
1
Web Development
int64
0
1
Available Count
int64
1
17
Question
stringlengths
41
29k
Will adding Python to a machine with LibreOffice interfere with LibreOffice Python macro execution?
21,052,890
0
1
543
0
python,macros,libreoffice
Unless LibreOffice was programmed sloppy, it should not That would not be smart: using bundled software for anything else than what it was bundled for would not be smart
0
1
0
0
2014-01-10T19:15:00.000
3
0
false
21,052,563
1
0
0
2
I have LibreOffice installed on a Windows machine. LibreOffice comes with a bundled python.exe (version 3.3) to allow you to write LibreOffice macros in Python. This works fine. But the bundled python routines don't come with the IDLE python ide as far as I can see. 1) If I download and install Python on my machine ...
Will adding Python to a machine with LibreOffice interfere with LibreOffice Python macro execution?
28,912,818
0
1
543
0
python,macros,libreoffice
LibreOffice comes bundled with it's own copy of python. (Python 3.3 I think) So the answer to your question is no, it will not. I have found that a simple way of debugging python macros in libreoffice is to run libreoffice from the command line and put print commands in the macros. This at least allows you to trace whe...
0
1
0
0
2014-01-10T19:15:00.000
3
0
false
21,052,563
1
0
0
2
I have LibreOffice installed on a Windows machine. LibreOffice comes with a bundled python.exe (version 3.3) to allow you to write LibreOffice macros in Python. This works fine. But the bundled python routines don't come with the IDLE python ide as far as I can see. 1) If I download and install Python on my machine ...
DatastoreInputReader using entity kind with ancestor
21,069,451
0
0
57
0
python,google-app-engine
You cannot specify an ancestor for the DatastoreInputReader -- except for a namespace -- so the pipeline will always go through all your Domain entities in a given namespace.
0
1
0
0
2014-01-11T21:48:00.000
1
1.2
true
21,068,311
0
0
1
1
Is there a way to use the standard DatastoreInputReader from AppEngine's mapreduce with entity kind requiring ancestors ? Let's say I have an entity kind Domain with ancestor kind SuperDomain (useful for transactions), where do I specify in mapreduce_pipeline.MapreducePipeline how to use a specific SuperDomain entity a...
python version doesn't update on OS X
21,069,629
0
1
57
0
macos,python-3.x,upgrade
As per Martijn Pieters's comment, I used python3 and now it works as expected.
0
1
0
0
2014-01-12T00:07:00.000
1
1.2
true
21,069,586
1
0
0
1
I've just installed python 3.3.3 on my OS X 10.9.1, however when I run python from the terminal the version that is indicated is 2.7.5. What have I done wrong and how can I make it right?
How should I schedule my task in django
21,097,588
0
0
114
0
python,django,scheduled-tasks
Basically you can use Celery's preiodic tasks with expire option, which makes you sure that your tasks will not be executed twice. Also you could run your own script with infinite loop like which will run calculation. If your calculation will run more than minute you can spawn your tasks using eventlet or gevent. Othe...
0
1
0
0
2014-01-13T11:39:00.000
1
0
false
21,090,365
0
0
1
1
In my django project, I need to collect data from about 50 remote servers into the local database minutely or every 30-seconds. Though it works with crontab in the remote servers, I want to do this in the project. Firstly, I consider the django-celery. However it does well in asynchronous processing and the collect-dat...
How does a cascading http proxy server works?
21,121,694
1
0
1,271
0
python,networking,proxy,network-programming,squid
Cascading proxy is just the proxy connecting to an upstream proxy. It speaks the same HTTP proxy requests to the upstream proxy as a browser does, e.g. using full urls (method://host[:port]/path..) in the requests instead of just /path and using CONNECT for https tunneling instead of directly connecting with SSL.
0
1
1
0
2014-01-14T04:17:00.000
1
1.2
true
21,106,004
0
0
0
1
Software like CCProxy in windows allows you to setup a cascading proxy. In squid we can do the same by mentioning a cache_peer directive? How does this work at application and TCP/IP layer ? Does it form a socket connection to the upstream proxy server ? Any details or RFCs in relation to this? PS - I want to implement...
How to use CherrPy as Web server and Bottle as Application to support multiple virtual hosts?
21,117,703
0
2
882
0
python,virtualhost,cherrypy,bottle
perhaps you can simply put nginx as reverse proxy and configure it to send the traffic to the two domains to the right upstream (the cherryPy webserver).
0
1
0
0
2014-01-14T15:13:00.000
4
0
false
21,117,002
0
0
1
1
I have a website (which running in Amazon EC2 Instance) running Python Bottle application with CherryPy as its front end web server. Now I need to add another website with a different domain name already registered. To reduce the cost, I want to utilize the existing website host to do that. Obviously, virtual host is ...
SVN User authentication using Command Line or Python
21,130,791
0
1
3,064
0
python,svn,tortoisesvn,pysvn
Take a look at the documentation for pysvn.Client.callback_* and you will see that the methods you have to provide handle prompting for passwords and errors if they don't match.
0
1
0
0
2014-01-15T06:38:00.000
3
0
false
21,130,642
0
0
0
1
I need to verify if some user is valid SVN user or not in my application. I want to achieve this using SVN commandline tools/Tortoise SVN Commndline or Python in windows. I looked up PySVN but it seems to me that there is no way to authenticate a current user in that library. Please suggest some way of doing the same. ...
How to turn on the Auto-Complete in Python Wing IDE?
21,143,719
0
1
2,346
0
python,autocomplete,ide,wing-ide
You are probably using Wing 101, which is a very scaled back version that does not have auto-completion. It was designed for teaching beginning programmers and the professors we worked with in creating it felt auto-completion should be left off. Wing IDE Personal and Wing IDE Pro both have auto-completion and much mor...
0
1
0
0
2014-01-15T16:39:00.000
1
0
false
21,143,142
1
0
0
1
I am using the Python IDE Wing and just cannot seem to find the auto-complete option. Is there even such option in this program?
Can llvm execute code from managed languages?
21,189,967
0
4
214
0
python,c++,llvm,llvm-ir
After some reading and some conversations I believe the answer is that the ExecutionEngine essentially executes code as if it was native C code. Which means if you wanted to execute lua/python/javascript code ontop of llvm you would need to actually send the bitcode for that runtime. Then the runtime could parse and ex...
0
1
0
1
2014-01-16T17:15:00.000
1
1.2
true
21,168,440
0
0
0
1
I'm making an application and I would like to load and execute llvm bitcode using the ExecutionEngine. I have managed to do this with really simple C code compiled via clang so far. My thought is, if I use llvm for this project then it could be more language agnostic than say, specifically picking lua/python/javascript...
running python file in windows services
21,183,630
1
1
97
0
python,windows-services
A service is nothing but a process/program that run on regular interval checks and runs accordingly. If you have script already written, then another script,service_script which will do the following It should check if the program is required to run ? (Syn is required if two parties are not in same state) At what inte...
0
1
0
0
2014-01-17T03:11:00.000
2
1.2
true
21,177,140
1
0
0
1
I have a python file that will synchronize my MySql Database from my own server to the local server. I want to install it as a windows services every time my local server boot up. Can you help me? I want to add also that can I make a GUI for that services just like an Apache that will display beside the task bar clock?...
Learning python for security, having trouble with su
21,179,425
-1
4
230
0
python,linux,security
If you just want to do this for learning, you can easily build a fake environment with your own faked passwd-file. You can use some of the built-in python encrypt method to generate passwords. this has the advantage of proper test cases, you know what you are looking for and where you should succeed or fail.
0
1
0
1
2014-01-17T06:29:00.000
2
-0.099668
false
21,179,274
0
0
0
1
Preface: I am fully aware that this could be illegal if not on a test machine. I am doing this as a learning exercise for learning python for security and penetration testing. This will ONLY be done on a linux machine that I own and have full control over. I am learning python as my first scripting language hopefully f...
running a script from a directory in ipython
21,197,017
0
0
1,630
0
python,scripting,path,ipython
sys.path only affects imports, not IPython's %run. The run magic is like calling python script.py - you have to cd into the directory where scripts are, or pass the full path to those scripts.
0
1
0
0
2014-01-17T21:39:00.000
3
0
false
21,196,399
1
0
0
2
im pretty new to all of this so please try to bear with me. I've got a directory set up where i dump all the scripts im working on, and i'm trying to make it so that i can run the scripts from within that directory directly from ipython. so far, ive add an init.py to the aforementined directory, and have tried appendin...
running a script from a directory in ipython
50,347,295
-1
0
1,630
0
python,scripting,path,ipython
in Ipython notebook type : %run script_name.py
0
1
0
0
2014-01-17T21:39:00.000
3
-0.066568
false
21,196,399
1
0
0
2
im pretty new to all of this so please try to bear with me. I've got a directory set up where i dump all the scripts im working on, and i'm trying to make it so that i can run the scripts from within that directory directly from ipython. so far, ive add an init.py to the aforementined directory, and have tried appendin...
Python starting subprocess as admin without calling process being admin
21,368,197
1
0
1,811
0
python,windows,admin,cx-freeze
After much hunting I have found a solution, I tried using: os.popen os.startfile subprocess.call subprocess.Popen and finally os.system as os.system is essentially the same as typing on the command line or putting the arguments into a batch file and then executing it this asks for the executables default permissions,...
0
1
0
0
2014-01-18T14:16:00.000
1
0.197375
false
21,205,278
0
0
0
1
I am trying to write a program in python that consists of several parts: a config utility a hardware monitor a background process The idea being that once installed (using cx_freeze) the hardware monitor is constantly running in the background, when a piece of compatible hardware (using d2xx driver for FTDI devices) ...
Run python program from Erlang
21,226,686
0
2
1,127
0
python,while-loop,erlang,request
Ports communicate with Erlang VM by standard input/output. Does your python program use stdin/stdout for other purposes? If yes - it may be a reason of the problem.
0
1
0
1
2014-01-18T14:37:00.000
2
0
false
21,205,508
0
0
0
1
I want to read some data from a port in Python in a while true. Then I want to grab the data from Python in Erlang on a function call. So technically in this while true some global variables is gonna be set and on the request from erlang those variables will be return. I am using erlport for this communication but what...
Google App Engine: Using Ajax
21,220,947
2
1
281
0
python,ajax,google-app-engine
AJAX has nothing to do with PHP: it's a fancy name for a technique whose goal is to provide a way for the browser to communicate asynchronously with an HTTP server. It is independent of whatever is powering that server (be it PHP, Python or anything). I fear that you might not be able to understand this yet, so I recom...
0
1
0
0
2014-01-19T18:10:00.000
2
0.197375
false
21,220,592
0
0
1
1
I was planning to develop an ecommerce site using Google App Engine in Python. Now, I want to use Ajax for some added dynamic features. However, I read somewhere that I need to know PHP in order to use AJAX on my website. So, is there no way I can use Ajax in Python in Google App Engine? Also, I would be using the weba...
How do I run a Django 1.6 project with multiple instances running off the same server, using the same db backend?
21,233,816
2
1
222
0
python,django,deployment,paas
If I was doing it (and I did a similar thing with a PHP application I inherited), I'd have a fabric command that allows me to provision a new instance. This could be broken up into the requisite steps (check-out code, create database, syncdb/migrate, create DNS entry, start web server). I'd probably do something sane l...
0
1
0
0
2014-01-20T02:31:00.000
1
0.379949
false
21,225,368
0
0
1
1
I have a Django 1.6 project (stored in a Bitbucket Git repo) that I wish to host on a VPS. The idea is that when someone purchases a copy of the software I have written, I can type in a few simple commands that will take a designated copy of the code from Git, create a new instance of the project with its own subdomain...
IPTABLE rules to get all network packets in promisc mode
21,226,492
1
0
607
0
python,rules,sniffer
In a modern switched network, you system is in general only going to see two kinds of traffic: unicast traffic explicitly directed to your system and broadcast traffic that is visible to all systems. Nothing you can do in your code will make other traffic on the network visible to you. Enabling promiscuous mode on yo...
0
1
0
0
2014-01-20T04:44:00.000
1
1.2
true
21,226,387
0
0
0
1
I am running Ubuntu on my machine and want to write some sniffer scripts. But I am getting packets related to my NIC only even if I run my Interface in promisc mode. Is there any IPTABLE rules that i need to put on so that i can get entrie packets on the network?? Please help. I am using python for everything i am doin...
Shared Library files .so x86 would work on ARM?
21,242,449
2
0
346
0
python,shared-libraries,raspberry-pi,ctype
You'll need to recompile them from source. x86 and ARM are completely different microprocessor architectures, and programs/libraries compiled for one will not work on the other.
0
1
0
1
2014-01-20T19:24:00.000
1
0.379949
false
21,242,436
0
0
0
1
I have .so files that work well on my Ubuntu 32bit, would I need different version of them to work on my Raspberry Pi? I am loading them using python. If it wont work, What should I go through?
Will XLWT work in linux platform?
21,259,963
2
2
379
0
python,linux,excel
Yes, xlrd/xlwt work fine on Linux. Most python code and libraries run the same on any platform.
0
1
0
1
2014-01-21T13:00:00.000
1
1.2
true
21,258,884
0
0
0
1
I am working on a project which is based on python windows version. Now the customer wants the project to be extended to linux platform also. My project uses the package xlwt, xlrd for writing the results to the excel sheet. So here, Will these packages are compatible with the linux platform also? Can I use this packa...
Shared Persistent Storage in Python
21,263,740
1
1
240
0
python,multiprocess
Using lock files may be an option. For example, each process checks for a file like "/target_dir/lock" before write. If file exists, process will not write anything. So you have to run separate monitor process, which checks directory size, and creates or deletes lock file.
0
1
0
0
2014-01-21T16:21:00.000
1
1.2
true
21,263,589
1
0
0
1
Several processes are each writing a file to a directory. The goal is to control the size of the directory such that whenever it reaches a size (S), all processes stop writing to the directory and discard the file they are about to write. If the size then becomes lower than S because some of those files were removed, t...
cronjob on CentOS running a python script
21,266,639
0
0
3,668
0
python,cron
Each line that contains a job must end in a newline character.
0
1
0
1
2014-01-21T18:35:00.000
2
0
false
21,266,405
0
0
0
1
I wrote a Python script which I need it to run every 5 mins. My server is running CentOS 6.4 Final. Here's what I did in detail. After logging into the server with an account has root access, I did cd /var/spool/cron/, I can see a couple of files has different usernames on it. Edit my file (the one has my username on ...
Safely removing program from usr/local/bin on Mac OSX 10.6.8?
21,274,416
5
2
10,163
0
python,macos,command-line,scrapy,bin
First, next time you get a Permission Denied from pip uninstall foo, try sudo pip uninstall foo rather than trying to do it manually. But it's too late to do that now, you've already erased the files that pip needs to do the uninstall. Also: Up until this point, I've resisted the urge to just delete it. But I know th...
0
1
0
0
2014-01-22T04:43:00.000
1
1.2
true
21,274,359
0
0
1
1
So I've been having a lot of trouble lately with a messy install of Scrapy. While I was learning the command line, I ended up installing with pip and then easy_install at the same time. Idk what kinda mess that made. I tried the command pip uninstall scrapy, and it gave me the following error: OSError: [Errno 13] Perm...
Python package management in Mac OS X
23,864,710
0
1
867
0
python,macos,shell,installation
pip and easy_install are for python libraries. apt-get, brew, fink, port, etc. These tools are 'distro style' package management tools. They have one area of overlap in terms of 'why do i need one of each?' and that is Library dependencies. pip is the tool endorsed by the most python developers and the python packa...
0
1
0
0
2014-01-22T17:37:00.000
1
0
false
21,289,974
1
0
0
1
Every time I tried to install a new package for python on Mac OS X, I had this issue which these packages had different ways to setup with different package management tools. Specially for new versions of Mac OS X 10.9 Mavericks, some of installers are buggy, then I needed to switch between them. I'm asking for a short...
downloading or displaying BlobProperties from Google App Engine
21,323,348
0
0
97
0
python,google-app-engine
It entirely depends on what you are currently storing in the BlobProperty. Since it is typically used to store data with an upper size limit of 1 MB, I am assuming that you are storing it for images or even some files, which are under that limit. In all probability, you might want to either provide a link to the user ...
0
1
0
0
2014-01-24T01:28:00.000
2
0
false
21,322,741
0
0
1
1
How would I go about selecting and downloading or displaying individual entries from the Datastore. Specifically if those entries contain a BlobProperty.
Building Python Interpreter on Windows with UCS4 support
21,390,894
1
1
636
0
python
Python uses configure tools to configure the build. If you can't run the configure script, you may want to install cygwin in order to run the configure script. You'll want to pass the flag --enable-unicode=ucs4 to get UCS4, and you'll likely need a number of other flags to get it to work with the microsoft compiler. O...
0
1
0
0
2014-01-24T03:53:00.000
1
1.2
true
21,324,095
1
0
0
1
How can I configure the Python Interpreter build project to build with UCS4 support on Windows? For example, I want to create Python 2.6.9, 64 bits + UCS4 support for Windows. We want to produce pre-compiled python files (.pyc files) for multiple platforms. Due to our existing build setup we wish to build all the .py...
Keeping the .dll and .pyd files in other directory
23,767,893
0
0
853
0
python,dll,python-3.x,cx-freeze
Python for Windows really requires that the main pythonXX.dll (in this case, python33.dll) exists in C:\windows\system32\ In all of our various combinations of installing Python to different locations, network drives, etc. we've always had to use a little batch file to copy pythonXX.dll into the system32 dir. I don't t...
0
1
0
0
2014-01-24T20:46:00.000
1
0
false
21,342,188
0
0
0
1
I am using cx_Freeze to convert Python scripts to Windows executable. I am using cxfreeze script present in the Scripts directory. I want the executable generated by cxfreeze to be in a different directory and the .dll's and .pyd's in a different one. When I tried to put the two of them in separate directories the .exe...
Installing Python on Mac OS X
21,346,715
1
0
262
0
python,macos,python-3.x
You don't want to actually update the system version of python. But also, python3 is the executable name.
0
1
0
0
2014-01-25T04:33:00.000
3
0.066568
false
21,346,669
1
0
0
1
This should be a really simple question, but I'm a little new to all this. I am trying to update my version of Python on Mac OS X 10.6.8. So, I downloaded Python 3.3 from www.python.org, and ran the .dmg file. This then created a "Python 3.3" icon in my Applications folder. However, when I type "python -V" into the Ter...
Installing Python 2.7 on Windows 8
28,439,616
2
25
140,370
0
python-2.7,path,window,installation
Make sure you don't put a space between the semi-colon and the new folder location that you are adding to the path. For example it should look like... {last path entry};C:\Python27;C:\Python27\Scripts; ...not... {last path entry}; C:\Python27; C:\Python27\Scripts;
0
1
0
0
2014-01-27T03:38:00.000
9
0.044415
false
21,372,637
1
0
0
3
So I'm trying python 2.7 on my Windows. It is running Windows 8. I cannot add it to my path. I've done the usual: using the advanced system settings, environment variables, adding C:\Python27 in system variables. However, when I type Python in command prompt it says 'python is not recognized ..'
Installing Python 2.7 on Windows 8
21,372,892
5
25
140,370
0
python-2.7,path,window,installation
System variables usually require a restart to become effective. Does it still not work after a restart?
0
1
0
0
2014-01-27T03:38:00.000
9
0.110656
false
21,372,637
1
0
0
3
So I'm trying python 2.7 on my Windows. It is running Windows 8. I cannot add it to my path. I've done the usual: using the advanced system settings, environment variables, adding C:\Python27 in system variables. However, when I type Python in command prompt it says 'python is not recognized ..'
Installing Python 2.7 on Windows 8
21,373,239
1
25
140,370
0
python-2.7,path,window,installation
i'm using python 2.7 in win 8 too but no problem with that. maybe you need to reastart your computer like wclear said, or you can run python command line program that included in python installation folder, i think below IDLE program. hope it help.
0
1
0
0
2014-01-27T03:38:00.000
9
0.022219
false
21,372,637
1
0
0
3
So I'm trying python 2.7 on my Windows. It is running Windows 8. I cannot add it to my path. I've done the usual: using the advanced system settings, environment variables, adding C:\Python27 in system variables. However, when I type Python in command prompt it says 'python is not recognized ..'
How to deal with processing interdependent files in a pipeline
21,394,049
0
2
126
0
python,linux,functional-programming,puppet,pipeline
I think you are asking how you can transform multiple files when there are dependencies between the files, and possibly parallelise. The problem of resolving the dependencies is called a topological sort. Fortunately, the make utility will handle all of this for you, and you can use the -j flag to parallelise, which is...
0
1
0
0
2014-01-27T21:45:00.000
1
0
false
21,392,346
0
0
0
1
I am trying to determine the best way to build a sort of pipeline system with many interdependent files that will be put through it, and I am wondering if anyone has specific recommendations regarding tools or approaches. We work mostly in Python and Linux. We get files of experimental data that are delivered to "inbox...
How can I install mysql-python in a virtualenv without compiling anything?
27,750,040
0
2
398
0
python,virtualenv
There is the option for virtualenv of --system-site-packages which will "Give access to the global site-packages modules to the virtual environment." If the parent host already has the mysql-python module installed, it will use that.
0
1
0
0
2014-01-28T15:11:00.000
1
0
false
21,409,370
1
0
0
1
I don't have access to gcc on my shared hosting provider (Hostgator), so when I try to install mysql-python from within a virtualenv using pip install MySQL-python, I get unable to execute gcc: Permission denied. Is there another way to install the MySQL-python library in my virtualenv?
Python not recognizing the greater than sign?
21,412,006
0
0
274
0
python,batch-file,unicode
If you are using shell constructs such as redirection, you need the parameter shell=True.
0
1
0
0
2014-01-28T16:56:00.000
2
0
false
21,411,914
0
0
0
1
I am using Python to create windows commands using subprocess.call(command) where command is a string I've generated for the Windows command. I need the results of my command to output to a .txt file so I use 2>> C:\Users\me\out.txt as part of command except Python does not seem to recognize the greater than character...
How to list all Python versions installed in the system?
21,434,929
4
8
4,374
0
python
I'm writing a Python IDE and I want to let user to choose the interpreter for executing the program. Just do it like other IDEs then and simply supply a dialog where users can add interpreters they want to be able to run the code with. Eclipse does this for example for Java Runtimes, and it’s perfectly fine to have it...
0
1
0
0
2014-01-29T14:51:00.000
2
0.379949
false
21,434,533
1
0
0
1
I need to present the user a list of Python installations to choose from for executing something. I suppose in Windows I could get this information from registry. Don't know about Linux and Mac. Any hints? Or maybe you even know a place where I could find Python code for this? EDIT: it is not important that I find rea...
Creating a web service for Qualtrics written in Python on Google App Engine
21,449,385
0
0
909
0
python,web-services,google-app-engine,rest,qualtrics
I am familiar with Qualtrics but I will answer (b) first. You can write a Python Web Service in a variety of ways, depending on your choice: You could write a simple get handler Use Google Cloud Endpoints Use one of several Web Services Python libraries Having said that, a quick glance at Qualtrics indicated that it ...
0
1
0
0
2014-01-30T00:55:00.000
1
1.2
true
21,445,897
0
0
1
1
Has anyone out there created a a.) web service for Qualtrics or b.) a Python web service on Google App Engine? I need to build in some functionality to a Qualtrics survey that seems only a web service (in the Qualtrics Survey Flow) could do, like passing parameters to a web service then getting a response back. I've l...
Python IDLE GUI not starting
26,771,569
0
1
2,234
0
windows-8.1,python-idle
Find file HOME/.idlerc/config-keys.cfg, where on Win7 HOME would be 'C:/Users/yourloginname', and delete the key binding or, if there is nothing else in the file or nothing you want to keep, the whole file. If you were to run Idle from a console with python -m idlelib, you would probably see an error message. (Yes, yo...
0
1
0
0
2014-01-30T22:45:00.000
1
0
false
21,469,046
0
0
0
1
I feel like I have been coming the internet for days with absolutely no result. I have taken some web programming classes, and would like to learn some python, just because programming is wicked interesting altogether, and have run into a fairly large hurdle given my experience. the problem is this: Python.exe (or is i...
How to run a system command from a django web application?
21,489,049
1
0
148
0
python,linux,django,celery
Here is one approach: in your Django web application, write a message to a queue (e.g., RabbitMQ) containing the information that you need. In a separate system, read the message from the queue and perform any file actions. You can indeed use Celery for setting up this system.
0
1
0
0
2014-01-31T17:29:00.000
1
1.2
true
21,486,362
0
0
1
1
Does anyone knows of a proven and simple way of running a system command from a django application? Maybe using celery? ... From my research, it's a problematic task, since it involves permissions and insecure approaches to the problem. Am i right? EDIT: Use case: delete some files on a remote machine. Thanks
how do I get the name of application launched by subprocess in python?
21,498,354
1
0
35
0
python,subprocess
Given you're working in a Linux/POSIX environment you could read the EDITOR environment variable using the os.environ map.
0
1
0
0
2014-02-01T12:57:00.000
1
1.2
true
21,498,342
1
0
0
1
I am launching the text editor but for different users the default text editor could be different, so how do I get the name of which text editor is being used just to handle if an error occur switch to different text editor ?
Changing from PIL to PILLOW on a mac
22,077,355
2
0
301
0
python,macos,python-imaging-library,pillow
Reinstall X11 from XQuartz.org Install the latest XCode Install the command line tools: xcode-select --install Worked for me on mavericks
0
1
0
0
2014-02-01T20:20:00.000
1
0.379949
false
21,503,147
0
0
0
1
I'm having trouble upgrading from PIL to PILLOW on my mac. I tried "brew install libtiff lbjpeg webp littlecms" but homebrew couldn't find the lbjpeg - any tips?
How do I tell Aptana Studio to use Python virtualenv?
24,506,641
5
3
2,520
0
python,eclipse,python-2.7,ubuntu
Configure Aptana Studio's python interpreter( you can configure more than one) In aptana, Window -> Preferences -> Interpreter Python and create a New interpreter. Select the python executable from the virtual environment (in windows it is python.exe which resides in Scripts subfoler of the virtualenv,where as in ubunt...
0
1
0
0
2014-02-01T22:40:00.000
1
0.761594
false
21,504,617
1
0
0
1
I did some searches on this topic and the solutions didn't work for me. I am running both a Linux (Ubuntu) environment and Windows. My system is Windows 8.1 but I have virtualbox with Ubuntu on that. Starting with Windows... I created a venv directory off the root of the e drive. Created a project folder and then r...
How do you return a Partial response in app engine python endpoints?
23,165,174
0
0
418
0
google-app-engine,python-2.7,google-cloud-endpoints
From what I gather, Google has enabled partial response for their APIs, but has not yet explained how to enable it for custom APIs. I'm assuming if they do let us know, it might entail annotations, and possibly overriding a method or two. I've been looking also, to no avail. I've been looking into this just due to a re...
0
1
1
0
2014-02-02T21:10:00.000
2
1.2
true
21,516,287
0
0
1
1
I am learning endpoints and saw that other Google APIs have this "fields" query attribute. Also it appears in the api explorer. I would like to get a partial response for my api also, but when using the fields selector from the api explorer it is simply ignored by the server. Do I need to implement something in the s...
Emacs freezing when asking Jedi/Auto Complete information while Interpreter is busy
21,522,470
2
3
673
0
python,python-2.7,python-3.x,emacs,autocomplete
Maybe disable auto-complete at all? BTW from my feeling relying on company, not jedi, the distraction from auto-complete in most cases is far over gain. Emacs comes with a lot of great tools making edits faster: abbrev, dabbrev etc. which seem much more efficient. Well, if jedi delivers really intelligent completions, ...
0
1
0
1
2014-02-02T23:35:00.000
1
1.2
true
21,517,747
0
0
0
1
I just now realize what is causing the trouble: Whenever the interpreter is busy, my Emacs buffer containing the python script buffer gets stuck, as I suspect that Emacs is trying to get the information of a function, and display it as a pop up. My usual solution is to spam C-g, but that gets old quickly. It has been b...
Installing pycurl on mac
22,518,780
12
5
10,669
0
python,libcurl,pycurl
Use one of the two methods Method 1: sudo easy_install pycurl Method 2: pip install pycurl
0
1
0
0
2014-02-03T07:09:00.000
2
1
false
21,521,587
1
0
0
1
I am very new to python and need help installing the pycurl library on my machine. I am running python 2.7 at the moment. A brief tutorial would be much appreciated.
uwsgi attach-daemon before python process starts
21,546,696
2
1
380
0
python,process,uwsgi
Use --lazy-apps, in this way the app will be loaded by each worker after the master has been fully spawned (and its external daemons started)
0
1
0
0
2014-02-03T21:24:00.000
1
0.379949
false
21,538,086
0
0
0
1
I have a separate process that I want to run alongside the python process I have managed by uWSGI. I wanted to use the attach-daemon option to start this process, but it seems that bash command specified in attach-daemon does not get called until after the python process' app gets started up. However, I need the proces...
Pagination in Google App EngineSearch API
37,264,173
1
6
575
0
python,google-app-engine
Sorry to revive this old question, but I have a solution for this issue given a few constraints with possible workarounds. Basically, the cursors for previous pages can be stored and reused for revisiting that page. Constraints: This requires that pagination is done dynamically (e.g. with Javascript) so that older curs...
0
1
0
0
2014-02-04T06:40:00.000
2
0.099668
false
21,545,635
0
0
1
1
I want to do pagination in google app engine search api using cursors (not offset). the forward pagination is straight forward , the problem is how to implement the backward pagination.
can't execute pyw on windows
21,546,717
4
1
16,518
0
python,pythonw
Change the program that opens python files. Assuming you're using Windows, right click any python file (in your case any .pyw file, not .py), properties, change Opens with to pythonw instead of IDLE
0
1
0
0
2014-02-04T06:43:00.000
2
1.2
true
21,545,667
1
0
0
2
I want to hide the console window of a python program, so I change the file extensions to "pyw", but when I open it, the python IDLE show up even though I choose open it with "pythonw.exe" If I use "pythonw test.py" in cmd, it works. So I want to know what's wrong with this and how to solve this, thank you.
can't execute pyw on windows
60,558,957
0
1
16,518
0
python,pythonw
For me, I had multiple version of Python installed that was causing issues. Once I had only had one version, I applied that pythonw.exe was the default for .pyw files and it worked.
0
1
0
0
2014-02-04T06:43:00.000
2
0
false
21,545,667
1
0
0
2
I want to hide the console window of a python program, so I change the file extensions to "pyw", but when I open it, the python IDLE show up even though I choose open it with "pythonw.exe" If I use "pythonw test.py" in cmd, it works. So I want to know what's wrong with this and how to solve this, thank you.
Executable shell file in Windows
21,559,703
0
1
262
0
python,bash,exe,samba
As you've said, this executable file would need to be something that runs on both Linux and Windows. That will exclude binary files, such as compiled C files. What you are left with would be an executable script, which could be Bash Ruby Python PHP Perl If need be the script could simply be a bootstrapper that loads ...
0
1
0
1
2014-02-04T16:32:00.000
3
0
false
21,558,022
0
0
0
1
I have a executable file working in Ubuntu that runs a script in Python and works fine. I have also a shared directory with Samba server. The idea is that everyone (even Windows users) can execute this executable file located in this shared folder to run the script located in my computer. But, how can I make an execut...
Keeping live audio stream synced
27,043,950
0
0
661
0
python,streaming,audio-streaming,ntp,gstreamer
Sorry for bring up an old question but this is something that I am looking into. I believe you need to look at Real Time Streaming Protocol (RTSP) is a network control protocol designed for use in entertainment and communications systems to control streaming media servers. The protocol is used for establishing and cont...
0
1
0
0
2014-02-04T19:18:00.000
2
0
false
21,561,405
0
0
1
2
I'm working on an application to provide multi-room audio to devices and have succeeded in keeping audio playing from a file (e.g. mp3) synced using GST and manually using NTP but I can't seem to get a live audio stream to sync. Essentially I want to be able to stream audio from one device to one or more other devices ...
Keeping live audio stream synced
21,566,534
1
0
661
0
python,streaming,audio-streaming,ntp,gstreamer
Unfortunately, delay as low as 10 milliseconds is noticeable to most folks. Musicians tend to appreciate even lower delay than that. And if you have any of the speakers from different devices within earshot of each other, you're going to run into phase issues at even the slightest unpredictable delay (which is inevit...
0
1
0
0
2014-02-04T19:18:00.000
2
0.099668
false
21,561,405
0
0
1
2
I'm working on an application to provide multi-room audio to devices and have succeeded in keeping audio playing from a file (e.g. mp3) synced using GST and manually using NTP but I can't seem to get a live audio stream to sync. Essentially I want to be able to stream audio from one device to one or more other devices ...
How to use easy_install with python 3.3 while 2.7 is also installed
23,478,462
2
1
727
0
python-2.7,ubuntu,python-3.3,easy-install
Tested on Ubuntu 14.04: 1) Use pip instead of easy_install. It's the way of the future. ;-) 2) sudo apt-get install python3-pip 3) sudo pip3 install AWESOME-PACKAGE
0
1
0
0
2014-02-04T23:44:00.000
1
1.2
true
21,565,926
1
0
0
1
I am using ubuntu with root access and have python 3.3 and 2.7 installed in my system. When I use easy_install by default it installs the package for 2.7. How can I use it to install to 3.3 instead
How to find the breakpoint numbers in pdb (ipdb)?
21,582,431
11
13
4,097
0
python,breakpoints,ipdb
Use the break command. Don't add any line numbers and it will list all instead of adding them.
0
1
0
0
2014-02-05T16:10:00.000
2
1
false
21,582,358
0
0
0
2
Trying to find how to execute ipdb (or pdb) commands such as disable. Calling the h command on disable says disable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of bp numbers. So how whould I get those bp numbers? was looking through the list of commands and couldn't get any t...
How to find the breakpoint numbers in pdb (ipdb)?
21,582,459
-3
13
4,097
0
python,breakpoints,ipdb
info breakpoints or just info b lists all breakpoints.
0
1
0
0
2014-02-05T16:10:00.000
2
-0.291313
false
21,582,358
0
0
0
2
Trying to find how to execute ipdb (or pdb) commands such as disable. Calling the h command on disable says disable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of bp numbers. So how whould I get those bp numbers? was looking through the list of commands and couldn't get any t...
Using python2.7 with Emacs 24.3 and python-mode.el
21,590,370
0
2
1,019
0
python,python-2.7,emacs,emacs24
I don't use python, but from the source to python-mode, I think you should look into customizing the variable python-python-command - It seems to default to the first path command matching "python"; perhaps you can supply it with a custom path?
0
1
0
1
2014-02-05T21:03:00.000
2
0
false
21,588,464
0
0
0
1
I'm new to Emacs and I'm trying to set up my python environment. So far I've learned that using "python-mode.el" in a python buffer C-c C-c loads the contents of the current buffer into an interactive python shell, apparently using what which python yields. In my case that is python 3.3.3. But since I need to get a pyt...
What does the Pydoc module do?
21,591,666
3
19
62,279
0
python,terminal,pydoc
Pydoc is the documentation generation system for Python. Say you can document your functions using the Pydoc standard and then it can be used to generate documentation in your code.
0
1
0
0
2014-02-06T00:24:00.000
10
0.059928
false
21,591,572
1
0
0
4
New to programming and python altogether. In the book I'm learning from, the author suggested I find out the purpose of Pydoc. I did a google search on it, and found a match (from Gnome Terminal) but it didn't make much sense to me. Anyone mind simplifying a bit?
What does the Pydoc module do?
66,218,375
0
19
62,279
0
python,terminal,pydoc
pydoc generates online documentation from docstrings... for example you can see that Numpy.histograms() function's, online documentation is actually made based on that function docstring...
0
1
0
0
2014-02-06T00:24:00.000
10
0
false
21,591,572
1
0
0
4
New to programming and python altogether. In the book I'm learning from, the author suggested I find out the purpose of Pydoc. I did a google search on it, and found a match (from Gnome Terminal) but it didn't make much sense to me. Anyone mind simplifying a bit?
What does the Pydoc module do?
46,895,246
-1
19
62,279
0
python,terminal,pydoc
Concise description provided by to Wikipedia: "Pydoc allows Python programmers to access Python's documentation help files, generate text and HTML pages with documentation specifics, and find the appropriate module for a particular job."
0
1
0
0
2014-02-06T00:24:00.000
10
-0.019997
false
21,591,572
1
0
0
4
New to programming and python altogether. In the book I'm learning from, the author suggested I find out the purpose of Pydoc. I did a google search on it, and found a match (from Gnome Terminal) but it didn't make much sense to me. Anyone mind simplifying a bit?
What does the Pydoc module do?
50,296,072
-1
19
62,279
0
python,terminal,pydoc
Just type pydoc in your terminal where you normaly run python. It will give simple explanation !. : )
0
1
0
0
2014-02-06T00:24:00.000
10
-0.019997
false
21,591,572
1
0
0
4
New to programming and python altogether. In the book I'm learning from, the author suggested I find out the purpose of Pydoc. I did a google search on it, and found a match (from Gnome Terminal) but it didn't make much sense to me. Anyone mind simplifying a bit?
Running jobs on a cluster submitted via qsub from Python. Does it make sense?
21,597,874
1
3
5,882
0
python,cluster-computing,qsub
You obviously have built yourself a string cmd containing a command that you could enter in a shell for running the 2nd program. You are currently using subprocess.call(cmd, shell=True) for executing the 2nd program from a Python script (it then becomes executed within a process on the same machine as the calling scrip...
0
1
0
0
2014-02-06T06:19:00.000
2
0.099668
false
21,595,488
0
0
0
1
I have the situation where I am doing some computation in Python, and based on the outcomes I have a list of target files that are candidates to be passed to 2nd program. For example, I have 50,000 files which contain ~2000 items each. I want to filter for certain items and call a command line program to do some calcul...
Where should I save the Amazon Manifest json file on an app hosted at PythonAnywhere?
21,627,045
2
1
155
0
json,pythonanywhere
You can get to /var/www/static in the File browser. Just click on the '/' in the path at the top of the page and then follow the links. You can also just copy things there from a Bash console. You may need to create the static folder in /var/www if it's not there already.
0
1
0
0
2014-02-07T01:25:00.000
2
0.197375
false
21,617,616
1
0
1
1
I am trying to have my app on Amazon appstore. In order to do this Amazon needs to park a small json file (web-app-manifest.json). If I upload it to the the root of my web site (as suggested), Amazon bot says it cannot access file. Amazon support mention I should save it to /var/www/static but either I don't know how ...
Enthought canopy python -lpython2.7 not found
21,994,749
0
0
241
0
python,debian,enthought,pycuda
Depending on what version of Canopy you're using, try to set your LIBRARY_PATH variable. Example: export LIBRARY_PATH=~/Enthought/lib Then try to build the package. This worked for me but I don't know the root cause as to why Canopy virtual environment isn't setting this variable.
0
1
0
0
2014-02-07T04:28:00.000
1
1.2
true
21,619,353
1
0
0
1
I am using Canopy enthought on a machine without su access. Whenever i try to build any package dependent on python I get this error: /usr/bin/ld: cannot find -lpython2.7 collect2: ld returned 1 exit status error: command 'g++' failed with exit status 1 Any idea what's going wrong? I am running Debian OS. Thanks
Exe created with Pyinstaller in windows 7 is not working in xp and linux
51,320,586
0
2
4,424
0
python,linux,installation,exe,pyinstaller
Pyinstaller does not allow cross compilation. so if you want to have an executable file you should compile your project first in Linux OS and then you may use wine in which you can compile the project to have the windows executable
0
1
0
0
2014-02-07T07:26:00.000
2
0
false
21,621,742
0
0
0
1
I am new to python.I Have a python script for copying files from local machine to sftp location.The script will use the wxpython,pycrypto and ssh modules of python.I created an exe file by using the pyinstaller.My machine is windows 7 64-bit.I used pyinstaller 2.1 and python 2.7.6.amd 64 for creating the exe file.It's ...
Google App Engine (Python): Allow entity 'previewing before 'submit'
21,631,790
4
1
54
0
python,google-app-engine,google-cloud-datastore,app-engine-ndb
It aint that difficult. Abstract: [User]-> Posts [Data] to the [EntityCreatorPreviewHandler] [EntityCreatorPreviewHandler]-> Recieves the data and creates the entity eg: book = Book(title='Test'). [EntityCreatorPreviewHandler]-> Templates the html and basically shows the entity with all it's attributes etc. [EntityC...
0
1
0
0
2014-02-07T15:25:00.000
1
1.2
true
21,631,528
0
0
1
1
I'd like users to create an entity, and preview it, before saving it in the datastore. For example: User completes entity form, then clicks "preview". Forwarded to an entity 'preview' page which allows the user to "submit" and save the entity in the datastore, or "go back" to edit the entity. How can I achieve this?
Python DNS module import error
36,287,320
7
32
147,472
0
python,python-2.7,module,resolver
You could also install the package with pip by using this command: pip install git+https://github.com/rthalley/dnspython
0
1
0
1
2014-02-08T03:57:00.000
15
1
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
67,931,629
0
32
147,472
0
python,python-2.7,module,resolver
If you don't have (or don't want) pip installed there is another way. You can to solve this is to install package with native OS package manager. For example for Debian-based systems this would be command: apt install python3-dnspython
0
1
0
1
2014-02-08T03:57:00.000
15
0
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
66,007,768
0
32
147,472
0
python,python-2.7,module,resolver
I have faced similar issue when importing on mac.i have python 3.7.3 installed Following steps helped me resolve it: pip3 uninstall dnspython sudo -H pip3 install dnspython Import dns Import dns.resolver
0
1
0
1
2014-02-08T03:57:00.000
15
0
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
61,213,715
0
32
147,472
0
python,python-2.7,module,resolver
ok to resolve this First install dns for python by cmd using pip install dnspython (if you use conda first type activate and then you will go in base (in cmd) and then type above code) it will install it in anaconda site package ,copy the location of that site package folder from cmd, and open it . Now copy all dns ...
0
1
0
1
2014-02-08T03:57:00.000
15
0
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
59,751,991
1
32
147,472
0
python,python-2.7,module,resolver
I faced the same problem and solved this like i described below: As You have downloaded and installed dnspython successfully so Enter into folder dnspython You will find dns directory, now copy it Then paste it to inside site-packages directory That's all. Now your problem will go If dnspython isn't installed you ...
0
1
0
1
2014-02-08T03:57:00.000
15
0.013333
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
57,668,403
0
32
147,472
0
python,python-2.7,module,resolver
In my case, I hava writen the code in the file named "dns.py", it's conflict for the package, I have to rename the script filename.
0
1
0
1
2014-02-08T03:57:00.000
15
0
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
57,207,302
1
32
147,472
0
python,python-2.7,module,resolver
I was getting an error while using "import dns.resolver". I tried dnspython, py3dns but they failed. dns won't install. after much hit and try I installed pubdns module and it solved my problem.
0
1
0
1
2014-02-08T03:57:00.000
15
0.013333
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
53,703,267
0
32
147,472
0
python,python-2.7,module,resolver
I installed DNSpython 2.0.0 from the github source, but running 'pip list' showed the old version of dnspython 1.2.0 It only worked after I ran 'pip uninstall dnspython' which removed the old version leaving just 2.0.0 and then 'import dns' ran smoothly
0
1
0
1
2014-02-08T03:57:00.000
15
0
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
40,167,343
0
32
147,472
0
python,python-2.7,module,resolver
This issue can be generated by Symantec End Point Protection (SEP). And I suspect most EPP products could potentially impact your running of scripts. If SEP is disabled, the script will run instantly. Therefore you may need to update the SEP policy to not block python scripts accessing stuff.
0
1
0
1
2014-02-08T03:57:00.000
15
0
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Python DNS module import error
21,643,858
4
32
147,472
0
python,python-2.7,module,resolver
I installed dnspython 1.11.1 on my Ubuntu box using pip install dnspython. I was able to import the dns module without any problems I am using Python 2.7.4 on an Ubuntu based server.
0
1
0
1
2014-02-08T03:57:00.000
15
0.053283
false
21,641,696
0
0
0
10
I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python 2.7.3 $ sudo pip install dnspython Downloading/unpacking dnspyth...
Simple explanation of Google App Engine NDB Datastore
21,658,988
13
17
7,423
1
python,google-app-engine,app-engine-ndb
I think you've overcomplicating things in your mind. When you create an entity, you can either give it a named key that you've chosen yourself, or leave that out and let the datastore choose a numeric ID. Either way, when you call put, the datastore will return the key, which is stored in the form [<entity_kind>, <id_o...
0
1
0
0
2014-02-09T05:53:00.000
2
1.2
true
21,655,862
0
0
1
1
I'm creating a Google App Engine application (python) and I'm learning about the general framework. I've been looking at the tutorial and documentation for the NDB datastore, and I'm having some difficulty wrapping my head around the concepts. I have a large background with SQL databases and I've never worked with any ...
How to make bash script use a particular python version for executing a python script?
21,670,472
0
0
921
0
python,bash
It is probably caused by the following. Your script imports some third-party library which was compiled by an older python version. To fix this, reinstall the up-to-date library.
0
1
0
1
2014-02-10T06:16:00.000
4
1.2
true
21,670,272
0
0
0
2
I have python 2.6 and python installed on my Freebsd box. I want my bash script to execute a particular python script using python2.6 interpreter. It is showing import error.... Undefined symbol "PyUnicodeUCS2_DecodeUTF8"
How to make bash script use a particular python version for executing a python script?
21,670,553
0
0
921
0
python,bash
Use the absolute path to the python version you want.
0
1
0
1
2014-02-10T06:16:00.000
4
0
false
21,670,272
0
0
0
2
I have python 2.6 and python installed on my Freebsd box. I want my bash script to execute a particular python script using python2.6 interpreter. It is showing import error.... Undefined symbol "PyUnicodeUCS2_DecodeUTF8"
Google Drive API + App Engine = time out
21,677,121
0
0
588
0
python,google-app-engine,oauth-2.0,google-drive-api,httplib2
You mention "AppEngine's oauth2 library", but then you say "Drive API calls time out". So modifying the Oauth http library won't affect Drive. Are you using the Google library for your Drive calls, or making direct REST HTTP calls? If the former, try ... HttpRequest.setConnectTimeout(55000) , if the latter just ... ...
0
1
0
0
2014-02-10T10:53:00.000
1
1.2
true
21,675,209
0
0
1
1
So I built an app on App Engine that takes users files and move them to certain folders in the same domain. I made REST api that calls Drive API to list files, rename files, and change permissions etc. On app load, it fires 4 ajax calls to the server to get name and id of folders and checking if certain folder exists. ...
Google App Engine, Illegal string in dataset id when uploading to local datastore
21,805,320
0
0
141
0
python,google-app-engine
I managed to discover the problem on my own. The issue was with adding s~ before the app_id in the app.yaml file. Despite the Google App Engine documentation stating that s~ should be before the app_id for applications using the High Replication Datastore, this apparently causes an error when uploading the the developm...
0
1
0
0
2014-02-12T05:30:00.000
1
1.2
true
21,719,461
0
0
1
1
Using the bulk loader, I've downloaded the live datastore, and am now trying to upload it to the development server. When running the upload_data command to upload the datastore to the dev server I get the following error, BadRequestError: Illegal string "dev~s~app_id" in dataset id. The command I'm using the upload t...
Close all (keep-alive) socket connections in tornado?
21,735,934
1
1
1,783
0
python,sockets,tornado
finish() doesn't apply here because a connection in the "keep-alive" state is not associated with a RequestHandler. In general there's nothing you can (or need to) do with a keep-alive connection except close it, since the browser isn't listening for a response. Websockets are another story - in that case you may wa...
0
1
1
0
2014-02-12T06:29:00.000
2
0.099668
false
21,720,346
0
0
0
1
I'm running a set of tornado instances that handles many requests from a small set of keep-alive connections. When I take down the server for maintenance I want to gracefully close the keep-alive requests so I can take the server down. Is there a way to tell clients "Hey this socket is closing" with Tornado? I looked...
Issue installing python windows extension
21,722,581
1
1
149
0
python-2.7
You should run the exe file as "Administrator". Even if you are in the administrator account, you have to explicitly run it with administrator permission by right clicking on the exe.
0
1
0
0
2014-02-12T07:54:00.000
2
0.099668
false
21,721,827
1
0
0
2
I installed Python 2.7.6 Windows Installer (Windows binary) and then, I was trying to install the extension pywin32-218.win-amd64-py2.7.exe. But everytime I run this extension, I get the issue of "pywin32-218.win-amd64-py2.7.exe has stopped working".
Issue installing python windows extension
28,891,881
0
1
149
0
python-2.7
You need to run it as administrator, anything that modifies folders it is not in or in its folder require root access which is right click -> run as admin in Windows or sudo in mac and linux.
0
1
0
0
2014-02-12T07:54:00.000
2
0
false
21,721,827
1
0
0
2
I installed Python 2.7.6 Windows Installer (Windows binary) and then, I was trying to install the extension pywin32-218.win-amd64-py2.7.exe. But everytime I run this extension, I get the issue of "pywin32-218.win-amd64-py2.7.exe has stopped working".
How to have a natural MacOSX .app of a complex python application (including custom interpreter) via a shell initialization script?
21,756,168
0
0
138
0
python,macos,bundle,.app
I solved the problem, and in hindsight it was rather trivial. In the shell script, I need to invoke my binary with exec, so that the running bash process is replaced (a la execve()) rather than spawning a new process. The only problem is that my interpreter now replaces the icon with the stock one, but I have only one ...
1
1
0
0
2014-02-13T13:11:00.000
2
0
false
21,755,235
0
0
0
1
I am trying to integrate a complex python application (with a custom python interpreter shipped along) for OSX. In order to handle a set of issues due to cross platform requirements, I created a .app bundle pointing at a shell script with its CFExecutable entry in Info.plist. This works, and the invoked shell script st...
PyDev installation not working. No editor. No preferences
39,937,221
0
0
869
0
python,linux,eclipse,pydev,java-7
Debian Jessie . Eclipse Mars 4.1 . I installed whilst my java environment was set to /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java and after the restart no reference to the PyDev install could be found other than in the installation details. After Changing to java 1.8 ( sudo update-alternatives --config java ) and res...
0
1
0
0
2014-02-13T19:29:00.000
2
0
false
21,763,762
1
0
0
1
Hope it helps someone else. So the problem I had was: I installed PyDev into Eclipse Kepler using Eclipse Marketplace. Everything goes on fine and ends successfully. But PyDev doesn't show up anywhere after restart. E.g. no Python Editor, No "PyDev" in the preferences, no PyDev perspective, ... It's as if PyDev isn't i...
Simple way to send emails asynchronously
21,764,727
0
0
345
0
django,python-multithreading,django-commands
If you don't want to implement celery (which in my opinion isn't terribly difficult to setup), then your best bet is probably implementing a very simple queue using either your database. It would probably work along the lines of this: System determines that an email needs to be sent and creates a row in the database ...
0
1
0
0
2014-02-13T19:38:00.000
2
0
false
21,763,924
0
0
1
1
I'm running a django app and when some event occurs I'd like to send email to a list of recipients. I know that using Celery would be an intelligent choice, but I'd like to know if there's another, most simple way to do it without having to install a broker server, supervisor to handle the daemon process running in th...
Does Django Block When Celery Queue Fills?
21,765,816
1
0
400
0
python,django,multithreading,rabbitmq,celery
It's impossible to really answer your question without an in-depth analysis of your actual code AND benchmark protocol, and while having some working experience with Python, Django and Celery I wouldn't be able to do such an in-depth analysis. Now there are a couple very obvious points : if your workers are running o...
0
1
0
0
2014-02-13T20:54:00.000
2
1.2
true
21,765,266
0
0
1
2
I'm doing some metric analysis on on my web app, which makes extensive use of celery. I have one metric which measures the full trip from a post_save signal through a celery task (which itself calls a number of different celery tasks) to the end of that task. I've been hitting the server with up to 100 requests in 5 se...
Does Django Block When Celery Queue Fills?
34,550,948
0
0
400
0
python,django,multithreading,rabbitmq,celery
I'm not sure about slowing down, but it can cause your application to hang. I've had this problem where one application would backup several other queues with no workers. My application could then no longer queue messages. If you open up a django shell and try to queue a task. Then hit ctrl+c. I can't quite remember wh...
0
1
0
0
2014-02-13T20:54:00.000
2
0
false
21,765,266
0
0
1
2
I'm doing some metric analysis on on my web app, which makes extensive use of celery. I have one metric which measures the full trip from a post_save signal through a celery task (which itself calls a number of different celery tasks) to the end of that task. I've been hitting the server with up to 100 requests in 5 se...
Python send jobs to queue processed by Popen
21,790,418
-1
0
222
0
python,queue,popen
Use subprocess.call() instead of Popen, or use Popen.wait().
0
1
0
0
2014-02-14T21:59:00.000
2
-0.099668
false
21,790,271
0
0
0
2
I currently have a working python application, gui with wxpython. I send this application a folder which then gets processed by a command line application via Popen. Each time I run this application it take about 40 mins+ to process before it finishes. While a single job processes I would like to queue up another job, ...
Python send jobs to queue processed by Popen
21,790,443
1
0
222
0
python,queue,popen
Presumably you have either a notification that the task has finished being passed back to the GUI or the GUI is checking the state of the task periodically. In either case you can allow the user to just add to a list of directories to be processed and when your popen task has finished take the first one off of the lis...
0
1
0
0
2014-02-14T21:59:00.000
2
1.2
true
21,790,271
0
0
0
2
I currently have a working python application, gui with wxpython. I send this application a folder which then gets processed by a command line application via Popen. Each time I run this application it take about 40 mins+ to process before it finishes. While a single job processes I would like to queue up another job, ...
Python development on Mac OS X: pure Mac OS or linux in virtualbox
21,791,729
2
1
1,076
0
python,macos
I do all of my main development on OSX. I deploy on a linux box. Pycharm (CE) is your friend.
0
1
0
0
2014-02-14T23:57:00.000
2
0.197375
false
21,791,565
1
0
0
2
I'm new to Mac, and I have OS X 10.9.1. The main question is whether it is better to create a virtual machine with Linux and do port forwarding or set all packages directly to the Mac OS and work with it directly? If I create a virtual machine, I'm not sure how it will affect the health of SSD and ease of development. ...
Python development on Mac OS X: pure Mac OS or linux in virtualbox
21,791,847
3
1
1,076
0
python,macos
On my Mac, I use Python and PyCharm and all the usual Unix tools, and I've always done just fine. Regard OS X as a Unix machine with a very nice GUI on top of it, because it basically is -- Mac OS X is POSIX-compliant, with BSD underpinnings. Why would you even consider doing VirtualBox'd Linux? Even if you don't want ...
0
1
0
0
2014-02-14T23:57:00.000
2
1.2
true
21,791,565
1
0
0
2
I'm new to Mac, and I have OS X 10.9.1. The main question is whether it is better to create a virtual machine with Linux and do port forwarding or set all packages directly to the Mac OS and work with it directly? If I create a virtual machine, I'm not sure how it will affect the health of SSD and ease of development. ...
GAE Request Timeout when user uploads csv file and receives new csv file as response
21,802,072
2
0
79
0
python,google-app-engine
You have many options: Use a timer in your client to check periodically (i.e. every 15 seconds) if the file is ready. This is the simplest option that requires only a few lines of code. Use the Channel API. It's elegant, but it's an overkill unless you face similar problems frequently. Email the results to the user.
0
1
0
0
2014-02-15T17:05:00.000
2
0.197375
false
21,800,806
0
0
1
1
I have an app on GAE that takes csv input from a web form and stores it to a blob, does some stuff to obtain new information using input from the csv file, then uses csv.writer on self.response.out to write a new csv file and prompt the user to download it. It works well, but my problem is if it takes over 60 seconds ...
What is the difference between mod_wsgi and uwsgi?
21,814,847
3
6
5,775
0
python,apache,nginx,wsgi,uwsgi
They are just 2 different ways of running WSGI applications. Have you tried googling for mod_wsgi nginx? Any wsgi compliant server has that entry point, that's what the wsgi specification requires. Yes, but that's only how uwsgi communicates with Nginx. With mod_wsgi the Python part is run from within Nginx, with uwsg...
0
1
0
1
2014-02-16T17:14:00.000
1
1.2
true
21,814,585
0
0
1
1
There seems to be mod_wsgi module in Apache and uwsgi module in Nginx. And there also seems to be the wsgi protocol and uwsgi protocol. I have the following questions. Are mod_wsgi and uwsgi just different implementations to provide WSGI capabilities to the Python web developer? Is there a mod_wsgi for Nginx? Does uws...
Pull files into script from two directories back
21,838,385
0
0
2,992
0
python,path
I would use your suggested method of os.chdir(r'..\..') to make sure your current working directory is in folder2. I'm not really sure what you're asking though, so maybe clarify why you think this ISN'T the right solution?
0
1
0
0
2014-02-17T20:03:00.000
2
0
false
21,838,287
1
0
0
1
I have a script that will pull files from two directories back, so the script resides at: /folder2/folder1/folder0/script.py and the files that will be processed will be in folder2. I can get back one level with "..//" (I'm making a Windows executable with cx_free) but I'm thinking this isn't the best way to do this....
OpenShift, Python Application run script every 10 min
21,893,287
3
1
1,892
0
python,openshift
You are looking for the add-on cartridge that is called cron. However, by default the cron cartridge only supports jobs that run every minute or every hour. You would have to write a job that runs minutely to determine if its a 10 minute interval and then execute your script. Make sense? rhc cartridge add cron -a you...
0
1
0
1
2014-02-19T19:54:00.000
2
1.2
true
21,890,973
0
0
0
1
How to create shedule on OpenShift hosting to run python script that parses RSS feeds and will send filtered information to my email? It feature is available? Please help, who works with free version of this hosting. I have script that works fine. But i dont know how to run it every 10 min to catch freelance jobs. Or a...
Using both Python 2 and 3 in Vim (on Windows)
21,903,485
1
1
1,174
0
python,vim
Vim's Python integration (i.e. the :python[3] commands that most plugins use) does not depend on the python interpreter binary (from PATH); instead, Vim must have been compiled with the Python library(-ies), which you can check in the :version output (look for +python, and the -DDYNAMIC_PYTHON_DLL=...). To be able to u...
0
1
0
0
2014-02-20T09:18:00.000
2
1.2
true
21,903,246
1
0
0
1
I'm using Vim and lots of Vim plugins, on a Windows machine. Some of these plugins use Python 2, and some use Python 3. I can use only one in the system %PATH% environment variable, how can I overcome this limitation?
Install "elasticsearch" instead of "pyelasticsearch"
21,909,665
1
2
2,082
0
python,django,elasticsearch,django-haystack
I used haystack in my last project. I checked my virtualenv and I have only 'pyelasticsearch==0.5'. Keep in my mind that documentation can be outdated.
0
1
0
0
2014-02-20T13:31:00.000
2
1.2
true
21,909,346
1
0
0
1
How can I install official elasticsearch binding for python instead of pyelasticsearch? Haystack documentation says: You’ll also need an Elasticsearch binding: elasticsearch-py (NOT pyes). Place elasticsearch somewhere on your PYTHONPATH (usually python setup.py install or pip install elasticsearch). But when I i...
Reading values over ssh in python
21,923,164
0
1
1,205
0
python
If you can put your own programs or scripts on the remote machine there are a couple of things you can do: Write a script on the remote machine that outputs just what you want, and execute that over ssh. Use ssh to tunnel a port on the other machine and communicate with a server on the remote machine which will respon...
0
1
0
1
2014-02-21T00:56:00.000
4
0
false
21,923,046
0
0
0
1
I would like to be able to gather the values for number of CPUs on a server and stuff like storage space etc and assign them to local variables in a python script. I have paramiko set up, so I can SSH to remote Linux nodes and run arbitrary commands on them, and then have the output returned to the script. However, man...
Use python 2 module in python 3 in mac OS
21,923,496
1
0
333
0
python,macos,python-2.7,python-3.x
In general, no, you can't do that easily. Just bite the bullet and install new copies of the modules you need for your Python 3 installation. Remember to first install a new copy of pip (or, if you must, easy_install) using your Python 3.3 and use it to install the modules you need for Python 3. One of the reasons yo...
0
1
0
0
2014-02-21T01:37:00.000
1
1.2
true
21,923,479
1
0
0
1
I would like to use installed Python 2 modules in Python 3. One step would be to add to the PythonPath3 the directories where the Python2 modules are installed. Of course this would work only if the modules are coded for Python3 compatibility. Is there a way that I can import modules in Python3 and have them automatica...