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
Should I dockerize different servers running on a single machine?
33,002,100
0
0
27
0
python,docker,webserver
Yes, Docker prefers "one process per container" approach. I would not see this as an overkill, quite to the contrary - at your case it might rather soon be beneficial to have instances of different users better isolated: less security risks, easier to maintain - say you need new version of everything for new version of...
0
1
0
0
2015-10-02T18:00:00.000
1
1.2
true
32,913,119
0
0
1
1
I want to make simple service that each user will have his own (simple and light) webserver. I want to use an AWS instance to do this. I understand that I can do that by starting Python's SimpleHTTPserver (Proof of concept) multiple times on different ports, and that the number of servers I can have depends on the res...
GAE/P: Storing list of keys to guarantee getting up to date data
32,941,257
1
0
60
1
python,google-app-engine,google-cloud-datastore,eventual-consistency
if, like you say in comments, your lists change rarely and cant use ancestors (I assume because of write frequency in the rest of your system), your proposed solution would work fine. You can do as many get(multi) and as frequently as you wish, datastore can handle it. Since you mentioned you can handle having that key...
0
1
0
0
2015-10-02T20:35:00.000
2
1.2
true
32,915,462
0
0
1
1
In my Google App Engine App, I have a large number of entities representing people. At certain times, I want to process these entities, and it is really important that I have the most up to date data. There are far too many to put them in the same entity group or do a cross-group transaction. As a solution, I am cons...
Unicode Byte Order Mark (BOM) as a python constant?
32,922,798
1
2
670
0
python,python-3.x,unicode,python-unicode
There isn't one. The bytes constants in codecs are what you should be using. This is because you should never see a BOM in decoded text (i.e., you shouldn't encounter a string that actually encodes the code point U+FEFF). Rather, the BOM exists as a byte pattern at the start of a stream, and when you decode some bytes ...
0
1
0
0
2015-10-03T11:56:00.000
2
0.099668
false
32,922,265
0
0
0
1
It's not a real problem in practice, since I can just write BOM = "\uFEFF"; but it bugs me that I have to hard-code a magic constant for such a basic thing. [Edit: And it's error prone! I had accidentally written the BOM as \uFFFE in this question, and nobody noticed. It even led to an incorrect proposed solution.] Sur...
while spawning the fab file it asks me the login password for 'ubuntu'
33,025,966
0
0
219
0
python,django,amazon-web-services
Looks like there's an issue with your "ec2 key pairs". Make sure you have the correct key and that the permission of that key are 400. To know if the key is working try to manually connect to the instance with ssh -i ~/.ssh/<your-key> ubuntu@<your-host>
0
1
0
1
2015-10-05T12:25:00.000
1
0
false
32,948,568
0
0
1
1
I wrote the default password of my ami i.e. 'ubuntu' but it didn't work. I even tried with my ssh key. I've browsed enough and nothing worked yet.Can anybody please help me out? [] Executing task 'spawn' Started... Creating instance EC2Connection:ec2.us-west-2.amazonaws.com Instance state: pending Instance state: pendi...
Using AWS to execute on-demand ETL
44,104,221
0
0
613
0
python,amazon-web-services,etl,emr,amazon-emr
Now you can put your script on AWS Lambda for ETL. It supports scheduler and Trigger on other AWS components. It is on-demand and will charge you only when the Lambda function got executed.
0
1
0
0
2015-10-05T17:44:00.000
4
0
false
32,954,687
0
0
0
1
I want to execute a on-demand ETL job, using AWS architecture. This ETL process is going to run daily, and I don't want to pay for a EC2 instance all the time. This ETL job can be written in python, for example. I know that in EMR, I can build my cluster on-demand and execute a hadoop job. What is the best architecture...
How to change python version in windows git bash?
59,281,928
4
8
11,192
0
python,git-bash
Follow these steps: Open Git bash, cd ~ Depending on your favorite editortouch, code or vim (in my case) type code .bashrc Add the line alias python='winpty c:/Python27/python.exe' to the open .bashrc Save and Close. Try python --version on git bash again. Hopefully it works for you.
0
1
0
0
2015-10-06T09:09:00.000
2
0.379949
false
32,965,980
1
0
0
1
I've installed python 3.5 and python 2.7 on windows. And I've added path for python 2.7 in PATH variable. When I type 'python --version' in windows cmd, it prints 2.7. But when i type 'python --version' in git bush, it prints 3.5. How to change python version in windows git bash to 2.7?
Invoke gdb from python script
32,979,189
0
0
886
0
python,gdb
I was able to figure out. What I understood is GDB embeds the Python interpreter so it can use Python as an extension language. You can't just import gdb from /usr/bin/python like it's an ordinary Python library because GDB isn't structured as a library. What you can do is source MY-SCRIPT.py from within gdb (equivalen...
0
1
0
1
2015-10-06T19:36:00.000
2
0
false
32,978,233
0
0
0
1
where should my python files be stored so that I can run that using gdb. I have custom gdb located at /usr/local/myproject/bin. I start my gdb session by calling ./arm-none-eabi-gdb from the above location. I don't know how this gdb and python are integrated into each other. Can anyone help.?
How to install python correctly on Linux?
33,025,633
0
0
156
0
python,linux,directory,installation
It depends on your distro. Most of distros have it in its repository and for installing you just need to use your package manager. for example on ubuntu it's: sudo apt-get install python or on fedora it's: su -c 'dnf install python'
0
1
0
0
2015-10-08T20:37:00.000
1
0
false
33,025,522
1
0
0
1
How can i install python correctly? When i install it manually it is in the /usr/local/bin directory but that causes many problems, for example i am not able to install modules. I want to install it into /usr/bin
Sudden performance drop going from 1024 to 1025 bytes
33,051,195
1
2
68
0
python,django,django-rest-framework
This turned out to be related to libcurl's default "Expect: 100-continue" header.
0
1
0
0
2015-10-09T02:34:00.000
1
0.197375
false
33,028,985
0
0
1
1
I am running a dev server using runserver. It exposes a json POST route. Consistently I'm able to reproduce the following performance artifact - if request payload is <= 1024 bytes it runs in 30ms, but if it is even 1025 bytes it takes more than 1000ms. I've profiled and the profile points to rest_framework/parsers.py ...
How to stop console from exiting
33,034,977
0
0
67
0
python
If it's not a multithreaded program, then just let the program do whatever it needs and then: raw_input("Press Enter to stop the sharade.\n") Maybe it's not exactly what you're looking for but on the other hand you should not rely on a predefined sleep time.
0
1
0
0
2015-10-09T09:29:00.000
3
0
false
33,034,687
1
0
0
1
I want the program to wait like 5 seconds before exiting the console after finishing whatever it does, so the user can read the "Good Bye" message, how can one do this?
Debugger is not detaching from Winpdb
33,562,769
0
0
96
0
python,c++,linux,winpdb
Finally i have fixed the issue by using the latest version of python QT
0
1
0
0
2015-10-09T12:01:00.000
1
1.2
true
33,037,770
0
0
0
1
I am using PythonQT to execute python script (because I need to call c++ methods from python script) My winpdb version is 1.4.6 and machine is CetOS 6.5 Now I want to enable debugging in python script I have added rpdb2.start_embedded_debugger('test') inside the script and called PythonQt.EvalFile() function, now scr...
PyZmq ensure connect() after bind()
33,075,923
0
0
129
0
python,ipc,zeromq,pyzmq
put some sleep before connecting. so bind will run first, and connect will continue after waiting for sometime
0
1
0
0
2015-10-12T07:17:00.000
1
0
false
33,075,289
0
0
0
1
Trying to establish some communication between two python processes , I've come to use pyzmq. Since the communication is simple enough I 'm using the Zmq.PAIR messaging pattern with a tcp socket. Basically one process binds on an address and the other one connects to the same address . However both operations happen at...
Control Libreoffice Impress from Python
33,251,685
0
1
3,178
0
python,libreoffice
Finally, I found a way to solve this using Python, in an elegant and easy way. Instead of libraries or APIs, Im using a socket to connect to Impress and control it. At the end of the post you can read the full-text that indicates how to control Impress this way. It is easy, and amazing. You send a message using Python ...
0
1
0
0
2015-10-13T00:46:00.000
3
1.2
true
33,092,424
0
0
1
1
Im writing an application oriented to speakers and conferences. Im writing it with Python and focused on Linux. I would like to know if its possible to control LibreOffice Impress with Python, under Linux in some way. I want to start an instance of LibreOffice Impress with some .odp file loaded, from my Python app. The...
Send a wake on lan packet from a docker container
67,018,294
3
12
5,187
0
python,docker,uwsgi,wake-on-lan
It seems that UDP broadcast from docker isn't being routed properly (possibly only broadcasted in the container itself, not on the host). You can't send UDP WoL messages directly, as the device you're trying to control is 'offline' it doesn't show up in your router's ARP table and thus the direct message can't be deliv...
0
1
0
0
2015-10-13T11:33:00.000
1
0.53705
false
33,101,603
0
0
0
1
I have a docker container running a python uwsgi app. The app sends a wake on lan broadcast packet to wake a pc in the local network. It works fine without the use of docker (normal uwsgi app directly on the server), but with docker it won't work. I exposed port 9/udp and bound it port 9 of the host system. What am I m...
Finding if a set of lines exists in a large text file
33,118,839
1
1
35
0
python,linux,windows,bash,shell
If repetition doesn't matter, then this command will do it: sort <(sort file1 | uniq) <(sort file2 | uniq) | uniq -d
0
1
0
0
2015-10-14T06:58:00.000
1
1.2
true
33,118,610
1
0
0
1
How do i find out the intersection of 2 files in windows? TextFile A: 100GB TextFile B: 10MB All i can think of is using python I would read the lines in textfile B into memory in python and compare with each line in text file A. I was wondering if there is any way to do it via the command prompt in linux/windows.
Python code to open with another program?
33,137,802
0
0
61
0
python
Lots of options. Which you should choose depends on lots of things. Sorry for being so vague, but your question does not give any details besides the name Chrome. How ever you start Chrome, e. g. by a button or menu of your window manager, maybe you can tweak that button or menu to start both programs. This is prob...
0
1
0
0
2015-10-14T23:48:00.000
1
0
false
33,137,569
0
0
0
1
I have a program I want to open when I open Chrome. Instead of opening them separately, I want it to automatically start when Chrome starts. How would I write code to have the program attach itself to Chrome? I don't want the program to start on startup, just when Chrome starts. I know I can right click on the Chrome i...
python: APScheduler in WSGI app
33,232,473
3
5
1,030
0
python,mod-wsgi,wsgi,apscheduler
You're right -- the scheduler won't start until the first request comes in. Therefore running a scheduler in a WSGI worker is not a good idea. A better idea would be to run the scheduler in a separate process and connect to the scheduler when necessary via some RPC mechanism like RPyC or Execnet.
0
1
0
0
2015-10-15T10:01:00.000
1
0.53705
false
33,145,523
0
0
1
1
I would like to run APScheduler which is a part of WSGI (via Apache's modwsgi with 3 workers) webapp. I am new in WSGI world thus I would appreciate if you could resolve my doubts: If APScheduler is a part of webapp - it becomes alive just after first request (first after start/reset Apache) which is run at least by o...
unable save file in a shared folder on a remote ubuntu machine using notepad++
33,161,926
0
0
59
0
python,ubuntu
Try to kill the process which is opening the python file or you can reboot your windows It may resolve the problem
0
1
0
0
2015-10-16T02:45:00.000
1
0
false
33,161,725
1
0
0
1
I use a shared folder to share files in linux with a windows machine. However, after i have edited a python file using notepad++ in windows, changed the owner of the file to the user of ubuntu, and run the file, i wanted to edit the file again, when i save the file, I get the following error. 'Please check whether if ...
Multi-threading on Google app engine
33,184,298
0
0
921
0
multithreading,python-2.7,sockets,google-app-engine,apple-push-notifications
Found the issue. I was calling start_background_thread with argument set to function(). When I fixed it to calling it as function it worked as expected.
0
1
0
0
2015-10-17T07:18:00.000
1
0
false
33,183,963
0
0
1
1
Does Google App engine support multithreading? I am seeing conflicting reports on the web. Basically, I am working on a module that communicates with Apple Push Notification server (APNS). It uses a worker thread that constantly looks for new messages that need to be pushed to client devices in a pull queue. After it ...
Command line programs in a web (python)
33,184,244
1
1
179
0
python-2.7,web-applications,command-line,pycharm
Based on what you've described, there are many ways to approach this: Create a terminal emulator on your webpage. If you want nicer UI, you can set up any web framework and have your command line programs in the backend, while exposing frontend interfaces to allow users to input parameters and see the results. If you'...
0
1
0
0
2015-10-17T07:40:00.000
1
1.2
true
33,184,127
0
0
1
1
I am new to programming and web apps so i am not even sure if this question is obvious or not. Sometimes I find command line programs more time efficient and easy to use (even for the users). So is there a way to publish my command line programs with command line interface to a web as a web app using cgi or Wsgi? For ...
Can we force run the jobs in APScheduler job store?
43,736,075
0
4
1,592
0
python,apscheduler
Another approach: you can write logic of your job in separate function. So, you will be able to call this function in your scheduled job as well as somewhere else. I guess that this is a more explicit way to do what you want.
0
1
0
1
2015-10-19T10:14:00.000
3
0
false
33,211,867
0
0
0
1
Using APScheduler version 3.0.3. Services in my application internally use APScheduler to schedule & run jobs. Also I did create a wrapper class around the actual APScheduler(just a façade, helps in unit tests). For unit testing these services, I can mock the this wrapper class. But I have a situation where I would rea...
Google App Engine Python Cron Job
33,220,726
0
0
34
0
python,google-app-engine,cron
Unfortunately, you cannot combine the weekday option with the interval. You could add a switch in the request handler of your cron-job, that will just exit if current week-day is not Saturday, while your cron.job is scheduled "every 2 minutes from 01:00 to 03:00". But that means that your handler will be called 300 tim...
0
1
0
0
2015-10-19T17:18:00.000
1
0
false
33,220,279
0
0
0
1
I wanted to run my cron job as 'schedule: every saturday every 2 minutes from 01:00 to 3:00', and it won't allow this format. Is it possible to set a cron job to target another cron job? Or is my schedule possible just not in the correct format?
Handling a literal space in a filename
33,241,435
6
3
4,377
0
python,linux,file,space
You don't need to (and shouldn't) escape the space in the file name. When you are working with a command line shell, you need to escape the space because that's how the shell tokenizes the command and its arguments. Python, however, is expecting a file name, so if the file name has a space, you just include the space.
0
1
0
0
2015-10-20T15:52:00.000
1
1.2
true
33,241,211
0
0
0
1
I have problem with os.access(filename, os.R_OK) when file is an absolute path on a Linux system with space in the filename. I have tried many ways of quoting the space, from "'" + filename + "'" to filename.replace(' ', '\\ ') but it doesn't work. How can I escape the filename so my shell knows how to access it? In te...
Python Script not Running - Has to be something simple
33,246,962
0
0
51
0
python,python-2.7,fedora-21
Path to python was different than other user. User was pointing to canopy.
0
1
0
1
2015-10-20T20:52:00.000
2
0
false
33,246,572
0
0
0
1
OS: Fedora 21 Python: 2.7.6 I run a python script as root or using sudo it runs fine. If I run it as just the user I get the following: Traceback (most recent call last): File "/home/user/dev_ad_list.py", line 12, in import ldap ImportError: No module named ldap selinux=disabled -- What other security...
Cannot open .py file in Google Virtual Machine SSH Terminal
33,264,941
1
1
72
0
python,ssh,google-compute-engine
X-Windows (X11 nowadays) is a client-server architecture. You can forward connections to your x server with a -X (uppercase) option to ssh (ie $ ssh -X username@server.com). This should work if everything is installed correctly on the server (apt-get usually does a good job of this, but I don't have a lot of experience...
0
1
0
1
2015-10-21T16:05:00.000
1
0.197375
false
33,264,119
0
0
0
1
I cannot open .py file through Google VM SSH Console. Kwrite and sudo apt-get install xvfb are installed. My command: kwrite test.py I get the following error: kwrite: Cannot connect to X server. Do I need to change the command/install additional software? Thanks
Methods to schedule a task prior to runtime
33,283,524
2
3
50
0
python,windows,cron,crontab,job-scheduling
cron is best for jobs that you want to repeat periodically. For one-time jobs, use at or batch.
0
1
0
1
2015-10-22T12:13:00.000
1
1.2
true
33,280,783
0
0
0
1
What are the best methods to set a .py file to run at one specific time in the future? Ideally, its like to do everything within a single script. Details: I often travel for business so I built a program to automatically check me in to my flights 24 hours prior to takeoff so I can board earlier. I currently am editing...
How to enable the lazy-apps in uwsgi to use fork () in the code?
58,931,038
1
3
2,374
0
python,django-views,fork,uwsgi
use lazy-apps = true instead of 1
0
1
0
1
2015-10-22T21:17:00.000
1
0.197375
false
33,290,927
0
0
1
1
I use Debian + Nginx + Django + UWSGI. One of my function us fork() in the file view.py (the fork works well), then immediately written return render (request, ... After the fork() the page loads for a long time and after that browser prints error - "Web page not available». On the other hand the error doesn’t occur if...
Python and Labview
33,306,025
1
2
2,470
0
python,labview
Why not use the System Exec.vi in Connectivity->Libraries and Executables menu? You can execute the script and get the output.
0
1
0
1
2015-10-23T12:51:00.000
4
0.049958
false
33,302,773
0
0
0
2
I need to call a Python script from Labview, someone know which is the best method to do that? I've tried Labpython, but it is not supported on newest versions of Labview and I'm not able to use it on Labview-2014. Definitevly, I'm looking for an advice about python integration: I know this two solutions: 1)Labpython: ...
Python and Labview
55,798,097
0
2
2,470
0
python,labview
You can save Python script as a large string constant(or load from text file) within the LabVIEW vi so that it can be manipulated within LabVIEW and then save that to a text file then execute the Python script using command line in LabVIEW. Python yourscript enter
0
1
0
1
2015-10-23T12:51:00.000
4
0
false
33,302,773
0
0
0
2
I need to call a Python script from Labview, someone know which is the best method to do that? I've tried Labpython, but it is not supported on newest versions of Labview and I'm not able to use it on Labview-2014. Definitevly, I'm looking for an advice about python integration: I know this two solutions: 1)Labpython: ...
Send a DOS command in a virtual machines cmd through python script
33,345,750
0
1
615
0
python,testing,virtual-machine,squish
You can install an ssh server on the Windows machine and then use the paramiko module to communicate with it or you can also use wmi command to remotely execute command on Windows system.
0
1
0
0
2015-10-26T12:19:00.000
1
0
false
33,345,609
0
0
0
1
I'll get right into the point. The problem is: my localmachine is a Windows OS I launched a Windows Virtual Machine (through VirtualBox) that awaits some python commands on my localhost I have a python script that I execute and after the VM is started, I want the script to open inside the VM, a cmd.exe process after c...
Escape characters in Google AppEngine full text search
33,351,187
0
0
92
0
python,google-app-engine
It might help to include the code in question, but try putting a \ before the +, that's what can escape things within quotes in python, so it might work here. E.g.: C\+
0
1
0
0
2015-10-26T16:30:00.000
1
0
false
33,350,869
0
0
1
1
I'm using full text search and I'd like to search for items that have a property with value 'C+' is there a way I can escape the '+' Char so that this search would work?
Architectual pattern for CLI tool
33,353,621
0
0
355
0
python,design-patterns,command-line-interface,restful-architecture,n-tier-architecture
Since your app is not very complex, I see 2 layers here: ServerClient: it provides API for remote calls and hides any details. It knows how to access HTTP server, provide auth, deal with errors etc. It has methods like do_something_good() which anyone may call and do not care if it remote method or not. CommandLine: i...
0
1
0
0
2015-10-26T18:50:00.000
1
1.2
true
33,353,398
0
0
1
1
I am going to write some HTTP (REST) client in Python. This will be a Command Line Interface tool with no gui. I won't use any business logic objects, no database, just using an API to communicate with the server (using Curl). Would you recommend me some architectual patterns for doing that, except for Model View Contr...
How do I fix the 'BlobService' is not defined' error
42,435,442
0
0
3,863
0
python,azure
BlobService is function you are trying to call, but it is not defined anywhere. It should be defined when you call from azure.storage import *. It is probably not being called, due to a difference in package versions. Calling from azure.storage.blob import * should work, as it is now invoked correctly.
0
1
0
0
2015-10-26T19:25:00.000
4
0
false
33,353,968
0
0
0
3
I've installed the azure SDK for Python (pip install azure). I've copied the Python code on the MS Azure Machine Learning Batch patch for the ML web-service into an Anaconda Notebook. I've replaced all the place holders in the script with actual values as noted in the scripts comments. When I run the script I get the e...
How do I fix the 'BlobService' is not defined' error
33,354,366
0
0
3,863
0
python,azure
It's been a long time since I did any Python, but BlobStorage is in the azure.storage.blob namespace I believe. So I don't think your from azure.storage import * is pulling it in. If you've got a code sample in a book which shows otherwise it may just be out of date.
0
1
0
0
2015-10-26T19:25:00.000
4
0
false
33,353,968
0
0
0
3
I've installed the azure SDK for Python (pip install azure). I've copied the Python code on the MS Azure Machine Learning Batch patch for the ML web-service into an Anaconda Notebook. I've replaced all the place holders in the script with actual values as noted in the scripts comments. When I run the script I get the e...
How do I fix the 'BlobService' is not defined' error
33,355,053
1
0
3,863
0
python,azure
James, I figured it out. I just changed from azure.storage import * to azure.storage.blob import * and it seems to be working.
0
1
0
0
2015-10-26T19:25:00.000
4
0.049958
false
33,353,968
0
0
0
3
I've installed the azure SDK for Python (pip install azure). I've copied the Python code on the MS Azure Machine Learning Batch patch for the ML web-service into an Anaconda Notebook. I've replaced all the place holders in the script with actual values as noted in the scripts comments. When I run the script I get the e...
Can Flask use the async feature of Tornado Server?
33,369,914
4
3
1,151
0
python,flask,tornado,python-asyncio
No. It is possible to run Flask on Tornado's WSGIContainer, but since Flask is limited by the WSGI interface it will be unable to take advantage of Tornado's asynchronous features. gunicorn or uwsgi is generally a much better choice than Tornado's WSGIContainer unless you have a specific need to run a Flask application...
0
1
0
0
2015-10-27T12:58:00.000
1
0.664037
false
33,368,621
1
0
1
1
We have a project use Flask+Gunicorn(sync). This works well for a long time, however, recently i came across to know that Asyncio(Python3.5) support async io in standard library. However, before Asyncio, there are both Twisted and Tornado async servers. So, i wander whether Flask can use the aysncio feature of Tornad...
Tornado log rotation for each day
33,393,197
2
1
826
0
python-2.7,logging,tornado,log-rotation
Tornado's logging just uses the python logging module directly; it's not a separate system. Tornado defines some command-line flags to configure logging in simple ways, but if you want anything else you can do it directly with the logging module. A timed rotation mode is being added in Tornado 4.3 (--log-rotate-mode=ti...
0
1
0
0
2015-10-28T06:47:00.000
1
1.2
true
33,384,611
0
0
0
1
I am trying to log the requests to my tornado server to separate file, and I want to make a log rotation for each day. I want to use the tornado.log function and not the python logging. I have defined the log path in my main class and it is logging properly I want to know if I can do a log rotate. Does tornado log allo...
App Engine Returning Error 500 on Post Requests from
33,405,768
0
0
150
0
jquery,python,google-app-engine
If you're not seeing anything in your server logs about the error, that suggests to me that you might have a configuration error in one of your .yaml files. Are GET requests working? Are you sure that you are sending your POST requests to an endpoint that is handled by your application? Check for typos in your JavaScri...
0
1
0
0
2015-10-28T19:05:00.000
1
0
false
33,399,526
0
0
1
1
I am getting error 500 on every second POST request made from a browser (chrome and firefox) irrespective of whether it is a Jquery Post or Form submissions, app engine is alternating between error 500, and successful post. The error 500 are not appearing anyway in the logs. I have tested this with over 5 different po...
How to change build path on PyDev
33,405,546
3
1
1,264
0
python,eclipse,pydev
First check whether python3.5 is auto-configured in eclipse. Go to Window>Preferences On the preferences window you will find PyDev configurations on left pan. PyDev>Interpreters>Python Interpreter If python3.5 is not listed you can either add using "Quick Auto-Config" or if you want to add manually click "New" then a...
0
1
0
0
2015-10-29T03:21:00.000
1
1.2
true
33,405,411
1
0
0
1
In eclipse, I'm used to configuring the buildpath for versions of java installed on my computer. I recently added Python 3.5 to my computer and want to use it in place of the default 2.7 that Macs automatically include. How can I configure my build path on PyDev, if there is such as concept to begin with, for the plug...
Specify Python version in Microsoft Azure WebJob?
33,427,176
3
3
1,707
0
python,python-2.7,python-3.x,azure,azure-webjobs
Also if you wanna run different python versions in the same site, you can always drop a run.cmd that calls the right version of python for you. They are installed in D:\Python34 and D:\Python27
0
1
0
0
2015-10-29T15:32:00.000
3
1.2
true
33,418,463
1
0
0
1
How can I select which Python version to use for a WebJob on Microsoft Azure? When I do print(sys.version) I get 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] Where can I specify another version? I would like to use Python 3 for some jobs. I have tried adding runtime.txt reading python-3.4 to the r...
Rundeck :: Execute a python script
33,427,554
1
0
10,632
0
python,rundeck
okay, so I changed the step type to a command rather than script file and it worked. I guess my understanding of what a script file is was off.
0
1
0
1
2015-10-30T00:34:00.000
2
0.099668
false
33,427,081
0
0
0
1
I am new to Rundeck, so I apologize if I ask a question that probably has an obvious answer I'm overlooking. I've installed Rundeck on my Windows PC. I've got a couple of Python scripts that I want to execute via Rundeck. The scripts run fine when I execute them manually. I created a job in Rundeck, created a single...
App Engine: Few big scripts or many small ones?
33,456,580
4
1
419
0
python,google-app-engine,google-cloud-datastore
The are two important considerations here. The number of roundtrip calls from the client to the server. One call to update a user profile will execute much faster than 5 calls to update different parts of user profile as you save on roundtrip time between the client and the server and between the server and the datas...
0
1
0
0
2015-10-31T15:44:00.000
3
0.26052
false
33,453,441
0
0
1
3
I am working on a website that I want to host on App Engine. My App Engine scripts are written in Python. Now let's say you could register on my website and have a user profile. Now, the user Profile is kind of extensive and has more than 50 different ndb properties (just for the sake of an example). If the user wants ...
App Engine: Few big scripts or many small ones?
33,457,227
3
1
419
0
python,google-app-engine,google-cloud-datastore
A single big script would have to be loaded every time an instance for your app starts, possibly hurting the instance start time, the response time of every request starting an instance and the memory footprint of the instance. But it can handle any request immediately, no additional code needs to be loaded. Multiple s...
0
1
0
0
2015-10-31T15:44:00.000
3
1.2
true
33,453,441
0
0
1
3
I am working on a website that I want to host on App Engine. My App Engine scripts are written in Python. Now let's say you could register on my website and have a user profile. Now, the user Profile is kind of extensive and has more than 50 different ndb properties (just for the sake of an example). If the user wants ...
App Engine: Few big scripts or many small ones?
33,858,532
0
1
419
0
python,google-app-engine,google-cloud-datastore
Adding to Dan Cornilescu’s answer, writing/saving an instance to the database re-writes to the whole instance (i.e. all its attributes) to the database. If you’re gonna use put() multiple times, you’re gonna re-write the who instance multiple times. Which, aside from being a heavy task to perform, will cost you more mo...
0
1
0
0
2015-10-31T15:44:00.000
3
0
false
33,453,441
0
0
1
3
I am working on a website that I want to host on App Engine. My App Engine scripts are written in Python. Now let's say you could register on my website and have a user profile. Now, the user Profile is kind of extensive and has more than 50 different ndb properties (just for the sake of an example). If the user wants ...
How to execute Python file
33,471,765
-2
1
176
0
python,linux,django,filesystems
Save your python code file somewhere, using "Save" or "Save as" in your editor. Lets call it 'first.py' in some folder, like "pyscripts" that you make on your Desktop. Open a prompt (a Windows 'cmd' shell that is a text interface into the computer): start > run > "cmd".
0
1
0
0
2015-11-02T06:12:00.000
3
-0.132549
false
33,471,710
0
0
1
1
I am learning Python and DJango and I am relatively nub with Linux. When I create DJango project I have manage.py file which I can execute like ./manage.py runserver. However when I create some Python program by hand it looks like that my Linux trying to execute it using Bash, not Python. So i need to write python foo....
Windows missing Python.h
46,394,599
14
13
20,029
0
python,windows,theano
If you are using Visual Studio in Windows, right-click on your project in the Solution Explorer and navigate as follows: Properties -> C/C++ -> General -> Additional Include Directories -> Add C:/Anaconda/include/ (or wherever your Anaconda install is located)
1
1
0
0
2015-11-02T08:54:00.000
1
1
false
33,473,848
1
0
0
1
I'm trying to run a sample Theano code that uses GPU on windows. My python (with python-dev and Theano and all required libraries) was installed from Anaconda. This is the error I run into: Cannot open include file: 'Python.h': No such file or directory My Python.h is actually in c://Anaconda/include/ I'm guessing that...
Session bus initialization
33,510,521
0
0
194
0
python,linux,dbus
Just a guess: python client might be able to use X11 to discover session bus address (in addition to using DBUS_SESSION_BUS_ADDRESS environment variable). It is stored in _DBUS_SESSION_BUS_ADDRESS property of _DBUS_SESSION_BUS_SELECTION_[hostname]_[uuid] selection owner window (uuid is content of /var/lib/dbus/machine-...
0
1
0
0
2015-11-02T14:39:00.000
1
0
false
33,480,139
0
0
0
1
I'm trying to use D-Bus to control another application. When using Python bindings, it is possible to use D-Bus just with dbus.SessionBus(). However, other application require to first set up the environment variables DBUS_SESSION_BUS_ADDRESS and DBUS_SESSION_BUS_PID, otherwise they report that the name "was not provid...
Is it possible to add the module path to the python environment variable in linux with out root access?
33,493,376
1
0
192
0
python,linux,svn
Like setting environment variable in bash, if you close session it will be disapear. So just add sys.path.append it will add path in runtime.
0
1
0
1
2015-11-03T07:02:00.000
1
0.197375
false
33,493,178
0
0
0
1
I am trying to utilise mailer.py script to send mails after a SVN Commit. In mailer.py svn module has been used. I think the svn module is present in /opt/CollabNet_Subversion/lib-146/svn-python/svn and I tried to append it to the sys path using sys.path.append. For once it is getting appended and when I do sys.path I ...
Async execution of commands in Python
33,503,827
1
0
302
0
python,python-3.x,asynchronous,scalability,popen
You could use os.listdir or os.walk instead of ls, and the re module instead of grep. Wrap everything up in a function, and use e.g. the map method from a multiprocessing.Pool object to run several of those in parallel. This is a pattern that works very well. In Python3 you can also use Executors from concurrent.future...
0
1
0
0
2015-11-03T15:37:00.000
1
0.197375
false
33,503,134
0
0
0
1
Requirement - I want to execute a command that uses ls, grep, head etc using pipes (|). I am searching for some pattern and extracting some info which is part of the query my http server supports. The final output should not be too big so m assuming stdout should be good to use (I read about deadlock issues somewhere) ...
py2app worked with Homebrew, now it builds w/ module missing
34,974,981
0
0
361
0
macos,python-2.7,homebrew,py2app
You say you've "installed too much via Homebrew" and need "Apple's Python to find everything" After installing Python modules into Homebrew's site-packages, you can make them importable from outside. First make a directory here (assuming 2.7): mkdir -p ~/Library/Python/2.7/lib/python/site-packages Then put a path f...
0
1
0
0
2015-11-04T00:57:00.000
1
0
false
33,511,936
0
0
0
1
I have a new MacBook w/ Yosemite. In an attempt to get OSC, Zeroconf, PySide and Kivy working, I installed too much via Homebrew. I've successfully (?) undone most of the damage, I think, and have installed all the Python modules so that Apple's Python finds everything... from the terminal window. However, now my code...
How to get jupyter notebook kernel state?
33,672,094
2
5
5,351
0
ipython,ipython-notebook,jupyter
There is not, this state is not stored anywhere, in part because it changes rapidly, and in part because there shouldn't be many, if any, actions that should be taken differently based on its value. It is only published via messages on the IOPub channel, which you can connect to via zeromq or websocket. If you want to ...
0
1
0
0
2015-11-04T01:45:00.000
1
0.379949
false
33,512,329
1
0
0
1
I want to be able to detect from outside a notebook server if the kernel is busy or actively running some cell. Is there some way for me to print this state as a command line call or have it returned as the response to a http request.
Process.stdout.readline() doesn't output correctly
33,530,241
0
1
784
0
python
readline returns a single line of text including the trailing new line until the stream is closed on the other end. Once all data has been read, it starts returning empty strings to let the caller know that the stream is closed and there will never be new data. Generally, while loops should break when an empty string i...
0
1
0
0
2015-11-04T17:39:00.000
1
0
false
33,528,486
1
0
0
1
Im using Python 3.5, my code is as follows: Given a_sentence the program hangs during the while loop because line_read is "" so it never increments nl_c, therefore never exits the loop, I'm relatively new to using sub processes so I'm not sure where the problem is, whether it's not being read in correctly or the outpu...
Logging in an asynchronous Tornado (python) server
33,535,454
4
4
1,242
0
python,linux,multithreading,asynchronous,tornado
For "normal" logging (a few lines per request), I've always found logging directly to a file to be good enough. That may not be true if you're logging all the traffic to the server. The one time I've needed to do something like that I just captured the traffic externally with tcpdump instead of modifying my server. If ...
0
1
0
0
2015-11-04T19:45:00.000
3
1.2
true
33,530,673
0
0
0
2
I am working on an application in which I may potentially need to log the entire traffic reaching the server. This feature may be turned on or off, or may be used when exceptions are caught. In any case, I am concerned about the blocking nature of disk I/O operations and their impact on the performance of the server. ...
Logging in an asynchronous Tornado (python) server
60,500,844
0
4
1,242
0
python,linux,multithreading,asynchronous,tornado
" write asynchronously to a pipe or socket to another process (syslog?" How can it be? log_requestis a normal function - not a coroutine and all default python handlers are not driven by asyncio event loop so they are not truly asynchronous. This is imho one of the factors that make Tornado less performant than ie. ...
0
1
0
0
2015-11-04T19:45:00.000
3
0
false
33,530,673
0
0
0
2
I am working on an application in which I may potentially need to log the entire traffic reaching the server. This feature may be turned on or off, or may be used when exceptions are caught. In any case, I am concerned about the blocking nature of disk I/O operations and their impact on the performance of the server. ...
Crashing MR-3020
36,415,642
0
0
61
0
python,linux
It could be related to many things: things that I had to fix also: check the external power supply of the router, needs to be stable, the usb drives could drain too much current than the port can handle, a simple fix is to add a externally powered usbhub or the same port but with capacitors in parallel to the powerlin...
0
1
0
1
2015-11-05T17:25:00.000
1
0
false
33,550,976
0
0
0
1
I've got several MR-3020's that I have flashed with OpenWRT and mounted a 16GB ext4 USB drive on it. Upon boot, a daemon shell script is started which does two things: 1) It constantly looks to see if my main program is running and if not starts up the python script 2) It compares the lasts heartbeat timestamp generate...
tornado websocket get multi message when on_message called
33,562,632
1
0
247
0
python,websocket,tornado
Maybe you should delimit the messages you send so it is easy to split them up - in this case you could add a \n, obviously the delimiter mustn't happen within the message. Another way would be to prefix each message with its length in also a clearly-delimited way, then the receiver reads the length then that number of ...
0
1
1
0
2015-11-06T08:32:00.000
2
0.099668
false
33,562,499
0
0
0
1
I use tornado websocket send/recv message, the client send json message, and server recv message and json parse, but why the server get message which is mutil json message, such as {"a":"v"}{"a":"c"}, how to process this message
How do crossover.io, WAMP, twisted (+ klein), and django/flask/bottle interact?
34,815,287
0
0
263
0
python,django,twisted,wamp-protocol,crossbar
With a Web app using WAMP, you have two separate mechanisms: Serving the Web assets and the Web app then communicating with the backend (or other WAMP components). You can use Django, Flask or any other web framework for serving the assets - or the static Web server integrated into Crossbar.io. The JavaScript you deli...
0
1
0
0
2015-11-06T23:37:00.000
1
0
false
33,577,252
0
0
1
1
As I understand it (please do correct misunderstandings, obviously), the mentioned projects/technologies are as follows:- Crossover.io - A router for WAMP. Cross-language. WAMP - An async message passing protocol, supporting (among other things) Pub/Sub and RPC. Cross-language. twisted - An asynchronous loop, primarily...
Is Tensorflow compatible with a Windows workflow?
33,623,888
4
61
22,555
0
python,windows,tensorflow
Another way to run it on Windows is to install for example Vmware (a free version if you are not using it commercially), install Ubuntu Linux into that and then install TensorFlow using the Linux instructions. That is what I have been doing, it works well.
0
1
0
0
2015-11-09T18:51:00.000
7
0.113791
false
33,616,094
0
0
0
1
I haven't seen anything about Windows compatibility -- is this on the way or currently available somewhere if I put forth some effort? (I have a Mac and an Ubuntu box but the Windows machine is the one with the discrete graphics card that I currently use with theano).
Using Drone-Kit to connect to Live Quad Copter
37,731,570
0
1
1,420
0
python,dronekit-python,dronekit
I was having the same issue yesterday and fixed it by installing the latest build from github. I'm on Windows 10 but in this case it should be irrelevant.
0
1
0
0
2015-11-10T20:21:00.000
2
0
false
33,638,868
0
0
0
1
I am tryingt to set a connection to a live quad copter using a the Drone-Kit api from the python command line. (I am using Python 2.7. I am also using OS X Yosemite 10.10.5) from dronekit import connect vehicle = connect('/dev/cu.usbserial-DJ00DA30', wait_ready=True) I get a message: Link timeout, no heartbeat...
Not able to link dll using cmd.exe
33,650,903
0
0
49
0
python,dll
The error has been resolved. The problem was that the third party dll should be present in the folder where iron python executable is present. For e.g if ipy.exe is present in the folder C:\Program Files(x86)\Iron Python2.7 then the third party dll has to be present there. The reason why it took me so long to figure t...
0
1
0
0
2015-11-11T10:52:00.000
1
1.2
true
33,649,021
1
0
0
1
From last one week I got stuck in this error. I have a dll from third party which needs to be linked for my system to behave properly. I have put the dll into the folder from where i am running the command prompt. For e.g. My python script is in C:/xyz and also my dll is in the same folder. When i am running the pyt...
How to know if a python script is running with admin permissions in windows?
33,656,984
0
3
97
0
python
If you install the pywin tool set, the function win32.shell.IsUserAnAdmin() can be used to see if you a a member of the administrators group.
0
1
0
1
2015-11-11T14:41:00.000
2
0
false
33,652,909
0
0
0
1
I want to check if a python script is running with admin permissions on windows, without using the ctypes module. It is important for me not to use ctypes for some reasons. I have looked with no luck. Thanks.
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
67,752,486
1
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
I had the same issue under my conda virtual env in windows pc and downgrading the jedi to 0.17.2 version resolved the issue for me. conda install jedi==0.17.2
0
1
0
0
2015-11-12T05:32:00.000
19
0.010526
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
40,527,071
4
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
In my case, after running pip install pyreadline, I needed to re-execute all the lines in Jupyter before the completion worked. I kept wondering why it worked for IPython but not Jupyter.
0
1
0
0
2015-11-12T05:32:00.000
19
0.04208
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
61,810,343
0
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
The best fix I've found for this issue was to create a new Environment. If you are using Anaconda simply create a new environment to fix the issue. Sure you have to reinstall some libraries but its all worth it.
0
1
0
0
2015-11-12T05:32:00.000
19
0
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
63,544,019
0
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
I had the same issue when I was using miniconda, I switched to anaconda and that seems to have solved the issue. PS. I had tried everything I could find on the net but nothing resolved it except for switching to anaconda.
0
1
0
0
2015-11-12T05:32:00.000
19
0
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
55,069,872
11
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
you can add %config IPCompleter.greedy=True in the first box of your Jupyter Notebook.
0
1
0
0
2015-11-12T05:32:00.000
19
1
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
65,898,020
0
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
As the question was asked five years ago, the answer was likely different back then... but I want to add my two cents if anyone googles today: The answer by users Sagnik and more above worked for me. One thing to add is that if running anaconda, you can do what I did: simply start the anaconda-navigator software, loca...
0
1
0
0
2015-11-12T05:32:00.000
19
0
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
63,314,060
0
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
Creating a new env variable helped me to solve this problem. Use environments.txt content in .conda as path.
0
1
0
0
2015-11-12T05:32:00.000
19
0
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
65,775,964
6
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
I had a similar issue and unfortunately cannot comment on a post, so am adding an easy solution that worked for me here. I use conda and conda list showed I was running jedi-0.18.0. I used the command conda install jedi==0.17.2. This quickly fixed the problem for my conda environment. Additional note: I usually use ...
0
1
0
0
2015-11-12T05:32:00.000
19
1
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
TAB completion does not work in Jupyter Notebook but fine in iPython terminal
65,650,287
3
69
91,871
0
ipython-notebook,readline,jupyter,tab-completion,ubuntu-15.10
The answer from Sagnik above (Dec 20, 2020) works for me on Windows 10. pip3 install jedi==0.17.2 [Sorry I'm posting this as an answer instead of comment. I have no permission to comment yet. ]
0
1
0
0
2015-11-12T05:32:00.000
19
0.031568
false
33,665,039
1
0
0
9
TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg, but TAB completion still doesn't work in Jupyter Not...
Long-Running processes and hosting providers?
33,695,205
0
0
45
0
python,scripting,hosting,long-running-processes
I tweeted to my hosting corp and they said my long-running python data analysis script is probably okay as long as it doesn't over-use resources. I let it rip - just a single process churning away, generating a sub-megabyte data output file, but alas, they killed the process for me during the night, with a note that t...
0
1
0
0
2015-11-12T15:12:00.000
1
0
false
33,674,736
0
0
0
1
I have a python data analysis script that runs for many hours, and while it was running on my desktop, with fans blazing I realized I could just run it on a hosting account remotely in bkgnd and let it rip. But I'm wondering - is this generally frowned upon by hosting providers? Are they assuming that all my CPU/memo...
How to install cryptography for python3 in Mac OS X?
41,799,420
10
1
2,064
0
python,macos,pip
Trying to install the scrapy I need to install cryptography package on Mac OS El Capitan. As explained in Cryptography installation doc env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography
0
1
0
0
2015-11-13T08:52:00.000
1
1
false
33,688,875
1
0
0
1
When executing pip3 install cryptography, pip3 gives an error: fatal error: 'openssl/aes.h' file not found #include <openssl/aes.h> 1 error generated. error: command '/usr/bin/clang' failed with exit status 1 I checked with brew info openssl and got the answer: Generally there are no consequences of this for yo...
Is the symbolic link python important?
33,706,723
0
1
392
0
python,python-3.x,raspberry-pi,raspbian
Yes, there are many applications and scripts that is written for python 2, and they usually come pre-installed in your linux distribution. Those applications expect python binary to be version 2. And they will most likely break if you force them to run on python 3.
0
1
0
1
2015-11-14T08:31:00.000
3
0
false
33,706,579
1
0
0
1
I am on a Raspberry Pi, and by default the following symbolic links were created in /usr/bin: /usr/bin/python -> /usr/bin/python2.7 /usr/bin/python2 -> /usr/bin/python2.7 /usr/bin/python3 -> /usr/bin/python3.2 Most of my work is done in Python 3, so I decided to recreate /usr/bin/python to point to /usr/bin/python3.2...
How to install pycharm 5.0 in ubuntu
33,708,804
0
2
1,483
0
python,ubuntu,pycharm
Delete the old Pycharm directory and replace it with the new one. Now run pycharm.sh from the termin to start Pycharm. Once opened, go to Tools> Create desktop entry. Once this is done, close the current instance and now the new icon should appear in the launcher.
0
1
0
0
2015-11-14T10:51:00.000
2
0
false
33,707,614
1
0
0
1
Months ago,I installed pycharm 4.5 in Ubuntu(by run /bin/pycharm.sh),it works well. Now I found 5.0 version is released.I download the .tar.gz file and unzip it.Then I want to install it in the same way. But a matter is ,although it runs well, in launcher I found the icon of Pycharm becomes a big "?".Also,in terminal,i...
Cannot uninstall python 2.7.10 from windows 10
40,187,053
1
1
1,385
0
python,windows,python-2.7,windows-10
i have same problem and i use advanced system optimizer and clean registery and repair python then uninstall and it work for me
0
1
0
0
2015-11-14T20:01:00.000
2
0.099668
false
33,712,729
1
0
0
2
For some reason I messed up my install in python a while ago and I recently tried to repair the install but I am getting an error saying: "The specified account already exists." I then decided to rerun the install package and instead of repairing it decided to delete python so I clicked uninstall and got the error mess...
Cannot uninstall python 2.7.10 from windows 10
57,189,000
0
1
1,385
0
python,windows,python-2.7,windows-10
I can confirm that this works. Use Ccleaner to fix the registry, then use installer to "Repair" 2.7.10 the installation, then use installer to "Remove" the installation.
0
1
0
0
2015-11-14T20:01:00.000
2
0
false
33,712,729
1
0
0
2
For some reason I messed up my install in python a while ago and I recently tried to repair the install but I am getting an error saying: "The specified account already exists." I then decided to rerun the install package and instead of repairing it decided to delete python so I clicked uninstall and got the error mess...
Linux error: sh: qsub: command not found
33,727,291
2
1
3,904
0
python,linux,runtime-error
You specified --sge which is used to schedule jobs on Sun Grid Engine. Since you want to run on your local machine instead of SGE, you should remove this flag.
0
1
0
0
2015-11-16T01:01:00.000
1
1.2
true
33,727,053
0
0
0
1
I am running shellfish.py in my local machine. Can someone please explain me why I am getting this error: sh: qsub: command not found
Swig not found when installing pocketsphinx Python
67,705,323
4
4
5,686
0
python-2.7,windows-7,swig,pocketsphinx
You can use pipwin to install it without any issues. Install pipwin [Run as Administrator, if any issues] pip install pipwin Install pocketsphinx using pipwin pipwin install pocketsphinx Note: Works on Windows-10(win32-py3.8) [Tested]
0
1
0
0
2015-11-16T21:57:00.000
2
0.379949
false
33,745,389
1
0
0
1
I would like to convert grapheme to phoneme. And I want to pip install pocketsphinx to do that. One of its dependency is swig, so I downloaded and placed it in a directory and go to the environment path variable and add the path that leads to swig.exe. When I cmd and type 'swig --help' it seems to be working. But when ...
How can I set limit to the duration of a job with the APScheduler?
33,770,050
7
5
1,679
0
python,apscheduler
APScheduler does not have a way to set the maximum run time of a job. This is mostly due to the fact that the underlying concurrent.futures package that is used for the PoolExecutors do not support such a feature. A subprocess could be killed but lacking the proper API, APScheduler would have to get a specialized execu...
0
1
0
0
2015-11-17T08:40:00.000
1
1
false
33,752,419
0
0
1
1
I set the scheduler with the "max_instances=10".There can be 10 jobs to run concurrently.Sometimes some jobs blocked, it wsa hanging there.When more than 10 jobs werr blocking there, the exception of "skipped: maximum number of running instances reached(10)". Does APScheduler have a way to set the max time of a job's d...
"Illegal instruction: 4" when trying to start Python with virtualenv in OS X
40,489,765
1
6
5,705
0
macos,python-2.7,virtualenv
I've had this problem a number of times now. While I can't say for certain what the actual issue is, I believe it basically means that some file(s) in the virtualenv installment of Python have become corrupted. I keep my virtual environment in a synced Dropbox folder, so that may be a large contributor to the issue. Re...
0
1
0
0
2015-11-17T10:31:00.000
2
1.2
true
33,754,660
1
0
0
2
I've been using Python 2.7.10 in a virtualenv environment for a couple of months. Yesterday, activating the environment went fine, but today suddently I get this cryptic error when trying to start Python from Terminal: Illegal instruction: 4 I have made no changes to my environment (AFAIK), so I'm having a difficult ti...
"Illegal instruction: 4" when trying to start Python with virtualenv in OS X
49,254,513
1
6
5,705
0
macos,python-2.7,virtualenv
I had same problem and found solution by uninstalling psycopg2 and installing older version. As I understood my comp was not supporting some commands in new version
0
1
0
0
2015-11-17T10:31:00.000
2
0.099668
false
33,754,660
1
0
0
2
I've been using Python 2.7.10 in a virtualenv environment for a couple of months. Yesterday, activating the environment went fine, but today suddently I get this cryptic error when trying to start Python from Terminal: Illegal instruction: 4 I have made no changes to my environment (AFAIK), so I'm having a difficult ti...
get sublime text 3 to close certain windows on quit
36,759,584
0
0
167
0
python,sublimetext3,sublimetext,sublime-text-plugin
I don't know what you mean by "specific windows" - sublime windows? sublime views? Other application windows? You can detect window close with EventListener. There is no direct pre-quitting event, but you can use view's on_close function and check if there is any widnows in sublime.windows(). def on_close(self, view): ...
0
1
0
0
2015-11-18T10:01:00.000
1
0
false
33,776,940
0
0
0
1
Is there any way to write a script that will tell sublime to close specific windows on quit? I've tried setting a window's remember_open_files setting to false, and I've tried using python's atexit library to run the close window command. So far no luck
How to prevent python wheel from expanding shebang?
33,808,977
2
6
713
0
python,shebang,python-wheel
I finally narrowed it down and found the problem. Here the exact steps to reproduce the problem and the solution. Use a valid shebang in a script thats added in setup.py. In my case #!/usr/bin/env python Create a virtualenv with virtualenv -p /usr/bin/python2 env and activate with source env/bin/activate. Install the ...
0
1
0
0
2015-11-18T23:45:00.000
3
1.2
true
33,792,696
1
0
0
2
If I build a package with python setup.py bdist_wheel, the resulting package expands the shebangs in the scripts listed in setup.py via setup(scripts=["script/path"]) to use the absolute path to my python executable #!/home/f483/dev/storj/storjnode/env/bin/python. This is obviously a problem as anyone using the wheel w...
How to prevent python wheel from expanding shebang?
33,792,857
0
6
713
0
python,shebang,python-wheel
Using the generic shebang #!python seems to solve this problem. Edit: This is incorect!
0
1
0
0
2015-11-18T23:45:00.000
3
0
false
33,792,696
1
0
0
2
If I build a package with python setup.py bdist_wheel, the resulting package expands the shebangs in the scripts listed in setup.py via setup(scripts=["script/path"]) to use the absolute path to my python executable #!/home/f483/dev/storj/storjnode/env/bin/python. This is obviously a problem as anyone using the wheel w...
Celery restart loss scheduled tasks
52,539,351
3
15
3,035
0
python,django,redis,celery
you have to use RabbitMq instead redis. RabbitMQ is feature-complete, stable, durable and easy to install. It’s an excellent choice for a production environment. Redis is also feature-complete, but is more susceptible to data loss in the event of abrupt termination or power failures. Using rabbit mq your problem of los...
0
1
0
0
2015-11-19T10:59:00.000
1
0.53705
false
33,801,985
0
0
1
1
I use Celery to schedule the sending of emails in the future. I put the task in celery with apply_async() and ETA setted sometimes in the future. When I look in flower I see that all tasks scheduled for the future has status RECEIVED. If I restart celery all tasks are gone. Why they are gone? I use redis as a broker. E...
Add to Python Script from PowerShell Terminal?
33,813,074
0
1
81
0
python,powershell
Use Add-Content ex1.py 'print "Hello"' Use python.exe -c "<cmd>" to execute a single python command.
0
1
0
0
2015-11-19T19:44:00.000
1
0
false
33,812,995
1
0
0
1
I'm learning Python from "Learn Python the Hard Way" by Zed A. Shaw, and can't figure out: I'm working in Powershell. How do I add a line of text to my python script (ex1.py) from the PowerShell terminal? I've tried (starting in PowerShell): Add-Content ex1.py "print "Hello"" and other variations, but I get the messa...
No module named 'lxml' Windows 8.1
33,818,809
4
6
10,453
0
python,windows,lxml
Go to the regular command prompt and try pip install lxml. If that doesn't work, remove and reinstall python. You'll get a list of check marks during installation, make sure you check pip and try pip install lxml again afterwards. pip stands for pip installs packages, and it can install some useful python packages for ...
0
1
1
0
2015-11-20T04:01:00.000
3
0.26052
false
33,818,770
0
0
0
1
Everyone's code online refers to sudo apt-get #whatever# but windows doesn't have that feature. I heard of something called Powershell but I opened it and have no idea what it is. I just want to get a simple environment going and lxml so I could scrape from websites.
Google App Engine File Processing
33,830,880
0
0
62
0
python,file,google-app-engine
your best bet could upload to blobstore or Cloud Storage, then use Task Queue to process the file which has no time limits.
0
1
0
0
2015-11-20T15:46:00.000
1
0
false
33,830,715
0
0
1
1
I am trying to create a process that will upload a file to GAE to interpret it's contents (most are PDFs, so we would use something like PDF Miner), and then store it in Google Cloud Storage. To my understanding, the problem is that file uploads are limited to both 60 seconds for it to execute, as well as a size limit ...
AWS worker daemon locks multiple messages even before the first message is processed
33,846,596
1
1
179
0
python,amazon-web-services,flask,amazon-sqs,worker
Set the HTTP Connection setting under Worker Configuration to 1. This should prevent each server from receiving more than 1 message at a time. You might want to look into changing your autoscaling configuration to monitor your SQS queue depth or some other SQS metric instead of worker CPU utilization.
0
1
0
1
2015-11-21T17:29:00.000
1
1.2
true
33,846,425
0
0
1
1
I have deployed a python-flask web app on the worker tier of AWS. I send some data into the associated SQS queue and the daemon forwards the request data in a POST request to my web app. The web app takes anywhere between 5 mins to 6 hours to process the request depending upon the size of posted data. I have also confi...
Sharing install files between virtualenv instances
33,852,065
0
1
39
0
python,pip,virtualenv
The whole point of virutalenv is to isolate and compartmentalize dependencies. What you are describing directly contradicts its use case. You could go into each individual project and modify the environmental variables but that's a hackish solution.
0
1
0
0
2015-11-22T05:47:00.000
1
0
false
33,852,048
1
0
1
1
I have 2-3 dozen Python projects on my local hard drive, and each one has its own virtualenv. The problem is that adds up to a lot of space, and there's a lot of duplicated files since most of my projects have similar dependencies. Is there a way to configure virtualenv or pip to install packages into a common director...
Where is the Ananconda launcher in Windows 8?
41,717,467
1
1
10,129
0
python,anaconda
The previous answer suggesting upgrading to Anaconda 4.0+ is probably sensible. However if this is not a desirable option, the below will allow use of Anaconda Launcher on previous versions. Anaconda is installed under 'C:\Users\%USERNAME%\Anaconda'. The Anaconda Launcher can be open by clicking on the Start menu and t...
0
1
0
0
2015-11-23T01:25:00.000
4
0.049958
false
33,862,418
1
0
0
1
I am complete Python newb here who is just making the switch from MATLAB. I installed the Anaconda 2.4 with Python 2.7 on a 64-bit Windows 8.1 system. But I cannot even start the program as I cannot find any Anaconda launcher either on the Start menu or the desktop. Any help please?
passenger stop kill orphan process
33,891,874
0
0
361
0
python,ruby-on-rails,linux
I have solve my problem by restart my app instead of restart passenger restart app command: passenger-config restart-app [path of my app]
0
1
0
0
2015-11-23T07:02:00.000
1
0
false
33,865,344
0
0
1
1
My app is rails and python . In rails I create a new thread and start a shell command which executes python scripts. This python script (parent process) will exit quickly, but before it exits it will fork a child process, and the child process will be an orphan process after the parent process exits. Situation 1: If I ...
Pip Wheel Package Installation Fail
33,873,874
0
0
1,089
0
python,azure,pip,python-wheel
have you tried uninstalling and reinstalling? I tried pip wheel azure-mgmt and that installed -0.20.1 for me. The directory for mine is /Users/me/wheelhouse, so you could look there. I found that in the initial log of the build.
0
1
0
0
2015-11-23T09:52:00.000
3
0
false
33,867,992
1
0
0
1
I try to run pip wheel azure-mgmt=0.20.1, but whenever I run it I get following pip wheel error, which is very clear: error: [Error 183] Cannot create a file when that file already exists: 'build\\bdist.win32\\wheel\\azure_mgmt-0.20.0.data\\..' So my question is where or how I can find that path? I want to delete that ...
GDB and Python: How to disable Y/N requirement about running python as root
33,877,733
1
0
723
0
python,gdb
Run gdb with the --batch command line option. This will disable all confirmation requests. You can also run the command "set confirm off"
0
1
0
0
2015-11-23T18:02:00.000
1
0.197375
false
33,877,549
0
0
0
1
I'm running GDB with a bash(.sh) script that does need sudo/super user access and it works good, but there is a problem, every time i runs gdb with that script, before gdb load the executable it will ask about running python with superuser. I want to remove this requirement/question. I want to remove this: WARNING: Ph...
create a hyperlink that executes a bash/python on the user machine
33,879,045
0
0
41
0
python,html,bash,jinja2
No. That is not possible. Nor desirable, due to the security implications.
0
1
0
1
2015-11-23T19:05:00.000
1
0
false
33,878,648
0
0
0
1
Is it possible to create a hyperlink/button that calls a bash/python script on the user/local machine. I did search on the topic but there is a lot of discussion about the opening a port to a server (even the local port) but I don't want to open a port but execute everything locally. Is this even possible? Thanks
Cannot run a Python file from cmd line
33,889,708
0
1
162
0
python,python-2.7
I assume you are running the script with command python file_name.py. You can prevent closing of the cmd by getting a character from user. use raw_input() function to get a character (which probably could be an enter).
0
1
0
0
2015-11-24T09:08:00.000
3
0
false
33,889,476
1
0
0
2
I have installed Python and written a program in Notepad++. Now when I try to type the Python file name in the Run window, all that I see is a black window opening for a second and then closing. I cant run the file at all, how can run this file? Also I want to tell that I also tried to be in the same directory as a ...
Cannot run a Python file from cmd line
33,890,132
0
1
162
0
python,python-2.7
It sounds like you are entering your script name directly into the Windows Run prompt (possibly Windows XP?). This will launch Python in a black command prompt window and run your script. As soon as the script finishes, the command prompt window will automatically close. You have a number of alternatives: First manua...
0
1
0
0
2015-11-24T09:08:00.000
3
0
false
33,889,476
1
0
0
2
I have installed Python and written a program in Notepad++. Now when I try to type the Python file name in the Run window, all that I see is a black window opening for a second and then closing. I cant run the file at all, how can run this file? Also I want to tell that I also tried to be in the same directory as a ...
How do you stop a python SimpleHTTPServer in Terminal?
33,910,508
7
2
10,625
0
python,simplehttpserver
CTRL + C is usually the right way to kill the process and leave your terminal open.
0
1
0
1
2015-11-25T07:11:00.000
3
1.2
true
33,910,489
0
0
0
2
I've started a SimpleHTTPServer via the command python -m SimpleHTTPServer 9001. I'd like to stop it without having to force quit Terminal. What's the keystrokes required to stop it?
How do you stop a python SimpleHTTPServer in Terminal?
33,910,517
3
2
10,625
0
python,simplehttpserver
Use CTRL+C. This is a filler text because answer must be 30 characters.
0
1
0
1
2015-11-25T07:11:00.000
3
0.197375
false
33,910,489
0
0
0
2
I've started a SimpleHTTPServer via the command python -m SimpleHTTPServer 9001. I'd like to stop it without having to force quit Terminal. What's the keystrokes required to stop it?
Cross platform movie creation in python
34,064,048
1
1
35
0
python,movie
opencv can solve this cross platform and has python bindings.
0
1
0
0
2015-11-26T10:14:00.000
1
1.2
true
33,935,892
0
0
0
1
I am developing a small application that generates a stochastic animation, and I would want the option to save the animation as a movie. An obvious solution in linux would be to save the images and subprocess a call to ffmpeg or the like, but the program should preferable run on windows as well, without any external de...