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
Windows Error in Google App Engine
15,538,956
2
2
1,412
0
google-app-engine,python-2.7
I updated GAE SDK to 1.7.6 from 1.7.5, since then I started getting this error. I reverted back to 1.7.5, the application is functioning normally :)
0
1
0
0
2013-03-20T17:39:00.000
5
0.07983
false
15,530,866
0
0
1
3
This is my first program in GAE. I'm working with latest GAE SDK, and Python 2.7 on Windows XP 32 bit. All was working fine; but to my surprise I'm getting the following error: 2013-03-20 22:48:26 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files\\Google\\google_appengine\\dev_appserver.py', '--skip_s...
Windows Error in Google App Engine
25,406,846
0
2
1,412
0
google-app-engine,python-2.7
I got exactly the same problem with SDK 1.99 on Windows 8. I was running a test script .yaml and .go file from Google Go's own working directory. Moving my code to its own subdirectory solved the problem.
0
1
0
0
2013-03-20T17:39:00.000
5
0
false
15,530,866
0
0
1
3
This is my first program in GAE. I'm working with latest GAE SDK, and Python 2.7 on Windows XP 32 bit. All was working fine; but to my surprise I'm getting the following error: 2013-03-20 22:48:26 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files\\Google\\google_appengine\\dev_appserver.py', '--skip_s...
Windows Error in Google App Engine
15,578,142
1
2
1,412
0
google-app-engine,python-2.7
I had the same issue with GAE SDK 1.7.6, downgrading to 1.7.5 solved it for me too.
0
1
0
0
2013-03-20T17:39:00.000
5
0.039979
false
15,530,866
0
0
1
3
This is my first program in GAE. I'm working with latest GAE SDK, and Python 2.7 on Windows XP 32 bit. All was working fine; but to my surprise I'm getting the following error: 2013-03-20 22:48:26 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files\\Google\\google_appengine\\dev_appserver.py', '--skip_s...
Error when configuring Python interpreter for PyDev in Eclipse
18,466,358
0
1
362
0
python,eclipse,configuration,pydev,interpreter
I've faced same problem. The solution was reinstalling Aptana (or Eclipse, tested also on Kepler 4.2.x). The source of problem was in path to your eclipse/aptana installition. I think that trouble here is determined by diacritic symbols in your name 'Andres Diaz', according to your username here))) (my case is: cyrilli...
0
1
0
1
2013-03-21T03:17:00.000
1
0
false
15,538,867
0
0
0
1
I just recently installed the PyDev 2.6 plugin for Eclipse (I run Eclipse SDK 4.2.1) and when I try to configure the Python interpreter to the path: > C:\Python27\python.exe , it gives me an "Error info on interpreter" and in error log it says: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException...
Accessing nose verbosity programmatically
15,581,683
1
4
930
0
python,nose
It looks like the expected way to handle this in nose is to use the logger framework within your tests, and then control the level to be captured with the --logging-level option. By default nose will capture all logs made by the tests, but a filter can be specified using --logging-filter config parameter.
0
1
0
1
2013-03-21T18:35:00.000
2
1.2
true
15,555,468
0
0
0
1
I've got some tests which log to stdout, and I'd like to change the log level in my test script based on the verbosity that nose is running on. How can I access the verbosity of the running nose instance, from within one of the tests being run?
Exclude Directories when using Pstorm in PhpStorm
16,013,655
1
1
174
0
python,phpstorm
Use Settings | File Types | Ignore Files and Folders to exclude directories by name or pattern.
0
1
0
1
2013-03-22T12:34:00.000
1
1.2
true
15,570,452
1
0
0
1
I was wondering if anyone knew a code fix to the pstorm python script where you could exclude directories from being indexed in a directory when you open it from the command line. I know this is not currently a feature in the IDE but maybe there is a work around someone knows of. Thanks
Good Call Hierarchy in Eclipse/PyDev
15,580,217
14
12
4,318
0
python,eclipse,pydev
PyDev has a find references with Ctrl+Shift+G (not sure that'd be what you're calling a call hierarchy).
0
1
0
1
2013-03-22T14:04:00.000
1
1.2
true
15,572,295
0
0
0
1
Is there a way to get a good call hierarchy in PyDev? I want to be able to select a function and see in which files it is called and eventually by which other functions. I tried the Hierarchy View in Eclipse by pressing F4, but it does not output what I want.
Python3: Looking for alternatives to gevent and pylibmc/python-memcached
20,068,405
1
10
5,262
0
python,python-3.x,gevent,python-memcached
for memcached you probably know alternative: redis+python3
0
1
0
1
2013-03-25T06:29:00.000
4
0.049958
false
15,608,933
0
0
0
1
So, I have decided to write my next project with python3, why? Due to the plan for Ubuntu to gradually drop all Python2 support within the next year and only support Python3. (Starting with Ubuntu 13.04) gevent and the memcached modules aren't officially ported to Python3. What are some alternatives, already officially...
Bridging between different programming languages
15,610,243
1
2
1,376
0
java,c++,python,c,thrift
If your C/C++ code already exists, your best bet is to publish it as a service, with an API matching what functionality you already have. You can then write new services in the language of your choice, matching the API you need, and they can call the C/C++ services. If your C/C++ code does not exist yet, and you are s...
0
1
0
1
2013-03-25T07:43:00.000
4
0.049958
false
15,609,918
0
0
0
1
This is more of a design question. I was planning on writing some web-services which implement CPU intensive algorithms. The problem that I am trying to solve is - higher level languages such as python, perl or java make it easy to write web services. While lower level languages such as C, C++ make it possible to fine ...
How to change drive in IPython under windows
68,152,780
0
3
3,953
0
windows,ipython
I have a Win 10 machine with Anaconda 2020.11 python installed, out of the box no updates. ipython 7.19.0. The only way I can cd to somewhere on another drive letter is cd d:/ No other permutation works: cd d:, cd d:, cd d:\, cd 'd:', cd 'd:', etc. So there's an answer but it's quite annoying to figure out.
0
1
0
0
2013-03-25T12:03:00.000
2
0
false
15,614,465
1
0
0
1
How can I change drive letter while in IPython under windows? For example, !cd W: does not make W: the current path, it just changes the path if you would change to drive W. Changing to a dos shell with !cmd and then changing to W: does not have any effect to the IPython shell.
Running thrift server as daemon
15,634,347
3
2
1,136
0
python,thrift
Daemonizing processes has nothing to do with thrift. Thrift only provides the communication layer for different platforms and you can run the server in one of the several programming languages thrift supports (that is - great majority of what you can think of). No matter if you write the server in Java, C++ (I've tried...
0
1
0
1
2013-03-26T01:18:00.000
2
1.2
true
15,627,698
0
0
0
2
Right now I'm testing the waters with Apache Thrift, and I'm currently using a TThreadedServer written in Python, but when I run the server, it is not daemonized. Is there any way to make it run as a daemon, or is there another way to run thrift in a production environment?
Running thrift server as daemon
15,873,194
1
2
1,136
0
python,thrift
I think you are looking for this: nohup hbase thrift start & This is the only way I found to keep thrift working after my disconnect from Linuxsession.
0
1
0
1
2013-03-26T01:18:00.000
2
0.099668
false
15,627,698
0
0
0
2
Right now I'm testing the waters with Apache Thrift, and I'm currently using a TThreadedServer written in Python, but when I run the server, it is not daemonized. Is there any way to make it run as a daemon, or is there another way to run thrift in a production environment?
GAE: Data is lost after dev server restart
15,641,028
2
0
322
0
python,google-app-engine,google-cloud-datastore
This is answered, but to explain a little further - the local datastore, by default writes to the temporary file system on your computer. By default, the temporary file is emptied any time you restart the computer, hence your datastore is emptied. If you don't restart your computer, your datastore should remain.
0
1
0
0
2013-03-26T11:27:00.000
2
0.197375
false
15,635,888
0
0
1
1
I'm running App Engine with Python 2.7 on OS X. Once I stop the development server all data in the data store is lost. Same thing happens when I try to deploy my app. What might cause this behaviour and how to fix it?
SSH Server status in Python
15,639,004
0
0
1,422
0
python,python-2.7,ssh,openssh
Run service sshd status (e.g. via Popen()) and read what it tells you.
0
1
0
1
2013-03-26T13:56:00.000
2
0
false
15,638,882
0
0
0
1
I wanted to know if there is a way to find out the status of the ssh server in the system using Python. I just want to know if the server is active or not (just yes/no). It would help even if it is just a linux command so that I can use python's popen from subprocess module and run that command. Thanks PS: I'm using op...
A way to "pipe" gnu screen output to a running python process?
25,355,763
0
2
1,489
0
python,linux,cherrypy,gnu-screen
You can use syslog or even better you can configure it to send all logs to a database!
0
1
0
0
2013-03-27T08:43:00.000
3
0
false
15,654,714
0
0
0
2
I'm developing a small piece of software, that is able to control (start, stop, restart and so on - with gnu screen) every possible gameserver (which have a command line) and includes a tiny standalone webserver with a complete webinterface (you can access the gnu screen from there, like if you're attached to it) on li...
A way to "pipe" gnu screen output to a running python process?
15,661,154
1
2
1,489
0
python,linux,cherrypy,gnu-screen
Writing to a pipe would work but it's dangerous since your command (the one writing the pipe) will block when you're not fast enough reading the data from the pipe. A better solution would be create a local "log server" which publishes stdin on a socket. Now you can pipe the output of your command to the log server whi...
0
1
0
0
2013-03-27T08:43:00.000
3
0.066568
false
15,654,714
0
0
0
2
I'm developing a small piece of software, that is able to control (start, stop, restart and so on - with gnu screen) every possible gameserver (which have a command line) and includes a tiny standalone webserver with a complete webinterface (you can access the gnu screen from there, like if you're attached to it) on li...
Datastore vs spreadsheet for provisioning Google apps
15,671,792
0
0
248
1
python,google-app-engine,google-sheets,google-cloud-datastore
If you use the Datastore API, you will also need to build out a way to manage users data in the system. If you use Spreadsheets, that will serve as your way to manage users data, so in that way managing the data would be taken care of for you. The benefits to use the Datastore API would be if you'd like to have a seaml...
0
1
0
0
2013-03-27T23:37:00.000
1
0
false
15,671,591
0
0
1
1
In my company we want to build an application in Google app engine which will manage user provisioning to Google apps. But we do not really know what data source to use? We made two propositions : spreadsheet which will contains users' data and we will use spreadsheet API to get this data and use it for user provision...
API Key for GCM from GAE
17,506,596
4
4
907
0
google-app-engine,python-2.7,google-cloud-messaging
You can check the IP easily by doing a ping from the command line to the domain name, as in "ping appspot.com". With this you will obtain the response from the real IP. Unfortunately this IP will change over time and won't make your GCM service work. In order to make it work you only need to leave the allowed IPs fiel...
0
1
1
0
2013-03-28T16:13:00.000
2
1.2
true
15,686,853
0
0
1
1
I have implemented GCM using my own sever. Now I'm trying to do the same using Python 2.7 in Google App Engine. How can I get the IP address for the server hosting my app? (I need it for API Key). Is IP-LookUp only option? And if I do so will the IP address remain constant?
What happens in the CPU when there is no user code to run?
15,688,958
3
4
2,611
0
operating-system,task,cpu,python-idle,rtos
There's always code to run, the idle task is the code if there's nothing else. It may execute a special CPU instruction to power down the CPU until a hardware interrupt arrives. On x86 CPUs it's hlt (halt).
0
1
0
0
2013-03-28T17:56:00.000
4
0.148885
false
15,688,887
1
0
0
2
It sounds reasonable that the os/rtos would schedule an "Idle task". In that case, wouldn't it be power consuming? (it sounds reasonable that the idle task will execute: while (true) {} )
What happens in the CPU when there is no user code to run?
15,689,206
5
4
2,611
0
operating-system,task,cpu,python-idle,rtos
Historically it's been a lot of different schemes, especially before reducing power consumption in idle was an issue. Generally there is an "idle" process/task that runs at the lowest priority and hence always gets control when there's nothing else to do. Many older systems would simply have this process run a "do for...
0
1
0
0
2013-03-28T17:56:00.000
4
0.244919
false
15,688,887
1
0
0
2
It sounds reasonable that the os/rtos would schedule an "Idle task". In that case, wouldn't it be power consuming? (it sounds reasonable that the idle task will execute: while (true) {} )
Using Twisted on a server without installation privileges?
15,705,793
1
1
93
0
python,installation,twisted
Use virtualenv to create your private Python libraries installation.
0
1
0
0
2013-03-28T19:10:00.000
2
0.099668
false
15,690,201
0
0
0
1
I have a server that I'd like to use to maintain persistent connections with a set of devices, just so that they can pass simple messages back and forth. It's a trivial task, but selecting a server-side platform has been suprrisingly difficult (especially since I have no administrative privileges - it's a dedicated com...
Not Having to Specify Command-Line Options Each Time
16,347,496
0
1
59
0
python,scons
I made it to work bu just setting an environment variable on Windows, TEST ="OS=win7 CPU=x86_64" and then running the scons script as scons %TEST%
0
1
0
0
2013-03-28T21:56:00.000
3
0
false
15,692,874
1
0
0
1
I am using scons to build on windows. My SConscript file takes certain command line options to build like OS=win7 CPU=x86_64 etc. Every time I run scons from command line I have to type these options, Is there a way I can put them in SConscript file or set an environment variable so that I don't have to type them every...
Shell scripts have different behavior when launched by Jenkins
15,693,722
1
1
1,510
0
python,testing,jenkins,distributed
To debug this: Add set -x towards the top of your shell script. Set a PS4 which prints the line number of each line when it's invoked: PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' Look in particular for any places where your scripts assume environment variables which aren't set when Hudson is running. If your Python scrip...
0
1
0
1
2013-03-28T22:53:00.000
2
0.099668
false
15,693,565
0
0
0
1
I have a ton of scripts I need to execute, each on a separate machine. I'm trying to use Jenkins to do this. I have a Python script that can execute a single test and handles time limits and collection of test results, and a handful of Jenkins jobs that run this Python script with different args. When I run this script...
Noob questions about upload & security
15,735,772
0
0
83
0
python,google-app-engine
Since you have app in C:\myap you need to run appcfg.py update C:\myap. It's just a path to you app on your machine. In windows command line. For example, "C:\Program Files (x86)\Google\google_appengine\appcfg.py" update C:\myap No, appcfg uses SSL while uploading. It's safe. If you mean to call application uploading -...
0
1
0
0
2013-03-29T14:05:00.000
1
0
false
15,704,873
0
0
1
1
I have the myapp.py and app.yaml in my windows C:\myap directory. The docs say to use: appcfg.py update myapp/ to upload the app. I've downloaded/installed Python and the Google python kit. Sorry, for these noobish questions, but: Is the myapp/ listed above refer to c:\myapp on my windows machine? Or is it the ...
How to convert a Python PyQt based program to a portable package in Linux?
15,716,571
0
0
1,029
0
python,linux,pyqt,portability,python-bindings
If you package your application in the Linux distribution's package format, it can contain dependency information. That is the canonical solution to this problem. Otherwise you'd have to include all nested dependencies to make sure that it'll work.
1
1
0
0
2013-03-30T04:29:00.000
1
1.2
true
15,714,976
1
0
0
1
I've managed to make a single working executable file (for Windows) from a PyQt based Python app using PyInstaller, but is it also possible for Linux? On linux machine (LUbuntu), when I run the .py script, I've got errors about missing PyQt bindings and I can't even download them by apt-get because of inability to conn...
Python os.pipe vs multiprocessing.Pipe
23,668,801
8
12
1,971
0
python,multithreading,multiprocessing,pipe,communication
I believe everything you've stated is correct. On Linux, os.pipe is just a Python interface for accessing traditional POSIX pipes. On Windows, it's implemented using CreatePipe. When you call it, you get two ordinary file descriptors back. It's unidirectional, and you just write bytes to it on one end that get buffered...
0
1
0
0
2013-03-30T15:22:00.000
1
1.2
true
15,720,120
1
0
0
1
Recently I'm studying parallel programming tools in Python. And here are two major differences between os.pipe and multiprocessing.Pipe.(despite the occasion they are used) os.pipe is unidirectional, multiprocessing.Pipe is bidirectional; When putting things into pipe/receive things from pipe, os.pipe uses encode/dec...
cx_oracle unable to find Oracle Client
15,745,441
0
0
412
1
python,cx-oracle
The issue with me was that I installed python, cx_oracle as root but Oracle client installation was done by "oracle" user. I got my own oracle installation and that fixed the issue. Later I ran into PyUnicodeUCS4_DecodeUTF16 issues with Python and for that I had to install python with —enable-unicode=ucs4 option
0
1
0
0
2013-04-01T09:00:00.000
1
0
false
15,740,464
0
0
0
1
I have installd Python 2.7.3 on Linux 64 bit machine. I have Oracle 11g client(64bit) as well installed. And I set ORACLE_HOME, PATH, LD_LIBRARY_PATH, and installed cx_oracle 5.1.2 version for Python 2.7 & Oracle 11g. But ldd command on cx_oracle is unable to find libclntsh.so.11.1. I tried creating symlinks to libclnt...
How to send data from Windows to embedded linux over USB
15,745,200
0
2
956
0
python,linux,windows,usb,pyserial
Normally on the linux front, if the usb dongle is of the right type, you will see something like /dev/usbserial or similar device. Maybe check dmesg after plugging the cable. (on linux you can run find /dev | grep usb to list all usb related devices) Just a side note, I've seen the beaglebone has an ethernet port, why ...
0
1
0
1
2013-04-01T13:34:00.000
2
0
false
15,744,495
0
0
0
1
My setup looks like this: A 64-bit box running Windows 7 Professional is connected to a Beaglebone running Angstrom Linux. I'm currently controlling the beaglebone via a putty command line on the windows box. What I'd like to do is run an OpenCV script to pull some vision information, process it on the windows box, and...
error in import z3
15,773,638
1
0
1,273
0
python,z3
io is a core Python module. It was added in 2.6 and has been present in every subsequent version. Are you on a very old version of Python? If you're running Python version 2.5 or earlier (you can check with python --version in any commandline), you'll need to update Python to a newer version.
0
1
0
1
2013-04-02T19:40:00.000
1
0.197375
false
15,772,909
0
0
0
1
I am trying to use z3 in pydev, I add the path of z3py and libz3.dll to window/preferences/pydev/jython-interpreter, but i got the error as the following Traceback (most recent call last): File "C:\Users\linda\workspace\LearningPyDev\main.py", line 11, in import z3 File "C:\Users\linda\z3\python\z3.py", line 4...
Embedding an executable within a py2app application
15,874,127
1
0
536
0
python,macos,py2app
Adding the CLI executable to the resources it the correct way to do it, but that doesn't work due to a bug in py2app (the file permissions aren't copied at the moment). The easiest workaround is to reset the file permissions after calling py2app.
0
1
0
0
2013-04-04T15:23:00.000
1
0.197375
false
15,815,364
0
0
0
1
I have a python script that I want to package as a Mac application bundle with py2app. That script calls a CLI executable. How do I embed that executable in the application bundle? I tried to edit setup.py in order to include it as a Resource but in that case, execution privileges are lost. Moreover the strip stage of ...
Can I add xmpp python library to my google app engine server
15,822,431
0
3
131
0
python,google-app-engine,xmpp,xmpppy
I don't know but your two biggest limitations will be the inability to use native libraries, and the fact that GAE only supports HTTP requests, with no access to the underlying sockets. If your library uses native code, or relies on using sockets for communications, you won't be able to use it. If it's pure python and...
0
1
0
0
2013-04-04T17:47:00.000
1
0
false
15,818,157
0
0
1
1
I'm trying to send messages between xmmp clients using gogle app engine as a server, for that reason I prefer to use xmpp library for python (xmpppy) instead the xmpp library of the google app engine API. Can I add the xmpp python library to my server? I mean can I use this library instead the xmpp library of google ap...
What's the working directory when using IDLE?
69,122,871
0
33
63,312
0
python,python-idle
Old question I know but maybe the OP's question was not answered? If you want Idle's File Open/Save/Save As menu items to interact with a particular folder, you need to set the CWD before starting Idle. So, assuming you have a folder on Windows "C:\Users<username>\Documents\python\my_project", then at a cmd prompt type...
0
1
0
0
2013-04-04T20:30:00.000
5
0
false
15,821,121
0
0
0
2
So, I'm learning Python and would like to create a simple script to download a file from the internet and then write it to a file. However, I am using IDLE and have no idea what the working directory is in IDLE or how to change it. How can I do file system stuff in IDLE if I don't know the working directory or how to c...
What's the working directory when using IDLE?
15,821,197
5
33
63,312
0
python,python-idle
This will depend on OS and how IDLE is executed. To change the (default) CWD in Windows, right click on the Short-cut Icon, go to "Properties" and change "Start In".
0
1
0
0
2013-04-04T20:30:00.000
5
0.197375
false
15,821,121
0
0
0
2
So, I'm learning Python and would like to create a simple script to download a file from the internet and then write it to a file. However, I am using IDLE and have no idea what the working directory is in IDLE or how to change it. How can I do file system stuff in IDLE if I don't know the working directory or how to c...
Problems in fully uninstalling Python 2.7 from Windows 7
40,082,367
0
9
36,011
0
python
Locate that set up file which was used to install Python. Run it and choose repair. If that doesn't solve the problem. Go to c:\Python(x,y) and delete this folder completely by shift+Del. Run that set up file again and click on "Change" which will ultimately install the Python again. By default in my case option to add...
0
1
0
0
2013-04-05T07:34:00.000
9
0
false
15,828,294
1
0
0
7
some months ago, I installed Python 2.7 on my laptop (my os is Windows 7). After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that...
Problems in fully uninstalling Python 2.7 from Windows 7
15,856,720
6
9
36,011
0
python
I also had this issue as well. It was due to third party installs. Even though you have uninstalled python, it leaves all the third party libraries that were installed and I think Python(x,y) just detects the directory. To fix, uninstall Python 2.7 and then check to see if C:\Python27 still exists. If it does, go ...
0
1
0
0
2013-04-05T07:34:00.000
9
1
false
15,828,294
1
0
0
7
some months ago, I installed Python 2.7 on my laptop (my os is Windows 7). After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that...
Problems in fully uninstalling Python 2.7 from Windows 7
39,070,767
0
9
36,011
0
python
I installed Enthought before. When I wanted to install Python(x,y) instead, I met the problems above. After I had tried to uninstall Enthought and Python(x,y) from the Control Panel and then restart the PC, the problem still occured the next time I installed Python(x,y). I solved this problem by: deleting all the rel...
0
1
0
0
2013-04-05T07:34:00.000
9
0
false
15,828,294
1
0
0
7
some months ago, I installed Python 2.7 on my laptop (my os is Windows 7). After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that...
Problems in fully uninstalling Python 2.7 from Windows 7
49,225,972
0
9
36,011
0
python
I Repaired/Modified to install all the components for the Python version I wanted to uninstall. Once that was done, I clicked on Uninstall/Change and that uninstalled it for good.
0
1
0
0
2013-04-05T07:34:00.000
9
0
false
15,828,294
1
0
0
7
some months ago, I installed Python 2.7 on my laptop (my os is Windows 7). After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that...
Problems in fully uninstalling Python 2.7 from Windows 7
32,640,463
4
9
36,011
0
python
I faced this issue: I tried to uninstall the python and fresh install, reason my pip version issue was not getting resolved. So I deleted the python folder, removed python from system path, and when I tried to uninstall from "Uninstall a program" in control panel, it showed "Windows installation package" error window a...
0
1
0
0
2013-04-05T07:34:00.000
9
0.088656
false
15,828,294
1
0
0
7
some months ago, I installed Python 2.7 on my laptop (my os is Windows 7). After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that...
Problems in fully uninstalling Python 2.7 from Windows 7
38,963,877
1
9
36,011
0
python
I had python 2.7.12 and wanted to uninstall it for 2.7.9. I had the same problem as you and to fix it I tried to delete all of the local files and then uninstall however it still gave me the same error. So instead I decided to repair the python 2.7.12 and then uninstall which worked perfectly and completely got rid of ...
0
1
0
0
2013-04-05T07:34:00.000
9
0.022219
false
15,828,294
1
0
0
7
some months ago, I installed Python 2.7 on my laptop (my os is Windows 7). After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that...
Problems in fully uninstalling Python 2.7 from Windows 7
23,568,030
0
9
36,011
0
python
I had python 2.7 installed and enthought canopy. I wanted to switch to python(x,y) to access a full version of the OpenCV library. python(x,y) installation complained about python 2.7 already being installed after: 1)Using windows control panel 2)Removing all lingering python files 3)Removing the windows path as sugge...
0
1
0
0
2013-04-05T07:34:00.000
9
0
false
15,828,294
1
0
0
7
some months ago, I installed Python 2.7 on my laptop (my os is Windows 7). After, I decided to use Python xy 2.7.3 instead of 'pure' Python; so, as suggested, I removed Python 2.7 and tried to install Python xy 2.7.3. However, when I tried to run the .exe file for installation, a warning window appears telling me that...
How to queue up scheduled actions
15,870,589
1
0
169
0
python,django,heroku,celery,django-celery
It depends on how much accuracy you need. Do you want users to select the time down to the minute? second? or will allowing them to select the hour they wish to be emailed be enough. If on the hour is accurate enough, then use a task that polls for users to mail every hour. If your users need the mail to go out accurat...
0
1
0
0
2013-04-08T01:58:00.000
2
1.2
true
15,870,130
0
0
1
1
I am trying to set up some scheduled tasks for a Django app with celery, hosted on heroku. Aside from not know how everything should be configured, what is the best way to approach this? Let's say users can opt to receive a daily email at a time of their choosing. Should I have a scheduled job that run every, say 5 mi...
Using celery in python 3.3 on windows machine
15,971,837
0
0
129
0
python-3.x,subprocess,celery
celery doesn't yet work perfectly with python3.3 on windows it seems. I ran the exact same setup on linux fedora and got it to work. This problem should be fixed in future development of the package so be patient.
0
1
0
0
2013-04-08T19:23:00.000
1
1.2
true
15,887,206
0
0
0
1
Currently i'm working on a project where I need to use Python 3.3 and celery. I've been following the first steps tutorial, but i keep getting errors due to problems with librarys like _subprocess. Does annyone have some more information on this. I also tried replacing the _subprocess with _winapi, with more errors as ...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
17,015,420
1
10
72,468
0
python-2.7,python-3.x,python-idle
I had exactly the same issue :"IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection." I found the answer from this stackoverflow site. I created a file named string.py and that classhed with the normal python files. I removed the strin...
0
1
0
0
2013-04-08T20:19:00.000
11
0.01818
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
17,843,247
3
10
72,468
0
python-2.7,python-3.x,python-idle
Adding to existing answers - it is actually possible to have firewall block IDLE when not running with -n flag. I haven't used IDLE for a few months and decided to try if it works properly with newly installed python3.3 (on Linux Mint 13 x86). In between I made iptables setup much more aggressive and apparently it bloc...
0
1
0
0
2013-04-08T20:19:00.000
11
0.054491
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
20,869,245
1
10
72,468
0
python-2.7,python-3.x,python-idle
I had the same error message. Error not seen after I added all the *.exe filea to be found in the Python install directory to the Windows firewall exception list.
0
1
0
0
2013-04-08T20:19:00.000
11
0.01818
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
21,956,824
5
10
72,468
0
python-2.7,python-3.x,python-idle
Look for files on your main python folder that you may create in names like "threading.py", "tkinter.py" and other names that overlapps with your Lib folder and move/delete them
0
1
0
0
2013-04-08T20:19:00.000
11
0.090659
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
22,885,631
1
10
72,468
0
python-2.7,python-3.x,python-idle
I finally got it to work when I disabled ALL firewalls and antivirus, because some antivirus ALSO have firewall control. Ex. avast
0
1
0
0
2013-04-08T20:19:00.000
11
0.01818
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
31,248,725
1
10
72,468
0
python-2.7,python-3.x,python-idle
Using Windows 7 64 installation of Python 2.7.10 Shell I solved the above problem by opening the program as an administrator.
0
1
0
0
2013-04-08T20:19:00.000
11
0.01818
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
37,479,563
0
10
72,468
0
python-2.7,python-3.x,python-idle
i have the Same issue on os win7 64Bit and Python 3.1 and find a workaround because i have a Project with many .py files and just one gave this error. - Workaround is to copy a working file and copy the contents from not working file to working file. (i used Another editor as idle. The Problem with that workaround is.....
0
1
0
0
2013-04-08T20:19:00.000
11
0
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
42,023,097
0
10
72,468
0
python-2.7,python-3.x,python-idle
I came across this problem too. There are two things you can do You may already have a process running call pythonw.exe which prevents IDLE from being starting. End that task and try running IDLE again Use pythonwin or python command line
0
1
0
0
2013-04-08T20:19:00.000
11
0
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
27,731,044
1
10
72,468
0
python-2.7,python-3.x,python-idle
Remove copy.py in your folder if you happen to have one
0
1
0
0
2013-04-08T20:19:00.000
11
0.01818
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
16,003,884
14
10
72,468
0
python-2.7,python-3.x,python-idle
I had this same problem today. I found another stack overflow post where someone had a tkinter.py file in the same directory as python, and they fixed it by removing that tkinter.py file. When I looked in my python directory, I realized I had created a script called random.py and put it there. I suspect that it confl...
0
1
0
0
2013-04-08T20:19:00.000
11
1
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection
24,211,913
10
10
72,468
0
python-2.7,python-3.x,python-idle
I'm running Windows 7 64-bit. I saw the same errors today. I tracked down the cause for me, hopefully it'll help you. I had IDLE open in the background for days. Today I tried to run a script in IDLE, and got the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall so...
0
1
0
0
2013-04-08T20:19:00.000
11
1
false
15,888,186
0
0
0
11
Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firew...
Running Boto on Google App Engine (GAE)
15,891,258
6
6
2,087
0
python,google-app-engine,amazon-ec2,boto
It sounds like you haven't copied the boto code to the root of your app engine directory. Boto works with GAE but Google doesn't supply you with the code. Once you copy it into the root of your GAE directory, the dev server should work, and after your next upload it will work on the prod server as well.
0
1
0
0
2013-04-08T21:34:00.000
2
1.2
true
15,889,424
0
0
1
1
I'm new to Python and was hoping for help on how to 'import boto.ec2' on a GAE Python application to control Amazon EC2 instances. I'm using PyDev/Eclipse and have installed boto on my Mac, but using simply 'import boto' does not work (I get: : No module named boto.ec2). I've read that boto is supported on GAE but I ha...
Configuring Mac OS X Mountain Lion to use python.org's python 2.7.4
15,892,084
1
0
337
0
python,macos,python-2.7,osx-mountain-lion
There should be a shell script in the /Applications/Python X.X. run this shell script to setup your PATH variable for whatever shell you use. For more info check the README.txt
0
1
0
0
2013-04-09T01:57:00.000
1
1.2
true
15,892,046
0
0
0
1
I am using Mac OS X Mountain Lion and I have installed the "python.org version" of python 2.7.4. It seems like this newly version is invoked by the command python2 since it gives the version as 2.7.4, whereas the default (pre-installed mac) version is invoked with the command python (it displays version 2.7.2). Is this...
Python 32-bit development on 64-bit Windows
15,897,564
7
4
13,622
0
python,windows
You can install almost any 32 bit software on 64 bit Windows because it has a built-in 32 bit emulator. If you are going to use a 32 bit Python, make sure all the libraries you use are 32 bit too.
0
1
0
0
2013-04-09T08:45:00.000
1
1.2
true
15,897,268
1
0
0
1
Is it possible to install 32-bit Python (2.7 series) on Windows 7/8 64-bit to develop 32-bit applications? I'm sure the answer is yes but be good to get confirmation.
How to Refresh Network Drive Mappings in Python
16,104,252
0
5
3,454
0
python,windows
My solution to this problem was to just use the IP address for the referenced machine. Worked like a charm and no problems with mapped drives...thanks for the responses.
0
1
0
0
2013-04-10T12:07:00.000
2
0
false
15,925,368
0
0
0
1
I have a drive already mapped to a designated letter, 'R:\'. If I run the python script to access this space while logged on or with the computer unlocked it works fine. The problem occurs when I set task scheduler to run the script early in the morning before I come in. Basically I stay logged in and lock the machi...
google app engine python configuration
15,934,118
3
0
181
0
python,google-app-engine
In Launcher go to Edit -> Preferences and set Python Path to match your python 27 path.
0
1
0
0
2013-04-10T18:48:00.000
1
1.2
true
15,933,982
0
0
1
1
when I run my app using "Google App Engine Launcher" it gives me a warning sign. in the log console I found it using Python 3.3, how can I configure it to use python 2.7
Debug a Python C++ extension from Eclipse (under Linux)
30,459,774
0
1
750
0
c++,python,eclipse,debugging,eclipse-cdt
For me it works great just adding a debug configuration in C/C++ for the program /usr/bin/python (or whatever search path you have to the python interpreter) and then put the python program you want to run as the arguments. Put the breakpoints you want in the C-code and you should be all set for running the debug confi...
0
1
0
1
2013-04-11T08:26:00.000
1
0
false
15,944,011
0
0
0
1
I have a C++ project that is called in Python (via boost-python) and I want to debug the C++ code from python process. How can I do that? In Windows with Visual Studio I can use the functionality attach to process. How to achieve the same in Eclipse? Thanks
How to sync the computer local data in Google Spreadsheet?
16,007,383
1
1
270
0
python,sync,google-sheets,google-spreadsheet-api
Google Apps Script will let you create a "web app", and you can pass params to it. There are good docs on how to do this, should be quick and easy way compared to using GData style spreadsheet API. (No Auth2 etc)
0
1
0
0
2013-04-11T14:20:00.000
1
0.197375
false
15,951,228
0
0
0
1
I would like to create a system that works in the background on the computer and when I turned on the computer it would send the time that the computer was turned on to a spreadsheet on Google SpreadSheet and when it were turned off It also sync the time that the computer was turned off in the spreadsheet of Google Spr...
How to change default directory for IDLE in windows?
15,954,961
13
8
11,874
0
python,python-idle
If you're running IDLE from a Windows shortcut, you can just right-click on the shortcut, choose "Properties", and change the field "Start in" to any directory you like.
0
1
0
0
2013-04-11T15:49:00.000
3
1.2
true
15,953,303
1
0
0
1
The installation directory is "d:\python2.7", and every time I open IDLE and click on menu File and Open item, the default directory is also "d:\python2.7". So I have to change the directory to where I want. Is there any way I can change it? Using configuration file or changing environment variable? I tried to add PYT...
How to implement bank/cross-order type updates scalably and safely
15,987,618
1
0
140
0
python,google-app-engine
I think if you can sequence the orders on a commodity, then you can clear orders offline. By "offline", I mean you can come to me at the end of the day, tell me the sequence of the orders, and I can tell you which trades happened. The one snag is, what if a buyer does not have the funds when a transaction should have c...
0
1
0
0
2013-04-12T02:57:00.000
2
1.2
true
15,962,315
0
0
0
1
I'm working on a small project on Google App Engine, trying to implement a site that allows participants to buy and sell fake goods, similarly to a stock market where the system will show real time-ish BID/ASK spreads. As a quick example: A Seller places and order to sell 10 Boxes for 8.00 (Order 1) A Buyer places the...
Python async and CPU-bound tasks?
15,970,840
2
16
6,728
0
python,asynchronous,flask,gevent
How about simply using ThreadPool and Queue? You can then process your stuff in a seperate thread in a synchronous manner and you won't have to worry about blocking at all. Well, Python is not suited for CPU bound tasks in the first place, so you should also think of spawning subprocesses.
0
1
0
0
2013-04-12T10:38:00.000
2
0.197375
false
15,969,213
1
0
0
1
I have recently been working on a pet project in python using flask. It is a simple pastebin with server-side syntax highlighting support with pygments. Because this is a costly task, I delegated the syntax highlighting to a celery task queue and in the request handler I'm waiting for it to finish. Needless to say this...
Qpid reliability
16,147,555
0
0
329
0
python,qpid
1) That depends on architecture. Both methods, queues and topics, can get messages from many sources to many destinations. Topics get messages to all listeners, queues get message to one of the listeners - whoever grabs the message first. 2) Are there any error or log messages pertaining to failure? I suspect you ar...
0
1
0
1
2013-04-12T14:21:00.000
1
1.2
true
15,973,821
0
0
0
1
I am using a C++ broker with clients written in C++, Python, and Java. If we run the system overnight, it reliably does not send/receive messages by morning. All messages are exchanged over topics with subjects designating the destination. I have 3 questions: 1.) Should we be using queues? Is there an advantage to ...
In PyCharm, webpages refresh in debug mode, not in run mode
30,849,574
0
1
550
0
python,google-app-engine,google-chrome,pycharm,webapp2
It turns out that this wasn't a refresh or caching issue but a timing issue. Under some circumstances, GAE uses an update algorithm that incurs a delay before transactions are applied. In Run mode, the new page was being requested before the update was completed; in Debug mode, enough time passed for the update to be c...
0
1
0
0
2013-04-13T17:43:00.000
1
1.2
true
15,990,889
0
0
1
1
I'm writing a GAE webapp using Python 2.7, webapp2, and Jinja. In development, I run the app under PyCharm 2.7.1 on a Max OSX 10.7.5 (Lion). I'm currently using Chrome 26.0.1410.43 as my browser. I don't know for sure that this is a PyCharm issue, but that's my best guess. Here's a description: When I use the "Debug" c...
Is there a command or a piece of code that prevents the Python(command line) from closing immediately after executing the code?
16,012,268
3
0
77
0
python,python-2.7
If you're seeing a Command Prompt open and immediately close when you double-click your .py file, that's to be expected - it's not how you're supposed to run a console-based Python script. What you should do is start a Command Prompt via the Start menu, then run your program by typing c:\python27\python.exe myscript.py...
0
1
0
0
2013-04-15T09:52:00.000
3
1.2
true
16,012,245
1
0
0
1
I need your help. I'm a newbie and I'm learning python. I know to write basic codes. But, when I execute the code in Python(command line) it closes immediately. Is there any piece of code that can prevent this from happening or a trick? Please help me out. Cheers! P.S: I use Python 2.7 in Windows.
Making the eyeD3-module available for import in python
16,025,847
14
3
3,498
0
python,windows,eyed3
try import eyed3 (without capital D)
0
1
0
0
2013-04-15T22:22:00.000
2
1.2
true
16,025,662
1
0
0
2
On Windows, I have installed Python 2.7 and added python.exe's directory to PATH. Then I installed pip und used pip install eyeD3 to install the eyeD3 module successfully. However, using import eyeD3 doesn't work, but throws an ImportError. I had the idea to adjust the PYTHONPATH-environment-variable in my command line...
Making the eyeD3-module available for import in python
16,128,387
3
3
3,498
0
python,windows,eyed3
The namespace changed to eyed3 in 0.7, as did the API. On all platforms.
0
1
0
0
2013-04-15T22:22:00.000
2
0.291313
false
16,025,662
1
0
0
2
On Windows, I have installed Python 2.7 and added python.exe's directory to PATH. Then I installed pip und used pip install eyeD3 to install the eyeD3 module successfully. However, using import eyeD3 doesn't work, but throws an ImportError. I had the idea to adjust the PYTHONPATH-environment-variable in my command line...
Ipython and Curses on Windows
16,066,204
1
0
125
0
ipython,qtconsole
No, it's not really in sight. The Qt console has some support for control characters, so it can do things like coloured text, but it's definitely not enough to support curses, and we're not really interested in going down that route. The code is all in the open if you want to try to make it into a full terminal emulato...
0
1
0
0
2013-04-15T23:09:00.000
1
1.2
true
16,026,129
1
0
0
1
I have been trying all sorts of sourceforge projects that try to port GNU functionality to Windows, with the goal to create a very GNU aware Ipython profile providing the best terminal environment I know how (on Windows that is). How close is QtConsole to having the ability of running something like Curses through the ...
Details of /proc/net/ip_conntrack and /proc/net/nf_conntrack
50,619,225
-1
22
26,249
0
python,linux,kernel,conntrack
The file ip_conntrack contains only ipv4 specific conntrack entries whereas nf_conntrack includes both ipv4 and ipv6 protocol conntrack entries. nf_conntrack file is registered with proc file system using code in net/netfilter/nf_conntrack_standalone.c whereas ip_conntrack file is registered with proc file system throu...
0
1
0
0
2013-04-16T10:27:00.000
2
-0.099668
false
16,034,698
0
0
0
1
I'm looking for a detailed documentation about content of files /proc/net/nf_conntrack and/or /proc/net/ip_contrack on Linux systems. Yes, I know, there are many utilities which can show me the content of these files in human readable format, but... I'd like to do it on a SOHO router, with Tomato USB firmware (by Shibb...
get PID of QProcess with python on windows
69,134,278
0
3
859
0
python,qt4,pyqt,qprocess
pid() function is provided to keep old source code working. Use processId() instead. Returns the native process identifier for the running process, if available. If no process is currently running, 0 is returned. Note: Unlike processId(), pid() returns an integer on Unix and a pointer on Windows.
0
1
0
0
2013-04-16T10:34:00.000
3
0
false
16,034,823
0
0
0
1
Is there some way to read the PID of a process started with QProcess.start(...)? QProcess::pid() returns sip.voidptr and there's not much I can do with it (or I don't know how). I want to have the PID to have the possibility to make the window active later on.
Making pypy available to pyscripter (or any other ide for that matter) on Windows?
26,822,586
0
1
1,140
0
python,python-2.7,pypy,pyscripter
PyCharm Community edition IDE by JetBrains supports pypy, or any other interpreter Just go to File > Settings > Project INterpreter and set interpreter location
0
1
0
0
2013-04-17T04:13:00.000
2
0
false
16,051,345
1
0
0
1
Maybe I am missing something, but I just downloaded pypy 2.0 beta2 windows binary (32 bit), and it seems I can run the interpreter by executing pypy.exe. However, I would like pypy to work with pyscripter and for all my old libraries to be available. Is this possible? Or is it as if I just installed a new version of py...
pydev massive cpu usage
16,058,892
1
0
284
0
python,aptana,pydev
The only way to really know what's going on would be connecting jvisualvm (or some profiler or debugger) to your process to see what's going on (and then report an issue). On jvisualvm you can get a dump with the current processes, which may be enough already if you can say which is the thread that's running. Note that...
0
1
0
1
2013-04-17T04:34:00.000
1
1.2
true
16,051,571
0
0
0
1
I am using pydev through Aptana Studio 3 on a mac. Shortly after opening up Aptana, my computer heats way up, the fans go full power, and Aptana uses over 100% cpu even when it's not doing anything. I also have pydev on eclipse, but this spike doesn't occur. Has anyone else seen this? Is there any way to stop it?
Handling PySVN merges by manually
16,092,530
0
0
175
0
python,svn,conflict,pysvn
I solved this by adding the prop of mime-type application/octet-stream. This way svn would bypass the contextual merge feature.
0
1
0
0
2013-04-17T15:18:00.000
1
0
false
16,063,928
0
0
0
1
I'm using SVN as a backend for a collaborative framework. That said, I want to handle ALL the updates by hand, ie: no automerge, no auto-update. so if updating brings the following changeset: A file1 D file2 U file3 G file4 I want to process the update and the automerge by hand. I know that this is possible in subversi...
Distutils compiler options configuration
16,088,553
3
7
4,646
0
python,python-2.7,distutils,enthought
Compiler options are taken from CPython’s Makefile. IOW they are the same as the ones used to compile Python. You can override most of them on the command line as Evert described. The global distutils.cfg is something that a sysadmin can create to set default options, not a file that is installed with Python.
0
1
0
0
2013-04-18T07:58:00.000
2
0.291313
false
16,077,481
1
0
0
1
Maybe a stupid question, but I was wondering where Python's distutils get the compiler options from? It gets some linked directories wrong and I want to correct that once and for all. I know there should be a prefix/lib/pythonver/distutils/distutils.cfg but I can't find any distutils.cfg anywhere on the computer. Obvi...
What is the fastest way to get scraped data from so many web pages?
16,131,039
0
0
402
1
python,mysql,google-app-engine,google-cloud-datastore,web-scraping
Based on what I know about your app it would make sense to use memcache. It will be faster, and will automatically take care of things like expiring stale cache entries.
0
1
0
0
2013-04-19T06:29:00.000
1
0
false
16,098,570
0
0
1
1
I need to scrap about 40 random webpages at the same time.These pages vary on each request. I have used rpcs in python to fetch the urls and scraped the data using BeautifulSoup. It takes about 25 seconds to scrap all the data and display on the screen. To increase the speed i stored the data in appengine datastore so...
Can't open python.exe in Windows Powershell
16,108,206
1
1
1,533
1
python,windows,powershell,path,exe
Making the comments an answer for future reference: Have a ; at the end of the PATH and logout and log back in.
0
1
0
0
2013-04-19T15:02:00.000
1
0.197375
false
16,107,658
0
0
0
1
I've had my python program removed from windows a while ago, and recently downloaded python2.7.4 from the main site, but when I type "python" in the Windows PowerShell(x86) prompt from C:, I get the message "'python' is not recognized as an internal or external command, operable program or batch file.", and I'd like to...
Embed a celery worker in my own code
16,154,276
0
2
515
0
python,django,rabbitmq,celery
Replace this names: coordinator with rabbitmq (or some other broker kombu supports) and users with celery workers. I am pretty sure you can do all you need (and much more) just by configuring celery / kombu and rabbitmq and without writing too many (if any) lines of code. small note: Celery features scheduled tasks.
0
1
0
0
2013-04-19T15:49:00.000
1
0
false
16,108,560
0
0
1
1
I have a service that needs a sort of coordinator component. The coordinator will manage entities that need to be assigned to users, taken away from users if the users do not respond on a timely manner, and also handle user responses if they do response. The coordinator will also need to contact messaging services to n...
to keep the script running even after internet connection goes off
16,117,169
0
0
289
0
python,shell,python-2.7,putty
On the server, you can install tmux or screen. These programs run the program in the background and enable you to open a 'window', If I use tmux: Open tmux: tmux Detach (run in background): press Ctrl-b d reattach (open a 'window'): tmux attach
0
1
1
1
2013-04-20T05:37:00.000
2
0
false
16,117,044
0
0
0
1
I had putty on one server and run a python script available on that server. That script keep on throwing output on terminal. Later on, my internet connection went off but even then i was expecting my script to complete it job as script is on running on that server. But when internet connection resumed, I found that scr...
How can I handle IPC between C and Python?
16,121,274
0
9
12,308
0
python,c,ipc
How about writing the weight-lifting code as a library in C and then providing a Python module as wrapper around it? That is actually a pretty usual approach, in particular it allows prototyping and profiling in Python and then moving the performance-critical parts to C. If you really have a reason to need two processe...
0
1
0
1
2013-04-20T12:30:00.000
3
0
false
16,120,373
0
0
0
1
I have a an application with two processes, one in C and one in Python. The C process is where all the heavy lifting is done, while the Python process handles the user interface. The C program writes to a large-ish buffer 4 times per second, and the Python process reads this data. To this point the communication to the...
processing large cloud storage files in app engine
16,135,479
0
3
281
0
python,google-app-engine,google-cloud-storage
The data file doesnt "need to be in memory" and if you try that you will run oom. If you can process it sequentially open it as a filestream. Ive done that with blobstore, should be similar
0
1
0
0
2013-04-21T07:20:00.000
2
0
false
16,128,864
0
0
1
1
I'm required to process large files, up to 2GB, in GAE (I'm using Python). of course I'll be running the code on a backend, however since a local storage isn't available the data will need to be in memory. is there a file descriptor like wrapper for boto or other cloud storage supported protocol? or other recommended t...
NDB/DB NoSQL Injection Google Datastore
16,140,194
7
2
973
1
python,security,google-app-engine,nosql,google-cloud-datastore
Standard SQL injection techniques rely on the fact that SQL has various statements to either query or modify data. The datastore has no such feature. The GQL (the query language for the datastore) can only be used to query, not modify. Inserts, updates, and deletes are done using a separate method that does not use a t...
0
1
0
0
2013-04-21T18:51:00.000
1
1.2
true
16,134,927
0
0
1
1
Is there any SQL injection equivalents, or other vulnerabilities I should be aware of when using NoSQL? I'm using Google App Engine DB in Python2.7, and noticed there is not much documentation from Google about security of Datastore. Any help would be appreciated!
Python will not run in windows powershell
16,150,017
6
0
7,079
0
python,powershell,python-2.7
I just solved this issue after nearly pulling my hair out. Thought I would share. In windows system > advanced system settings > environment variables there are two places to change the PATH, user variables and system variables. I added ";c:\python27" as the value for PATH in both. It now works
0
1
0
0
2013-04-22T13:51:00.000
2
1.2
true
16,148,872
1
0
0
2
I am trying to get python.exe to run in interactive mode in windows powershell. I have added c:\python27 to my PATH and when I type "python" in into the shell a new command prompt window opens running python, rather than running within powershell. This is a problem as when I run things like "python --version" it launch...
Python will not run in windows powershell
16,149,638
0
0
7,079
0
python,powershell,python-2.7
I'm not expert in PS, but when I need to use python in interactive mode in windows powershell, I use something like this (version of python is 2.7.3, I didn't change env variables): PS C:\Python27> ./python Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "cre...
0
1
0
0
2013-04-22T13:51:00.000
2
0
false
16,148,872
1
0
0
2
I am trying to get python.exe to run in interactive mode in windows powershell. I have added c:\python27 to my PATH and when I type "python" in into the shell a new command prompt window opens running python, rather than running within powershell. This is a problem as when I run things like "python --version" it launch...
which version of program will execute? the one in the /usr/bin or the one in /usr/local/bin?
16,148,913
1
1
58
0
python,unix,centos,version
When you run anything on the command-line, it will search through the folders in the PATH variable, in order, until it finds an executable file with that name.
0
1
0
0
2013-04-22T13:52:00.000
2
0.099668
false
16,148,893
0
0
0
1
I have python in both /usr/bin and /usr/local/bin. Now I have this question that which one will execute if I call python? I know that I can check with which python command to see which one is which one. But I'm asking which one would work by default?
Installing lxml with pip in virtualenv Ubuntu 12.10 error: command 'gcc' failed with exit status 4
24,547,445
8
35
37,060
0
python,django,gcc,lxml
I met the similar question(error: command 'gcc' failed with exit status 4) this morning. It seems you need check your machine's memory. If the memory is lower than 512M,that may be the cause.Try to close some services temporarily,like apache server,and try "pip install lxml" again.It maybe work!
0
1
0
0
2013-04-22T14:26:00.000
7
1
false
16,149,613
1
0
0
1
I'm having the following error when trying to run "pip install lxml" into a virtualenv in Ubuntu 12.10 x64. I have Python 2.7. I have seen other related questions here about the same problem and tried installing python-dev, libxml2-dev and libxslt1-dev. Please take a look of the traceback from the moment I tip the comm...
create fake process in Python
16,173,056
3
2
1,984
0
python,linux
To run a process with the name mysoft, Create a python with the name mysoft without .py extension. Inside that file create a endless while loop or something like that, in a way that it runs long time. Or put a line like raw_input("enter something"). It will wait until you give the input. Make the file executable by ...
0
1
0
0
2013-04-23T13:55:00.000
2
1.2
true
16,171,245
0
0
0
2
I'm currently working on a stub for tests purpose. Using Python I need to create a process with a specific name ("mysoft") and a specific pid ("1234") My final purpose is to be able to run the command "pgrep mysoft" on a terminal and get the PID I set (1234). The process doesn't need to do anything, it just need to exi...
create fake process in Python
16,171,310
1
2
1,984
0
python,linux
You can't create processes with specific PIDs. The PID is assigned by the OS.
0
1
0
0
2013-04-23T13:55:00.000
2
0.099668
false
16,171,245
0
0
0
2
I'm currently working on a stub for tests purpose. Using Python I need to create a process with a specific name ("mysoft") and a specific pid ("1234") My final purpose is to be able to run the command "pgrep mysoft" on a terminal and get the PID I set (1234). The process doesn't need to do anything, it just need to exi...
Running a python script persistently
16,173,008
1
0
572
0
python,linux,bash,service
I would start it using init and monitor at interval with a seperate script using crontab watching for a PID file it creates. Alternatively, if you can find the PID ID using your crontab script (using ps) and re-init the script if it doesn't exist. My 2 Cents..
0
1
0
0
2013-04-23T15:05:00.000
1
0.197375
false
16,172,839
1
0
0
1
I have a script on my machine that I want to start running as the machine boots and will attempt run again should it crash or otherwise fail. Would this mean turing it into a service? I realise I could use the crontab and use @reboot, but that doesn't fix the issue should the script crash
Determine process for outbound packets
16,189,674
1
1
65
0
python,windows,network-programming
Until you don't implement your own packet filter driver you can't do that just looking on a data stream captured via network card promiscuous mode.
0
1
0
0
2013-04-24T07:31:00.000
1
0.197375
false
16,186,027
0
0
0
1
Is there a way to determine which process is sending a particular packet. I am capturing packets on Network Interface card and want to determine the process for each packet. I am working in python under Windows.
Differentiating logged-in users as admin and normal user in Google App Engine?
16,191,993
1
0
145
0
python,google-app-engine,google-cloud-datastore
Why is what you describe not possible? The object representing the logged-in user is an instance of google.appengine.api.users.User. That object has a user_id property. You can use that ID as a field in your own user model, to which you can add a field determining whether or not they are an admin.
0
1
0
0
2013-04-24T11:53:00.000
1
1.2
true
16,191,318
0
0
1
1
I am developing an app in GAE. Application provides different view depending upon whether logged-in user is admin or normal user. I want to use 'Google Apps domain' as Authentication Type. So that all user of my domain can login into the application and use it. Here, application can't differentiate a logged-in as admin...
Why is my heavy python script pausing on windows? Can it be prevented?
16,208,557
0
0
108
0
python,windows,concurrent-programming
The reason was that each process used massive memory, and I tried to work it concurrently. It was over capacity. It was frequently swapping out, but it was hidden by SQLite access which was also working hard with my HDD. I would like to thank Lennart, who notified me to check other params in my computer, and everybody ...
0
1
0
0
2013-04-25T01:23:00.000
1
0
false
16,204,914
0
0
0
1
There is a python script I built called convert.py, which is a file converter (SQLite3 -> SQLite3). It takes about 30 minutes to finish, working on with heavy CPU and I/O. I opened 30 CMD.EXE windows on my computer (Windows 7, CPU with 2 cores and hyper-threading), and started convert.py on each window. I let them wor...
Adding extra properties to the User class in App Engine datastore?
16,215,227
2
0
395
0
python,google-app-engine,google-cloud-datastore,flask
As I explained in your other question, you need a separate class. User is not a model, and it is not stored in the datastore. It's simply a combination of the user_id and email that are obtained from Google's accounts system when you log in. If you want to store something about the user, you need to create your own mod...
0
1
0
0
2013-04-25T12:28:00.000
1
1.2
true
16,214,803
0
0
1
1
I am working on an App using Flask and App Engine, which requires extra information to be stored in User Object apart from nickname, email and user_id. Is it possible to extend User class in datastore? If not, is there is any workaround? I am planning to have my own User model. So, once user logs into the app(using goo...
Determining environment python runs on
16,220,212
0
2
61
0
python,windows
You can try one solution. You can call some powershell command as Write-Host (echo equivalent in cmd) from Python code and get call result. If it fails is not PowerShell. (I can not test it now).
0
1
0
0
2013-04-25T16:27:00.000
3
0
false
16,220,046
1
0
0
1
I'm writing a python program that I want to run differently whether it runs on the windows command prompt or windows powershell. I was wondering if there was a way to determine the environment python runs on within the program. Thanks in advance!
Python: next() is not recognized
16,225,009
1
2
2,002
0
python,next
though you could call ByteIter.next() in 2.6. This is not recommended however, as the method has been renamed in python 3 to next().
0
1
0
1
2013-04-25T21:18:00.000
3
0.066568
false
16,224,901
1
0
0
1
When I do next(ByteIter, '')<<8 in python, I got a name error saying "global name 'next' is not defined" I'm guessing this function is not recognized because of python version? My version is 2.5.
Authenticate a server versus an AppEngine application
16,270,248
1
0
77
0
python,google-app-engine,authentication,google-cloud-endpoints
That is exactly what you need to do. On the server, generate a key (you choose the length), and store it in the datastore. When the other server makes a request, use HTTPS and include the key. Its like an API key (it is actually).
0
1
0
0
2013-04-26T13:30:00.000
1
1.2
true
16,237,742
0
0
1
1
I cannot see how I could authenticate a server with vs GAE. Let's say I have an application on GAE which have some data and I somehow need this data on another server. It is easy to enable OAuth authentication on GAE but here I cannt use this since there is no "account" binded to my server. Plus GAE doesn't support cli...
Run background jobs with elastic beanstalk
16,341,391
5
6
2,006
0
python,amazon-web-services,config,web-worker,amazon-elastic-beanstalk
fixed it, just needed to write this command instead: command: "nohup ./workers.py > foo.out 2> foo.err < /dev/null &"
0
1
0
0
2013-04-28T09:20:00.000
1
1.2
true
16,261,413
0
0
1
1
I am trying to start a background job in elastic beanstalk, the background job has an infinite loop so it never returns a response and so I receive this error:" Some instances have not responded to commands.Responses were not received from [i-ba5fb2f7]." I am starting the background job in the elastic beanstalk .config...
GAE: planning for exportability and relational databases
16,268,751
1
0
48
1
google-app-engine,python-2.7,google-cloud-datastore
GAE's datastore just doesn't export well to SQL. There's often situations where data needs to be modeled very differently on GAE to support certain queries, ie many-to-many relationships. Denormalizing is also the right way to support some queries on GAE's datastore. Ancestor relationships are something that don't e...
0
1
0
0
2013-04-28T19:40:00.000
1
1.2
true
16,266,979
0
0
1
1
I'm building a web app in GAE that needs to make use of some simple relationships between the datastore entities. Additionally, I want to do what I can from the outset to make import and exportability easier, and to reduce development time to migrate the application to another platform. I can see two possible ways of h...
Receive an unknown number of UDP messages
16,399,916
0
0
273
0
python,python-2.7,network-programming,udp,sliding-window
You could have a message loop continuously listening and processing received packets and putting them on a queue then read them at your leisure... However you would need to implement you own ACKs taking into account the possibilities of lost and duplicates (if your application is concerned about them).. Which begs the ...
0
1
0
0
2013-04-30T06:29:00.000
2
0
false
16,293,597
0
0
0
1
Let's say a source A is sending me an unknown number of messages using UDP. How can I intercept all those messages? This is the complete scenario: Send 7 messages Wait for their ACKs Process ACKs Send another batch Repeat... Problems: (1) I don't know how many messages arrive, some may get lost and some are repeated,...
Simulate KeyboardInterrupt with fabric
16,337,848
2
2
414
0
python,bash,fabric
ctrl+c generates a SIGINT signal. You can send a signal with kill -SIGINT pid where pid is the process id. you wish to signal. kill is a Bash built-in.
0
1
0
1
2013-05-02T11:28:00.000
1
1.2
true
16,336,919
0
0
0
1
How do I fire a Ctrl+C with fabric, in other words is it possible to trigger KeyboardInterrupt manually via bash?