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
App Engine serving old version intermittently
38,788,820
1
0
190
0
python,google-app-engine
You have multiple layers of caches beyond memcache, Googles edge cache will definitely cache static content especially if you app is referenced by your domain and not appspot.com . You will probably need to use some cache busting techniques. You can test this by requesting the url that is presenting old content wi...
0
1
0
0
2016-08-03T10:43:00.000
1
1.2
true
38,741,327
0
0
1
1
I've deployed a new version which contains just one image replacement. After migrating traffic (100%) to the new version I can see that only this version now has active instances. However 2 days later and App engine is still intermittently serving the old image. So I assume the previous version. When I ping the domain ...
How to use a Seafile generated upload-link w/o authentication token from command line
38,743,242
9
5
2,271
0
python,curl,urllib2,http-upload,seafile-server
needed 2 hours to find a solution with curl, it needs two steps: make a get-request to the public uplink url with the repo-id as query parameter as follows: curl 'https://cloud.seafile.com/ajax/u/d/98233edf89/upload/?r=f3e30b25-aad7-4e92-b6fd-4665760dd6f5' -H 'Accept: application/json' -H 'X-Requested-With: XMLHttpRe...
0
1
1
0
2016-08-03T11:54:00.000
2
1
false
38,742,893
0
0
1
1
With Seafile one is able to create a public upload link (e.g. https://cloud.seafile.com/u/d/98233edf89/) to upload files via Browser w/o authentication. Seafile webapi does not support any upload w/o authentication token. How can I use such kind of link from command line with curl or from python script?
Python 2.7 on OS X: TypeError: 'frozenset' object is not callable on each command
38,767,427
4
2
8,871
0
python,python-2.7,hashlib,frozenset
Removal of this package have helped me: sudo rm -rf /Library/Python/2.7/site-packages/hashlib-20081119-py2.7-macosx-10.11-intel.egg
0
1
0
0
2016-08-03T19:08:00.000
2
1.2
true
38,751,800
0
0
0
1
I have this error on each my command with Python: ➜ /tmp sudo easy_install pip Traceback (most recent call last): File "/usr/bin/easy_install-2.7", line 11, in load_entry_point('setuptools==1.1.6', 'console_scripts', 'easy_install')() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/...
Find out result size of unpacked archive without unpacking it. Or stop unpacking when certain size is exceed
38,768,586
0
0
1,601
0
python,linux,archive,7zip,rar
I can't give you a native python answer, but, if you need to fall back on os.system, the command-line utilities for handling all four formats have switches which can be used to list the contents of the archive including the size of each file and possibly a total size: rar: unrar l FILENAME.rar lists information on eac...
0
1
0
0
2016-08-04T12:39:00.000
2
0
false
38,767,584
0
0
0
1
I need to validate result size of unpacked archive without unpacking it, so that to prevent huge archives to store on my server. Or start unpacking and when size is exceeded certain size, then stop unpacking. I have already tried lib pyunpack, but it allows only unpacking archives. Need to validate such archive extens...
Dask worker persistent variables
38,772,791
1
2
340
0
python,dask
The workers themselves are just Python processes, so you could do tricks with globals(). However, it is probably cleaner to emit values and pass these between tasks. Dask retains the right to rerun functions and run them on different machines, so depending on global state or worker-specific state can easily get you ...
0
1
0
0
2016-08-04T16:10:00.000
1
1.2
true
38,772,455
1
0
0
1
Is there a way with dask to have a variable that can be retrieved from one task to another. I mean a variable that I could lock in the worker and then retrieve in the same worker when i execute another task.
How to calculate the width of the Windows CMD shell in pixels?
38,778,425
0
2
206
0
python,linux,shell,cmd
You cant but the default command prompt dimensions are 677, 343. The height being 677 and the width being 343, hope this helps.
0
1
0
0
2016-08-04T21:57:00.000
1
0
false
38,778,079
0
0
0
1
I'm working on a Python shell script that is supposed to fill a percentage of the user's screen. The shell's width, however, is calculated in characters instead of pixels, and I find it difficult to compare them to the screen resolution (which is obviously in pixels). How can I effectively calculate the width in charac...
Can a LP created on a Windows platform be run on a Linux platform?
38,780,526
0
1
51
0
python,linux,windows,matlab,gurobi
Yes, you can write Gurobi Python code on one system, then copy it and run it on another. You can go from Windows to Linux, Mac to Windows, etc. Alternately, if you have Gurobi Compute Server, your Windows computer can be a client of your Linux server.
0
1
0
0
2016-08-05T02:33:00.000
2
0
false
38,780,223
1
0
0
1
I have a huge MILP in Matlab, which I want to re-program in Gurobi using python language, on a Windows desktop. But after that I want to run it on a super computer which has a Linux os. I know python is cross-platform. Does this mean anything I create in Gurobi on Windows will run on Linux too? If this question is dumb...
Pointing bash to a python installed on windows
38,797,912
0
11
7,716
0
python,windows,bash,windows-subsystem-for-linux
You have at least four options: Specify the complete absolute path to the python executable you want to use. Define an alias in your .bashrc file Modify the PATH variable in your .bashrc file to include the location of the python version you wish to use. Create a symlink in a directory which is already in your PATH.
0
1
0
0
2016-08-05T17:35:00.000
3
0
false
38,794,937
1
0
0
2
I am using Windows 10 and have Python installed. The new update brought bash to windows, but when I call python from inside bash, it refers to the Python installation which came with the bash, not to my Python installed on Windows. So, for example, I can't use the modules which I have already installed on Windows and w...
Pointing bash to a python installed on windows
40,900,477
5
11
7,716
0
python,windows,bash,windows-subsystem-for-linux
As of Windows 10 Insider build #14951, you can now invoke Windows executables from within Bash. You can do this by explicitly calling the absolute path to an executable (e.g. c:\Windows\System32\notepad.exe), or by adding the executable's path to the bash path (if it isn't already), and just calling, for example, notep...
0
1
0
0
2016-08-05T17:35:00.000
3
1.2
true
38,794,937
1
0
0
2
I am using Windows 10 and have Python installed. The new update brought bash to windows, but when I call python from inside bash, it refers to the Python installation which came with the bash, not to my Python installed on Windows. So, for example, I can't use the modules which I have already installed on Windows and w...
how to install hypothesis Python package?
38,796,484
1
0
1,175
0
python,wing-ide,python-packaging
pip install hypothesis Assuming you have pip. If you want to install it from the downloaded package just open command prompt and cd to the directory where you downloaded it and do python setup.py install
0
1
0
0
2016-08-05T19:20:00.000
2
0.099668
false
38,796,441
1
0
0
1
I'm using Wing IDE, how do I install hypothesis Python package to my computer? I have already download the zip file, do I use command prompt to install it or there is an option in Wing IDE to do it?
Where can I get pycharm-debug.egg for Idea?
55,854,571
4
9
6,168
0
python,debugging,intellij-idea,pycharm,remote-debugging
I just contacted JetBrains and was informed that their documentation is out of date and that it's now located in /Users/<user>/Library/Application Support/<product_version>/python.
0
1
0
0
2016-08-06T21:03:00.000
4
0.197375
false
38,808,690
1
0
0
1
I can't find pycharm-debug.egg in IntelliJ Idea (2016.2) installation directory, where can I get it?
Why does the Google App Engine NDB datastore have both "—" and "null" for unkown data?
38,815,611
4
1
184
1
python,google-app-engine,null,google-cloud-datastore,app-engine-ndb
You have to specifically set the value to NULL, otherwise it will not be stored in the Datastore and you see it as missing in the Datastore viewer. This is an important distinction. NULL values can be indexed, so you can retrieve a list of entities where date of birth, for example, is null. On the other hand, if you do...
0
1
0
0
2016-08-07T13:35:00.000
1
1.2
true
38,814,666
0
0
1
1
I recently updated an entity model to include some extra properties, and noticed something odd. For properties that have never been written, the Datastore query page shows a "—", but for ones that I've explicitly set to None in Python, it shows "null". In SQL, both of those cases would be null. When I query an entity t...
Getting the targetdir variable must be provided when invoking this installer while installing python 3.5
38,842,351
89
25
28,893
0
python-3.x,window
Hey just right click on exe file and run as a administrator.It worked for me :)
0
1
0
0
2016-08-08T11:19:00.000
3
1.2
true
38,827,889
1
0
0
2
I have Python 2.7 on my Window 7. Problem is with python 3.5 and 3.6 version only.
Getting the targetdir variable must be provided when invoking this installer while installing python 3.5
52,044,332
2
25
28,893
0
python-3.x,window
There are 2-3 ways to solve the issue: As suggested above, Right-click on exe file and run as administrator. Open command prompt in administrator mode. Just take a note of where your setup file location is present. Use cd C:\Users\ABC\Downloads Type C:\>python-3.7.0.exe TargetDir=C:\Python37 Note: my setup file wa...
0
1
0
0
2016-08-08T11:19:00.000
3
0.132549
false
38,827,889
1
0
0
2
I have Python 2.7 on my Window 7. Problem is with python 3.5 and 3.6 version only.
Access Jupyter notebook running on Docker container
38,936,551
85
96
99,109
0
python,docker,jupyter-notebook
You need to run your notebook on 0.0.0.0: jupyter notebook -i 0.0.0.0. Running on localhost make it available only from inside the container.
0
1
0
0
2016-08-08T13:33:00.000
11
1
false
38,830,610
0
0
0
7
I created a docker image with python libraries and Jupyter. I start the container with the option -p 8888:8888, to link ports between host and container. When I launch a Jupyter kernel inside the container, it is running on localhost:8888 (and does not find a browser). I used the command jupyter notebook But from my ...
Access Jupyter notebook running on Docker container
48,486,958
0
96
99,109
0
python,docker,jupyter-notebook
In the container you can run the following to make it available on your local machine (using your docker machine's ip address). jupyter notebook --ip 0.0.0.0 --allow-root You may not need to provide the --allow-root flag depending on your container's setup.
0
1
0
0
2016-08-08T13:33:00.000
11
0
false
38,830,610
0
0
0
7
I created a docker image with python libraries and Jupyter. I start the container with the option -p 8888:8888, to link ports between host and container. When I launch a Jupyter kernel inside the container, it is running on localhost:8888 (and does not find a browser). I used the command jupyter notebook But from my ...
Access Jupyter notebook running on Docker container
51,117,257
2
96
99,109
0
python,docker,jupyter-notebook
You can use the command jupyter notebook --allow-root --ip[of your container] or give access to all ip using option --ip0.0.0.0.
0
1
0
0
2016-08-08T13:33:00.000
11
0.036348
false
38,830,610
0
0
0
7
I created a docker image with python libraries and Jupyter. I start the container with the option -p 8888:8888, to link ports between host and container. When I launch a Jupyter kernel inside the container, it is running on localhost:8888 (and does not find a browser). I used the command jupyter notebook But from my ...
Access Jupyter notebook running on Docker container
62,352,225
0
96
99,109
0
python,docker,jupyter-notebook
docker run -i -t -p 8888:8888 continuumio/anaconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir /opt/notebooks && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser --allow-root" i had to add --allow-root to the command and now its running
0
1
0
0
2016-08-08T13:33:00.000
11
0
false
38,830,610
0
0
0
7
I created a docker image with python libraries and Jupyter. I start the container with the option -p 8888:8888, to link ports between host and container. When I launch a Jupyter kernel inside the container, it is running on localhost:8888 (and does not find a browser). I used the command jupyter notebook But from my ...
Access Jupyter notebook running on Docker container
71,815,877
0
96
99,109
0
python,docker,jupyter-notebook
Go in the Docker and check cat /etc/jupyter/jupyter_notebook_config.py : You should see / add this line : c.NotebookApp.allow_origin = 'https://colab.research.google.com'
0
1
0
0
2016-08-08T13:33:00.000
11
0
false
38,830,610
0
0
0
7
I created a docker image with python libraries and Jupyter. I start the container with the option -p 8888:8888, to link ports between host and container. When I launch a Jupyter kernel inside the container, it is running on localhost:8888 (and does not find a browser). I used the command jupyter notebook But from my ...
Access Jupyter notebook running on Docker container
48,986,548
65
96
99,109
0
python,docker,jupyter-notebook
Host machine: docker run -it -p 8888:8888 image:version Inside the Container : jupyter notebook --ip 0.0.0.0 --no-browser --allow-root Host machine access this url : localhost:8888/tree‌​ When you are logging in for the first time there will be a link displayed on the terminal to log on with a token.
0
1
0
0
2016-08-08T13:33:00.000
11
1
false
38,830,610
0
0
0
7
I created a docker image with python libraries and Jupyter. I start the container with the option -p 8888:8888, to link ports between host and container. When I launch a Jupyter kernel inside the container, it is running on localhost:8888 (and does not find a browser). I used the command jupyter notebook But from my ...
Access Jupyter notebook running on Docker container
46,086,088
12
96
99,109
0
python,docker,jupyter-notebook
To get the link to your Jupyter notebook server: After your docker run command, a hyperlink should be automatically generated. It looks something like this: http://localhost:8888/?token=f3a8354eb82c92f5a12399fe1835bf8f31275f917928c8d2 :: /home/jovyan/work If you want to get the link again later down the line, you can t...
0
1
0
0
2016-08-08T13:33:00.000
11
1
false
38,830,610
0
0
0
7
I created a docker image with python libraries and Jupyter. I start the container with the option -p 8888:8888, to link ports between host and container. When I launch a Jupyter kernel inside the container, it is running on localhost:8888 (and does not find a browser). I used the command jupyter notebook But from my ...
pcapy.PcapError: eth1: You don't have permission to capture on that device
38,832,386
0
0
1,739
0
python,scapy,pcap
If you're running on linux or OS X try running as root or with sudo, otherwise if you're on windows try running as administrator.
0
1
1
0
2016-08-08T14:50:00.000
1
1.2
true
38,832,347
0
0
0
1
I am trying to run pcapy_sniffer.py but i get this pcapy.PcapError: eth1: You don't have permission to capture on that device (socket: Operation not permitted)
What is the advantage of running python script using command line?
38,909,330
0
0
1,721
0
python,command-line,emacs
People use different tools for different purposes. An important question about the interface into any program is who is the user? You, as a programmer, will use the interpreter to test a program and check for errors. Often times, the user doesn't really need to access the variables inside because they are not interact...
0
1
0
1
2016-08-08T22:04:00.000
1
1.2
true
38,839,215
0
0
0
1
I am beginner to python and programming in general. As I am learning python, I am tying to develop a good habit or follow a good practice. So let me first explain what I am currently doing. I use Emacs (prelude) to execute python scripts. The keybinding C-c C-c evaluates the buffer which contains the python script. The...
Running an R script from command line (to execute from python)
38,856,331
1
4
3,887
0
python,r,shell,command-line
You probably already have R, since you can already run your script. All you have to do is find its binaries (the Rscript.exe file). Then open windows command line ([cmd] + [R] > type in : "cmd" > [enter]) Enter the full path to R.exe, followed by the full path to your script.
0
1
0
0
2016-08-09T16:42:00.000
3
1.2
true
38,856,271
0
0
0
2
I'm currently trying to run an R script from the command line (my end goal is to execute it as the last line of a python script). I'm not sure what a batch file is, or how to make my R script 'executable'. Currently it is saved as a .R file. It works when I run it from R. How do I execute this from the windows comman...
Running an R script from command line (to execute from python)
38,856,393
3
4
3,887
0
python,r,shell,command-line
You already have Rscript, it came with your version of R. If R.exe, Rgui.exe, ... are in your path, then so is Rscript.exe. Your call from Python could just be Rscript myFile.R. Rscript is much better than R BATCH CMD ... and other very old and outdated usage patterns.
0
1
0
0
2016-08-09T16:42:00.000
3
0.197375
false
38,856,271
0
0
0
2
I'm currently trying to run an R script from the command line (my end goal is to execute it as the last line of a python script). I'm not sure what a batch file is, or how to make my R script 'executable'. Currently it is saved as a .R file. It works when I run it from R. How do I execute this from the windows comman...
How can I send HTTP broadcast message with tornado?
38,866,860
1
1
544
0
python-2.7,http,tornado,broadcast
Short answer: you might be interested in WebSockets. Tornado seems to have support for this. Longer answer: I assume you're referring to broadcast from the server to all the clients. Unfortunately that's not doable conceptually in HTTP/1.1 because of the way it's thought out. The client asks something of the server, an...
0
1
0
0
2016-08-10T07:18:00.000
2
1.2
true
38,866,649
0
0
0
1
I have a tornado HTTP server. How can I implement broad-cast message with the tornado server? Is there any function for that or I just have to send normal HTTP message all clients looping. I think if I send normal HTTP message, the server should wait for the response. It seems not the concept of broad-cast. Otherwise, ...
Execution of a Python Script from PHP
38,870,240
1
1
173
0
php,android,python,linux,exec
First Check your python PATH using "which python" command and check result is /usr/bin/python. Check your "TestCode.py" if you have written #!/usr/bin/sh than replace it with #!/usr/bin/bash. Than run these commands exec('/usr/bin/python /var/www/html/Source/TestCode.py', $result); echo $result
0
1
0
1
2016-08-10T09:34:00.000
2
0.099668
false
38,869,507
0
0
0
1
I am making an android application in which I am first uploading the image to the server and on the server side, I want to execute a Python script from PHP. But I am not getting any output. When I access the Python script from the command prompt and run python TestCode.py it runs successfully and gives the desired outp...
Is there a way to schedule sending an e-mail through Google App Engine Mail API (Python)?
38,884,139
2
0
197
0
python,email,google-app-engine,cron
You can easily accomplish what you need with Task API. When you create a task, you can set an ETA parameter (when to execute). ETA time can be up to 30 days into the future. If 30 days is not enough, you can store a "send_email" entity in the Datastore, and set one of the properties to the date/time when this email sho...
0
1
0
1
2016-08-10T18:04:00.000
2
1.2
true
38,880,555
0
0
1
1
I want to be able to schedule an e-mail or more of them to be sent on a specific date, preferably using GAE Mail API if possible (so far I haven't found the solution). Would using Cron be an acceptable workaround and if so, would I even be able to create a Cron task with Python? The dates are various with no specific ...
How to get Python 3.5 and Anaconda 3.5 running on ubuntu 16.04?
46,602,056
0
1
3,184
0
python,python-2.7,python-3.x,ubuntu,anaconda
Use anaconda version Anaconda3-4.2.0-Linux-x86_64.sh from the anaconda installer archive.This comes with python 3.5. This worked for me.
0
1
0
0
2016-08-10T20:22:00.000
2
0
false
38,882,845
1
0
0
1
Anaconda for python 3.5 and python 2.7 seems to install just as a drop in folder inside my home folder on Ubuntu. Is there an installed version of Anaconda for Ubuntu 16? I'm not sure how to ask this but do I need python 3.5 that comes by default if I am also using Anaconda 3.5? It seems like the best solution is d...
Data analysis of log files – How to find a pattern?
38,886,144
0
0
2,344
0
python,logging,windows-ce,data-analysis
There is no input data at all to this problem so this answer will be basically pure theory, a little collection of ideas you could consider. To analize patterns out of a bunch of many logs you could definitely creating some graphs displaying relevant data which could help to narrow the problem, python is really very g...
0
1
0
0
2016-08-11T01:30:00.000
2
0
false
38,885,944
0
0
0
1
My company has slightly more than 300 vehicle based windows CE 5.0 mobile devices that all share the same software and usage model of Direct Store Delivery during the day then doing a Tcom at the home base every night. There is an unknown event(s) that results in the device freaking out and rebooting itself in the mid...
Run a python script from bamboo
40,619,044
0
2
5,082
0
python,python-2.7,bamboo
I run a lot of python tasks from bamboo, so it is possible. Using the Script task is generally painless... You should be able to use your script task to run the commands directly and have stdout written to the logs. Since this is true, you can run: 'which python' -- Output the path of which python that is being ran. '...
0
1
0
1
2016-08-11T22:06:00.000
2
0
false
38,906,844
1
0
0
1
I'm trying to run a python script from bamboo. I created a script task and wrote inline "python myFile.py". Should I be listing the full path for python? I changed the working directory to the location of myFile.py so that is not a problem. Is there anything else I need to do within the configuration plan to properly ...
Implications of flushing stdout after each print
38,926,942
0
1
373
0
python,python-2.7
Basically, the only drawback is that it's potentially slower. The buffering on stdin allows your program to run ahead of the physical I/O which is slow. However, if you're sending it to less, you're operating at human speeds anyway -- it's not going to make a difference.
0
1
0
0
2016-08-12T21:48:00.000
1
0
false
38,926,917
1
0
0
1
I have a script whose output is piped to less, and I would like the script to print it's statements into less as they come, rather than all at once. I found that if I flush stdout (via sys.stdout.flush()) after each print, the line is displayed in less when flushed (obviously). My question is: Are there any drawbacks t...
How to make a port forward rule in Python 3 in windows?
38,932,875
0
3
707
0
python,sockets,batch-file,portforwarding
I'm not sure if that's possible, as much as I know, ports aren't actually a thing their just some abstraction convention made by protocols today and supported by your operating system that allows you to have multiple connections per one machine, now sockets are basically some object provided to you by the operating sys...
0
1
1
0
2016-08-13T09:00:00.000
2
0
false
38,931,064
0
0
0
2
Purpose: I'm making a program that will set up a dedicated server (software made by game devs) for a game with minimal effort. One common step in making the server functional is port forwarding by making a port forward rule on a router. Me and my friends have been port forwarding through conventional means for many yea...
How to make a port forward rule in Python 3 in windows?
38,932,807
0
3
707
0
python,sockets,batch-file,portforwarding
You should read first some sort of informations about UPnP (Router Port-Forwarding) and that it's normally disabled. Dependent of your needs, you could also try a look at ssh reverse tunnels and at ssh at all, as it can solve many problems. But you will see that working with windows and things like adavanced network ...
0
1
1
0
2016-08-13T09:00:00.000
2
0
false
38,931,064
0
0
0
2
Purpose: I'm making a program that will set up a dedicated server (software made by game devs) for a game with minimal effort. One common step in making the server functional is port forwarding by making a port forward rule on a router. Me and my friends have been port forwarding through conventional means for many yea...
Spotify - access token from command line
39,049,945
0
0
422
0
python,command-line,spotify,spotipy
Copy and paste the entire redirect URI from your browser to the terminal (when prompted) after successful authentication. Your access token will be cached in the directory (look for .cache.<username>)
0
1
1
0
2016-08-14T04:19:00.000
1
0
false
38,939,085
0
0
0
1
I am testing my app using the terminal, which is quite handy in a pre-development phase. so far, I have used spotipy.Spotify(client_credentials_manager=client_credentials_manager) within my python scripts in order to access data. SpotifyClientCredentials() requires client_idand client_secret as parameters. now I need ...
monitoring jboss process with icinga/nagios
39,367,798
0
0
1,024
0
python,shell,jboss,nagios,icinga
I did this by monitored jboss process using ps aux | grep "\-D\[Standalone\]" for standalone mode and ps aux | grep "\-D\[Server" for domain mode.
0
1
0
1
2016-08-14T18:26:00.000
3
1.2
true
38,945,299
0
0
1
1
I want to monitor jboss if its running or not through Icinga. I don't want to check /etc/inid.d/jboss status as sometimes service is up but some of the jboss is killed or hang & jboss doesn't work properly. I would like to create a script to monitor all of its process from ps output. But few servers are running in stan...
bash on Ubuntu on windows Linux, folder recognition, and running Python scripts
39,723,038
0
0
970
0
python,linux,bash,ubuntu,windows-subsystem-for-linux
Looks like you are having permissions issues. To see everything on your home folder try ls -al to change permissions check out the chmod command
0
1
0
0
2016-08-15T00:57:00.000
3
0
false
38,948,021
0
0
0
2
I'm new to Linux. I recently downloaded Bash on Ubuntu on Windows 10 (after the Anniversary edition update to Windows 10). Since this update is relatively new, there is not much online regarding troubleshooting. There are two things I need help on: (1) When I go to the home folder, which seems to be "C:\Users\user\AppD...
bash on Ubuntu on windows Linux, folder recognition, and running Python scripts
51,154,550
1
0
970
0
python,linux,bash,ubuntu,windows-subsystem-for-linux
The reason why ls is not showing anything is that it shows the Linux directory structure. Try setting it to the Windows directory, in this example the c drive: cd /mnt/c Does ls show a folder structure now?
0
1
0
0
2016-08-15T00:57:00.000
3
0.066568
false
38,948,021
0
0
0
2
I'm new to Linux. I recently downloaded Bash on Ubuntu on Windows 10 (after the Anniversary edition update to Windows 10). Since this update is relatively new, there is not much online regarding troubleshooting. There are two things I need help on: (1) When I go to the home folder, which seems to be "C:\Users\user\AppD...
Connect to a Bluetooth LE device using bluez python dbus interface
38,997,649
0
3
3,227
0
python,dbus,bluez,gatt
See 'test/example-gatt-client' from bluez package
0
1
0
0
2016-08-15T10:11:00.000
2
0
false
38,953,175
0
0
0
1
I would like to connect to a Bluetooth LE device and receive notifications from it in python. I would like to use the Bluez dbus API, but can't find an example I can understand. :-) With gatttool, I can use the following command: gatttool -b C4:8D:EE:C8:D2:D8 --char-write-req -a 0x001d -n 0100 –listen How can I do the ...
Pycharm edu terminal plugin missing
53,610,811
0
1
628
0
python,django,intellij-idea,ide,pycharm
Go to File > Settings > Plugins > Browse repositories > Search and Install Native Terminal This will install a terminal which will use the Windows Native terminal. A small black button will appear on the tool bar. If you did not enable the tool bar, here is the trick: View | toolbar check this toolbar option and the cm...
0
1
0
0
2016-08-16T03:16:00.000
2
0
false
38,966,114
1
0
0
2
First time posting, let me know how I can improve my questions. I have installed PyCharm Edu 3.0 and Anaconda 3 on an older laptop. I am attempting to access the embedded terminal in the IDE and I am unable to launch it. I have searched through similar questions here and the JetBrains docs, and the common knowledge see...
Pycharm edu terminal plugin missing
43,782,480
-1
1
628
0
python,django,intellij-idea,ide,pycharm
Click preferences and choose plugin. Next click install Jetbrains plugin and choose Command line Tool Support. I hope this will help you
0
1
0
0
2016-08-16T03:16:00.000
2
-0.099668
false
38,966,114
1
0
0
2
First time posting, let me know how I can improve my questions. I have installed PyCharm Edu 3.0 and Anaconda 3 on an older laptop. I am attempting to access the embedded terminal in the IDE and I am unable to launch it. I have searched through similar questions here and the JetBrains docs, and the common knowledge see...
Should I create a volume for project files when using Docker with git?
38,978,850
0
0
86
0
python,git,docker,docker-compose,devops
The best solution is B except you will not use a volume in production. Docker-compose will also allow you to easily mount your code as a volume but you only need this for dev. In production you will COPY your files into the container.
0
1
0
0
2016-08-16T14:57:00.000
1
0
false
38,978,228
1
0
0
1
I want to Dockerize a project. I have my project files in a git repo. The project is written in python, and requires a virtual environment to be activated and a pip installation of requirements after the git clone from the repo. The container is going to be a development container, so I would need a basic set of softwa...
IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection
42,425,154
0
0
5,220
0
python,macos,pygame,osx-elcapitan
Okie Dokie I figured it out. You have to download the version of idle that is 2.7.(any) IMPORTANT!!! the version has to be 32 bit not 64 bit. Just search on the idle website idle 2.7.12 32 bit. Then download that. Finally download pygame 2.7. Thanks everyone that helped out! P.S. Some idle versions didn't work for me. ...
0
1
0
0
2016-08-17T02:41:00.000
2
0
false
38,987,289
0
0
0
2
I started programing a game on a Mac. Then, I brought the same EXACT code to another Mac. I got many, many different errors with Pygame saying it wasn't installed, EVEN THOUGH IT WAS! Anyway, I fixed those errors, then I went to go run the module and the window appeared then it crashed and gave me this message: IDL...
IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection
39,058,369
0
0
5,220
0
python,macos,pygame,osx-elcapitan
The most likely reason that your getting this error, is because you're not the administrator of the computer and you're trying to run a script from your local disk. There are a few things that you could do to solve this. 1. Move the .py file: Before jumping to the method below, simply try moving your python file to a d...
0
1
0
0
2016-08-17T02:41:00.000
2
0
false
38,987,289
0
0
0
2
I started programing a game on a Mac. Then, I brought the same EXACT code to another Mac. I got many, many different errors with Pygame saying it wasn't installed, EVEN THOUGH IT WAS! Anyway, I fixed those errors, then I went to go run the module and the window appeared then it crashed and gave me this message: IDL...
SSIS Execute Process Task Hanging when Standard Error Variable Provided
38,997,349
1
0
589
0
python,ssis
This is actually now solved - or rather, never actually broken; I was writing to a parent package variable (i.e. by creating the variable in the child package, configuring the task, setting delay validation to true and then deleting the variable) - it appears when I do this, it takes SSIS a long time to write to it! If...
0
1
0
0
2016-08-17T10:58:00.000
1
0.197375
false
38,994,725
1
0
0
1
I am using SSIS's Execute Process Task to execute a compiled python script. The script executes as expected and completes as expected with either success or failure. However, when I configure a variable to catch Standard Error or Standard Output, the application hangs. The command prompt flashes up and down indicating ...
How open python2.7 in spyder, jupyter, qtconsole. from Anaconda Navigator installed with python3? (OS X)
39,654,422
1
0
761
0
python,anaconda
Type the following commands in the terminal: source activate python2 spyder Spyder will be launched with the python2 environment. With this method you do not use the anaconda navigator, but at least you can use spyder with your python2 environment.
0
1
0
0
2016-08-17T19:31:00.000
1
1.2
true
39,004,849
1
0
0
1
Under OS X (10.11.6) I installed the current Python 3.5 version of Anaconda. Anaconda Navigator then works just fine to launch sypder, jupyter,or qtconsole with python 3.5.2 running. At the command line I also created a python 2.7 environment (conda create --name python2 python=2.7 anaconda). But now when I open Anaco...
When using Docker Containers, where are shared Python libraries stored?
39,005,477
4
2
684
0
python,docker,virtualenv
Just like everything else in a Docker Container, your libraries are inside the container. Unless you mount a host volume, or a volume from another container of course. On the plus side, though, they're copy-on-write, so if you're not making changes to the libraries in your container (why would you do that anyway?) then...
0
1
0
0
2016-08-17T20:06:00.000
1
1.2
true
39,005,380
1
0
0
1
In an environment where Docker Containers are used for each application, where are Python's shared libraries stored? Are they stored separately within each Docker Container, or shared by the host O/S? Additionally I'm wondering if it would be best practice to use a virtual environment regardless?
Running multiple Python scripts in Aptana 3
42,376,440
1
0
81
0
python,aptana
a very belated response but it sounds like your issue is that you have the 'Show Console When Standard Out Changes' option selected. Hope that helps, or that you found the solution on your own. Cheers!
0
1
0
0
2016-08-18T07:15:00.000
1
0.197375
false
39,012,046
1
0
0
1
If I run two different Python scripts simultaneously, I see a console window which shows output from each of the scripts alternately, switching back and forth every second or so. If I open a second console window before running the second script, the same thing happens - both console windows switch between the 2 script...
Where to place PDCurses for use with UniCurses
50,429,379
0
1
283
0
python,pdcurses,unicurses
This is impossible, because it was a build for Python 3.4!
0
1
0
0
2016-08-18T07:34:00.000
1
1.2
true
39,012,383
1
0
0
1
I want to use UniCurses on Windows. For this, I downloaded various ZIP-archives. I downloaded pdc34dll.zip, pdc34dlls.zip, pdc34dllu.zip, pdc34dllw.zip and pdcurses34.zip. The last was just the source. I tried to place the files within the pdc34dll-folder, extracted from pdc34dll.zip, to the main directory of the Pytho...
(centos6.6) before updating python2.7.3 ,it is python 2.6.6. When running pybot --version,errors came out
39,104,313
0
0
127
0
python,linux,robotframework
I installed the zlib-devel and python-level with the help of yum, and recompiled the python, finally completed the test of installation. Thank you for your answer.
0
1
0
1
2016-08-18T09:33:00.000
2
0
false
39,014,670
0
0
0
2
(centos6.6) before updating python2.7.3 ,it is python 2.6.6. When running pybot --version, errors came out as follows. I want to install the test environment of python 2.7.3 and robot framework 2.7.6 and paramiko-1.7.4 and pycrypto-2.6 [root@localhost robotframework-2.7.6]# pybot --version Traceback (most recent cal...
(centos6.6) before updating python2.7.3 ,it is python 2.6.6. When running pybot --version,errors came out
39,037,542
0
0
127
0
python,linux,robotframework
Reasons could be any of the following: Either the python files (at least one) have lost the formatting. Python is prone to formatting errors At least one installation (python, Robo) doesn't have administrative privileges. Environment variables (PATH, CLASSPATH, PYTHON PATH) are not set fine. What does python --version...
0
1
0
1
2016-08-18T09:33:00.000
2
0
false
39,014,670
0
0
0
2
(centos6.6) before updating python2.7.3 ,it is python 2.6.6. When running pybot --version, errors came out as follows. I want to install the test environment of python 2.7.3 and robot framework 2.7.6 and paramiko-1.7.4 and pycrypto-2.6 [root@localhost robotframework-2.7.6]# pybot --version Traceback (most recent cal...
Windows Python 64 & 32 bit versions and pip
44,056,779
0
1
6,739
0
python,windows,pip,pyinstaller
I had a similar problem with both 32 and 64-bit versions of Python installed. I found if I ran the pip install in the command prompt from the location of pip.exe it worked fine. In my case, the file path was the following: C:\Program Files\Python\3.5\Scripts
0
1
0
0
2016-08-18T10:07:00.000
1
0
false
39,015,410
1
0
0
1
I have made a simple python script and built a 64-bit Windows executable from it via pyinstaller. However, most computers at my office run 32-bit Windows operating systems, thus my program does not work. From what I have read, it is possible to make an executable for 32-bit systems as long as I use the 32-bit version o...
Django and celery on different servers and celery being able to send a callback to django once a task gets completed
39,065,804
0
5
1,298
0
python,django,asynchronous,rabbitmq,celery
I've used the following set up on my application: Task is initiated from Django - information is extracted from the model instance and passed to the task as a dictionary. NB - this will be more future proof as Celery 4 will default to JSON encoding Remote server runs task and creates a dictionary of results Remote ser...
0
1
0
0
2016-08-18T11:59:00.000
2
0
false
39,017,678
0
0
1
1
I have a django project where I am using celery with rabbitmq to perform a set of async. tasks. So the setup i have planned goes like this. Django app running on one server. Celery workers and rabbitmq running from another server. My initial issue being, how to do i access django models from the celery tasks resting ...
How do Luigi parameters work?
39,028,831
1
0
425
0
python,luigi
In general, you would not need to pass the parameters for Task A to Task B, but Task B would then need to generate the values of those parameters for Task A. If Task B can not generate those parameters, you would have to setup Task B to take those parameters in from the command line, and then pass them through to the T...
0
1
0
0
2016-08-18T14:18:00.000
2
0.099668
false
39,020,591
0
0
0
1
So I have two tasks (let's say TaskA and TaskB). I want both tasks to run hourly, but TaskB requires TaskA. TaskB does not have any parameters, but TaskA has two parameters for the day and the hour. If I run TaskB on the command line, would I need to pass it arguments?
How can I find an installed drivers version in Python under Windows?
39,023,289
0
0
1,524
0
python-2.7,driver,wmi
This is going to sound different but I know the powershell command will get you the driver version. strCommand = r"powershell.exe ""Get-WmiObject Win32_PnPSignedDriver | select devicename, driverversion | ConvertTo-CSV""" Then you can parse each line in your output. Each line is csv delimited so you have the Driver N...
0
1
0
0
2016-08-18T15:37:00.000
1
0
false
39,022,296
0
0
0
1
I am trying to call a python [module] method to find the version of a newly installed driver on a Windows computer. Tried with WMI_SystemDriver but it does not provide the version, only other fields not needed by me at this time.Is there a way to see something like: Question also posted on a Google group - not answered...
pycaffe windows - cannot open python27.lib
42,746,031
1
1
1,017
0
python,caffe,pycaffe
I've got the same error while building matcaffe interface with python 3.5, so I downgraded Anaconda and Python to 2.7 version and it successed.
0
1
0
0
2016-08-19T09:16:00.000
1
0.197375
false
39,035,360
1
0
0
1
I am trying to compile pycaffe in Windows 7 using Anaconda 3 and Visual studio 2013. I have set the anaconda path and lib path correctly. When I try to build I am getting the following error: "Error 1 error LNK1104: cannot open file 'python27.lib' D:\caffe-master\windows\caffe\LINK caffe" I am using Python 3.6 but...
Giving input to terminal in python
39,064,972
0
0
338
0
python,python-2.7,terminal
You would need to have python implemented into the software. Also, I believe this is a task for GCSE Computing this year as I was privileged enough to choose what test we are doing and there was a question about serial numbers.
0
1
0
0
2016-08-21T13:36:00.000
2
0
false
39,064,796
1
0
0
1
I'm writing a code to read serial input. Once the serial input has been read, I have to add a time stamp below it and then the output from a certain software. To get the output from the software, I want python to write a certain command to the terminal, and then read the output that comes on the terminal. Could you sug...
Can OpenWhisk trigger Docker actions in my Bluemix registry?
39,074,811
1
1
128
0
python,ibm-cloud,openwhisk
This is not currently possible. OpenWhisk can only create Actions from Docker images stored in the external Docker Hub registry.
0
1
0
0
2016-08-22T08:28:00.000
1
0.197375
false
39,074,638
0
0
0
1
I pushed my Docker image to my Bluemix registry; I ran the container on Bluemix just fine; I have also set up a skeleton OpenWhisk rule which triggers a sample Python action but wish to trigger the image in my Bluemix registry as the action. But, as far as I can see from the OpenWhisk documents, it is only possible...
python: read beyond end of file
39,086,415
5
0
1,809
0
python
You can't read more bytes than is in the file. "End of file" literally means exactly that.
0
1
0
0
2016-08-22T18:29:00.000
2
1.2
true
39,086,368
1
0
0
1
I'm trying to read beyond the EOF in Python, but so far I'm failing (also tried to work with seek to position and read fixed size). I've found a workaround which only works on Linux (and is quite slow, too) by working with debugfs and subprocess, but this is to slow and does not work on windows. My Question: is it poss...
Using requests package to make request
39,086,692
1
0
32
0
python,python-requests
requests is a HTTP request library, while Spark's wordcount example provides a raw socket server, so no, requests is not the right package to communicate with your Spark app.
0
1
1
0
2016-08-22T18:32:00.000
1
1.2
true
39,086,420
0
0
0
1
I have an application (spark based service), which when starts..works like following. At localhost:9000 if I do nc -lk localhost 9000 and then start entering the text.. it takes the text entered in terminal as an input and do a simple wordcount computation on it. how do i use the requests library to programmatically s...
Import Pydev Project into Eclipse on a new machine
39,088,428
0
0
35
0
eclipse,python-3.x,pydev
I figured out that I was opening Eclipse in the wrong workspace. When I found the correct workspace for that project (by looking for the .metadata file on my C drive) everything was all set (and I didn't have to import the project at all). I was going to delete the question, but figured instead I'd answer in case this...
0
1
0
1
2016-08-22T19:09:00.000
1
0
false
39,087,037
1
0
0
1
I need to install an existing pydev project into Eclipse on a new machine. (Actually it is the same machine, but re-imaged.) The new machine has Eclipse Neon. I was using an older version previously. My data has all been copied over. I have the folder where the project lived on my old machine, which includes the .p...
How do I add the path to a directory to the environment variables using python
39,096,747
1
0
53
0
python,environment-variables
While using bash add this ~/.bashrc export PYTHONPATH="${PYTHONPATH}:/Home/dev/path Make sure the directory you point to has at the topmost init.py file in your directory structure
0
1
0
0
2016-08-23T08:43:00.000
1
0.197375
false
39,096,384
1
0
0
1
I want to know if it is possible to add the path to a directory to the environment variables permanently using python. I have seen other questions that relate to mine but the answers there only add the path temporarily,I want to know if there's a way to add it permanently
Run pip through jenkins-plugin?
39,174,711
0
0
639
0
python,linux,jenkins,pip
Not a specific plug-in like you might want, but as was said, you can create a virtual environment in one of a few ways to get the functionality you're after. Docker can handle this, you can create a small script to build a docker image that will have access to pip and there are Jenkins plug-ins for docker.
0
1
0
0
2016-08-23T21:29:00.000
2
0
false
39,110,980
0
0
0
1
If pip is not installed on the jenkins linux-box, is there any jenkins-plugin that lets me run pip, without installing it at the os-level?
Virtualenv gives different versions for different os
39,124,070
0
0
89
0
python,django,virtualenv
Thanks to @Oliver and @Daniel's comments that lead me to the answer why it did not work. I started the virtual environment on my Debian with python 3. virtualenv made the virtual environment but it was specifically for Debian. When I used it for mac, since it could not run the python executable in the virtual environme...
0
1
0
0
2016-08-24T12:43:00.000
2
0
false
39,123,699
0
0
1
1
I am working on a django project on two separate systems, Debian Jessie and Mac El Capitan. The project is hosted on github where both systems will pull from or push to. However, I noticed that on my Debian, when I run python --version, it gives me Python 3.4.2 but on my Mac, it gives me Python 2.7.10 despite being in ...
Python write to ram file when using command line, ghostscript
39,147,540
1
1
574
0
python,file,cmd,ghostscript,ram
You can't use RAM for the input and output file using the Ghostscript demo code, it doesn't support it. You can pipe input from stdin and out to stdout but that's it for the standard code. You can use the Ghostscript API to feed data from any source, and you can write your own device (or co-opt the display device) to h...
0
1
0
0
2016-08-25T11:39:00.000
1
0.197375
false
39,144,281
1
0
0
1
I want to run this command from python: gs.exe -sDEVICE=jpeg -dTextAlphaBits=4 -r300 -o a.jpg a.pdf Using ghostscript, to convert pdf to series of images. How do I use the RAM for the input and output files? Is there something like StringIO that gives you a file path? I noticed there's a python ghostscript library, but...
brew python versus non-brew ipython
39,149,676
0
0
2,385
0
python,macos,ipython,homebrew
To transfer all your packages you can use pip to freeze all of your packages installed in ipython and then install them all easily from the file that you put them in. pip freeze > requirements.txt then to install them from the file pip install -r requirements.txt I'm not entirely sure if I understood what you're asking...
0
1
0
0
2016-08-25T15:44:00.000
3
0
false
39,149,554
1
0
0
2
I installed python via brew, and made it my default python. If I run which python, I obtain /usr/local/bin/python. Also pip is installed via brew, which pip returns /usr/local/bin/pip. I do not remember how I installed ipython, but I didn't do it via brew, since when I type which ipython, I obtain /opt/local/bin/ipytho...
brew python versus non-brew ipython
39,151,146
0
0
2,385
0
python,macos,ipython,homebrew
OK, so I solved by uninstalling macport (and so the ipython I was using, which was under /opt/local/bin) and installing ipython via pip. Then I re-install what I needed (e.g. jupyter) via pip.
0
1
0
0
2016-08-25T15:44:00.000
3
0
false
39,149,554
1
0
0
2
I installed python via brew, and made it my default python. If I run which python, I obtain /usr/local/bin/python. Also pip is installed via brew, which pip returns /usr/local/bin/pip. I do not remember how I installed ipython, but I didn't do it via brew, since when I type which ipython, I obtain /opt/local/bin/ipytho...
How install and use another version python(python 2.7) on linux with the default python version is python 2.6
39,174,922
0
0
115
0
python,linux,python-2.7
To build on Tryph's answer, you can install that new version to your home directory, then in a directory specified within your PATH (like in .bash_profile), you can point to that directory and within there create a sym-link that points to the new python. For instance, if you have a bin folder in your home directory tha...
0
1
0
0
2016-08-26T11:11:00.000
3
0
false
39,164,943
1
0
0
2
There is a default python version, namely python 2.6, on the GPU server with Linux OS. Now I want to install a new python version on the server from its source, namely python 2.7. I should not change the default python version since I am not the administrator and some reason. So what should I do?
How install and use another version python(python 2.7) on linux with the default python version is python 2.6
39,165,141
0
0
115
0
python,linux,python-2.7
You can install your new version of Python. It should be accessible with the python27 command (which may be a symbolic link). Then you will just have to check that the python symbolic link still points to python26. Doing this, python will keep on execute Python 2.6 while python27 will execute Python 2.7
0
1
0
0
2016-08-26T11:11:00.000
3
0
false
39,164,943
1
0
0
2
There is a default python version, namely python 2.6, on the GPU server with Linux OS. Now I want to install a new python version on the server from its source, namely python 2.7. I should not change the default python version since I am not the administrator and some reason. So what should I do?
Switch from linux distro package manager to Anaconda
39,167,113
1
1
280
0
python,anaconda,opensuse
I read the anaconda documentation, and there is no evidence of anaconda packages replacing your openSUSE packages. There isn't a reason for it to do so. If I got it right, then Conda is very similar to ruby's gem and similar tools, which definitely don't replace the installed packages. I think you can feel free to inst...
0
1
0
0
2016-08-26T12:47:00.000
1
1.2
true
39,166,725
1
0
0
1
I am using openSUSE Leap 42.1 and do some data analysis work in python. Most of the python packages I use are available in the standard openSUSE repositories (e.g. obs://build.opensuse.org/devel:languages:python); however sometimes they aren't, whereas they are available in Anaconda. I would like to replace all of the ...
Absolute path in Python requiring an extra leading forward slash?
39,173,233
0
0
107
0
python,python-2.7,file-io,path
The best way to deal with this is to avoid constructing the path yourself altogether. Let os.path.join() do it for you.
0
1
0
0
2016-08-26T18:49:00.000
1
0
false
39,172,944
0
0
0
1
I am trying to open a resource via an absolute path on my Macbook with open(file[,mode]). The resource I am trying to access is not in the same folder as the script that is running. If I use something like /Users/myname/Dev/project/resource I get an IOError: No such file or directory. Whats confusing me is that if i ad...
Pexpect: Read from the last send
39,256,145
0
1
716
0
python,python-2.7,pexpect
There are three ways in which this problem can be handled but none to flush the buffer In Pexpect every send call should be matched with a call to expect. This ensures that the file pointer has moved ahead of the previous send. If there is a series of send before a single expect then we need to provide a way to move f...
0
1
0
0
2016-08-26T18:58:00.000
1
0
false
39,173,069
0
0
0
1
I am trying to read the output of pexpect.send(cmd) but here's the problem I am facing. I am sending many commands in a sequence and I want to read/expect after a certain set of commands. Condition is that only the output of last command is to be considered. But expect matches from the point it last read. I have tried ...
Remove third-party installed Python on Mac?
39,173,554
1
0
251
0
python,macos,python-2.7
This doesn't answer the question in the post's title, but leave Python 2 as the default python. If you want to run Python 3, you run python3 or maybe python3.4 or python3.5, depending on your installation. The system and other third-party software depend on python being Python 2. If you change it, you may encounter puz...
0
1
0
0
2016-08-26T19:26:00.000
1
0.197375
false
39,173,459
1
0
0
1
So I installed python 2.7.11 a few months ago, now the class I'm about to take uses 3. So I installed 3 and it works fine. I also uninstalled 2.7.11 by going to applications and removing it, but going to terminal and typing which python, the directory is Library/Frameworks/Python.framework/Versions/2.7/bin/python, whic...
How to force application version on AWS Elastic Beanstalk
42,735,371
11
18
10,464
0
python,django,amazon-web-services,amazon-ec2,amazon-elastic-beanstalk
I've realised that the problem was that Elastic Beanstalk, for some reasons, kept the unsuccessfully deployed versions under .elasticbeanstalk. The solution, at least in my case, was to remove those temporal (or whatever you call them) versions of the application.
0
1
0
0
2016-08-27T20:42:00.000
2
1.2
true
39,185,570
0
0
1
1
I'm trying to deploy a new version of my Python/Django application using eb deploy. It unfortunately fails due to unexpected version of the application. The problem is that somehow eb deploy screwed up the version and I don't know how to override it. The application I upload is working fine, only the version number is ...
Celery with Redis vs Redis Alone
39,188,804
4
0
1,102
0
java,python,rabbitmq,celery,messaging
The advantage of using Celery is that we mainly need to write the task processing code and handling of task delivery delivery to the task processors is taken care of by the Celery framework. Scaling out task processing is also easy by just running more Celery workers with higher concurrency (more of processing threads/...
0
1
1
0
2016-08-28T06:41:00.000
1
1.2
true
39,188,662
0
0
0
1
I am having trouble understanding what the advantage of using Celery is. I realize you can use Celery with Redis, RabbitMQ etc, but why wouldn't I just get the client for those message queue services directly rather than sitting Celery in front of it?
How to remove/disable gdb-peda in ubuntu
52,784,903
11
4
7,074
0
python,python-3.x,unix,gdb
Actually peda-gdb doesn't really install any executable in your computer. All the peda-gdb does is to modify the config file of gdb. This file is by default located at ~/.gdbinit. use cat ~/.gdbinit can you peek how does peda do Therefore, to go back to vanilla gdb, there are 2 solutions gdb --nx This is a better w...
0
1
0
0
2016-08-29T10:44:00.000
2
1
false
39,204,331
1
0
0
2
While learning debugging,I somehow went into installing gdb and then gdb-peda.But now, I would like to uninstall gdb-peda.Can anyone pls guide me ?
How to remove/disable gdb-peda in ubuntu
42,280,176
2
4
7,074
0
python,python-3.x,unix,gdb
You can remove the Peda folder, should be somewhere in your Home directory. After that you should have your old gdb back.
0
1
0
0
2016-08-29T10:44:00.000
2
0.197375
false
39,204,331
1
0
0
2
While learning debugging,I somehow went into installing gdb and then gdb-peda.But now, I would like to uninstall gdb-peda.Can anyone pls guide me ?
-bash: cd: Resources: No such file or directory
39,286,424
0
0
729
0
python,terminal,directory
Try to use autocompletion on TAB key press — maybe names contain some whitespace (less probably) Check ls -l output — maybe these directories are just broken symbolic links
0
1
0
0
2016-08-30T01:39:00.000
1
0
false
39,217,582
0
0
0
1
the directory /Library/Frameworks/Python.framework/ contains the following four elements: Headers Python Resources Versions When I try to cd into either Headers, Python or Resources (e.g. cd Resources), I get an error message telling me that the element does not exist (e.g.: "-bash: cd: Resources: No such file or di...
Twisted setup in Fedora or CentOS
39,235,093
0
0
450
0
linux,python-3.x,twisted,fedora
To get the latest version of Twisted requires Python 2.7+ because 2.6 support has finally been EOL. So if you're running an old Python, then I'd suggest you build your own Python 2.7+ and alt install it. It's very important you don't override CentOS's default Python as this could lead to a disastrous situation. Once...
0
1
0
0
2016-08-30T03:20:00.000
3
0
false
39,218,263
0
0
0
2
Is there a source tarball of Twisted available for download which could be used to build it in Fedora or CentOS? I see the download for Ubuntu/Debian on the site, of course.
Twisted setup in Fedora or CentOS
39,620,252
0
0
450
0
linux,python-3.x,twisted,fedora
You can use python pip to install twisted in centos or fedora. Make sure you have python-pip installed then just do sudo pip install twisted in terminal
0
1
0
0
2016-08-30T03:20:00.000
3
0
false
39,218,263
0
0
0
2
Is there a source tarball of Twisted available for download which could be used to build it in Fedora or CentOS? I see the download for Ubuntu/Debian on the site, of course.
Retrieve Internal attributes(entryUUID) from openldap server
39,302,136
0
0
2,194
0
python-2.7,ldap,openldap
It's an operational attribute, so you have to request it explicitly, or include "+" in the attributes to be returned. However you should not be using this for your own purposes. It's none of your business. It can change across backup/restore, for example.
0
1
0
1
2016-08-30T07:47:00.000
2
0
false
39,221,697
0
0
0
1
I am trying to retrieve internal attributes from openldap server. More specifically I need to retrieve entryUUID attribute of an object. In LDAP, objectGUID is being fetched from server but couldn't retrieve similar field from openldap. SCOPE_SUBTREE is being used to retrieve attributes. Anyone knows way out? Thanks in...
how to install libhdf5-dev? (without yum, rpm nor apt-get)
67,224,754
0
6
20,706
0
python,linux,installation,hdf5
For Centos 8, I got the below warning message : Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support. and I solved it using the command : sudo yum -y install hdf5-devel
0
1
0
1
2016-08-30T19:53:00.000
4
0
false
39,236,025
0
0
1
1
I want to use h5py which needs libhdf5-dev to be installed. I installed hdf5 from the source, and thought that any options with compiling that one would offer me the developer headers, but doesn't look like it. Anyone know how I can do this? Is there some other source i need to download? (I cant find any though) I am o...
Why is there a delay between writing to and reading from Kafka queue?
39,254,261
2
0
276
0
apache-kafka,message-queue,messaging,kafka-python
Consumer group will take some times to contact group coordinator and get assigned partitions automatically during the delay. If you use manual assignment, you will get less delay.
0
1
0
0
2016-08-31T15:15:00.000
1
1.2
true
39,253,346
0
0
0
1
I have written a worker service to consume messages from a Kafka queue, and I have also written a test script to add messages to the queue every few seconds. What I have noticed is that often the consumer will sit by idle for minutes at a time, while messages are being added to the queue. Then suddenly the consumer wil...
idle-python for RHEL 7
39,261,467
0
0
68
0
mariadb,python-idle
IDLE is in the python-tools package.
0
1
0
0
2016-09-01T01:28:00.000
1
0
false
39,261,395
0
0
0
1
Python community. I am looking for a Red Enterprise Linux 7 version of IDLE - Python GUI. The only version I have found are for Windows and Mac. I will be using it to test and build an API to tie in with http.
Python and Appium
41,982,234
1
0
571
0
ubuntu,python-appium
Try to use nosetest. Install: pip install nose Run: nosetests (name of the file containing test)
0
1
0
1
2016-09-03T05:48:00.000
1
0.197375
false
39,303,681
1
0
0
1
I got the following error while executing a python script on appium ImportError: No module named appium I am running appium in one terminal and tried executing the test on another terminal. Does anyone know what is the reason for this error? and how to resolve it?
Problems installing python module pybfd
39,318,468
1
1
259
0
python,pip,easy-install
After some trial and error I discovered that binutils-dev and python-dev packages were missing and causing the header path errors. After installing those the setup script worked.
0
1
0
1
2016-09-04T14:36:00.000
1
1.2
true
39,318,053
1
0
0
1
I've been trying to install the pybfd module but nothing works so far. Tried the following: pip install pybfd returns error: option --single-version-externally-managed not recognized. After a quick search I found the --egg option for pip which seems to work, says successfully installed but when I try to run my code Imp...
How do I build a cx_oracle app using pyinstaller to use multiple Oracle client versions?
39,349,805
1
0
738
0
python,oracle,pyinstaller,cx-oracle
The error "Unable to acquire Oracle environment handle" means there is something wrong with your Oracle configuration. Check to see what libclntsh.so file you are using. The simplest way to do that is by using the ldd command on the cx_Oracle module that PyInstaller has bundled with the executable. Then check to see if...
0
1
0
0
2016-09-05T05:04:00.000
1
1.2
true
39,324,217
1
0
0
1
I am building an application in Python using cx_Oracle (v5) and Pyinstaller to package up and distribute the application. When I built and packaged the application, I had the Oracle 12c client installed. However, when I deployed it to a machine with the 11g client installed, it seems not to work. I get the message "...
Rabbitmq one queue multiple consumers
39,340,382
2
1
1,439
0
python,python-2.7,rabbitmq,pika
1.If at least two consumers at the same time can get the same message? no - a single message will only be delivered to a single consumer. Because of that, your scenario #2 doesn't come into play at all. You'll never have 2 consumers working on the same message, unless you nack the message back to the queue but contin...
0
1
0
1
2016-09-05T21:20:00.000
1
1.2
true
39,337,821
0
0
0
1
I've multiple consumers which are polling on the same queue, and checking the queue every X seconds, basically after X seconds it could be that at least two consumers can launch basic.get at the very same time. Question are: 1.If at least two consumers at the same time can get the same message? 2.According to what I ...
Celery Worker - Consume from Queue matching a regex
39,340,088
-2
5
409
0
python,celery,django-celery
Something along these lines would work: (\b(dev.)(\w+)). Then refer to the second group for the stuff after "dev.". You'll need to set it up to capturing repeated instances if you want to get multiple.
0
1
0
0
2016-09-06T02:32:00.000
1
-0.379949
false
39,339,804
0
0
1
1
Background Celery worker can be started against a set of queues using -Q flag. E.g. -Q dev.Q1,dev.Q2,dev.Q3 So far I have seen examples where all the queue names are explicitly listed as comma separated values. It is troublesome if I have a very long list. Question Is there a way I can specify queue names as a regex...
How to add a custom CA Root certificate to the CA Store used by pip in Windows?
55,395,471
-3
128
213,196
0
python,windows,ssl,pip
Open Anaconda Navigator. Go to File\Preferences. Enable SSL verification Disable (not recommended) or Enable and indicate SSL certificate path(Optional) Update a package to a specific version: Select Install on Top-Right Select package click on tick Mark for update Mark for specific version installation Click Apply
0
1
0
0
2016-09-06T19:24:00.000
7
-0.085505
false
39,356,413
0
0
0
2
I just installed Python3 from python.org and am having trouble installing packages with pip. By design, there is a man-in-the-middle packet inspection appliance on the network here that inspects all packets (ssl included) by resigning all ssl connections with its own certificate. Part of the GPO pushes the custom roo...
How to add a custom CA Root certificate to the CA Store used by pip in Windows?
39,358,282
50
128
213,196
0
python,windows,ssl,pip
Run: python -c "import ssl; print(ssl.get_default_verify_paths())" to check the current paths which are used to verify the certificate. Add your company's root certificate to one of those. The path openssl_capath_env points to the environment variable: SSL_CERT_DIR. If SSL_CERT_DIR doesn't exist, you will need to creat...
0
1
0
0
2016-09-06T19:24:00.000
7
1
false
39,356,413
0
0
0
2
I just installed Python3 from python.org and am having trouble installing packages with pip. By design, there is a man-in-the-middle packet inspection appliance on the network here that inspects all packets (ssl included) by resigning all ssl connections with its own certificate. Part of the GPO pushes the custom roo...
Changing Jupyter Notebook start location [Win 7 Enterprise]
39,370,822
0
0
433
0
ipython,anaconda,jupyter,jupyter-notebook
Found the solution - go to your Anaconda install directory (for me this was C:\Anaconda3) and open the file cwp.py in a text editor. Change the line os.chdir(documents_folder) to os.chdir("C:\\my\\path\\here").
0
1
0
0
2016-09-07T11:58:00.000
1
0
false
39,369,335
1
0
0
1
I am trying to change the default Jupyter Notebook start directory on my Windows 7 Enterprise machine. Other answers have suggested changing the "Start In" field found through Right-click>Properties>Shortcut on the Jupyter program in my Start menu, however this doesn't have any effect. When I change this field to my de...
Comparing the contents of very large files efficiently
39,395,013
1
0
1,140
0
python,performance,file,io
If you can find a way to take advantage of hash tables your task will change from O(N^2) to O(N). The implementation will depend on exactly how large your files are and whether or not you have duplicate job IDs in file 2. I'll assume you don't have any duplicates. If you can fit file 2 in memory, just load the thing in...
0
1
0
1
2016-09-08T15:02:00.000
5
0.039979
false
39,394,328
0
0
0
2
I need to compare two files of differing formats quickly and I'm not sure how to do it. I would very much appreciate it if someone could point me in the right direction. I am working on CentOS 6 and I am most comfortable with Python (both Python 2 and Python 3 are available). The problem I am looking to compare the co...
Comparing the contents of very large files efficiently
39,396,201
1
0
1,140
0
python,performance,file,io
I was trying to develop something where you'd split one of the files into smaller files (say 100,000 records each) and keep a pickled dictionary of each file that contains all Job_id as a key and its line as a value. In a sense, an index for each database and you could use a hash lookup on each subfile to determine whe...
0
1
0
1
2016-09-08T15:02:00.000
5
0.039979
false
39,394,328
0
0
0
2
I need to compare two files of differing formats quickly and I'm not sure how to do it. I would very much appreciate it if someone could point me in the right direction. I am working on CentOS 6 and I am most comfortable with Python (both Python 2 and Python 3 are available). The problem I am looking to compare the co...
Install pybrain in ubuntu 16.04 "ImportError: No module named pybrain.structure"
39,431,699
0
1
253
0
python,pybrain
The problem was resolved replacing pybrain.pybrain by pybrain.
0
1
0
0
2016-09-11T00:05:00.000
1
0
false
39,431,684
1
0
0
1
I'm getting that error: ImportError: No module named pybrain.structure When executing: from pybrain.pybrain.structure import FeedForwardNetwork From the pybrain tutorial. I installed pybrain running: sudo python setup.py install
what's the difference between google.appengine.ext.ndb and gcloud.datastore?
39,453,571
2
14
1,307
0
google-app-engine,google-cloud-datastore,app-engine-ndb,google-app-engine-python
The reason for the two implementations is that originally, the Datastore (called App Engine Datastore) was only available from inside App Engine (through a private RPC API). On Python, the only way to access this API was through an ORM-like library (NDB). As you can see on the import, it is part of the App Engine API. ...
0
1
0
0
2016-09-11T23:53:00.000
2
0.197375
false
39,441,764
0
0
1
1
ndb: (from google.appengine.ext import ndb) datastore: (from gcloud import datastore) What's the difference? I've seen both of them used, and hints they both save data to google datastore. Why are there two different implementations?
Is it possible to catch data streams other than stdin, stdout and stderr in a Popen call?
39,449,018
2
0
71
0
python,stream,subprocess,stdout,stderr
There is no other console output than stdout and stderr (assuming that samtools does not write to the terminal directly via a tty device). So, if the output is not captured with the subprocesses stdout, it must have been written to stderr, which can be captured as well using Popen() with stderr=subprocess.PIPE and insp...
0
1
0
0
2016-09-12T11:03:00.000
1
1.2
true
39,448,884
0
0
0
1
I am working on incorporating a program (samtools) into a pipeline. FYI samtools is a program used to manipulate DNA sequence alignments that are in a SAM format. It takes input and generates an output file via stdin and stdout, so it is quite easily controlled via pythons subprocess.Popen(). When it runs, it also outp...
Celery worker not reconnecting on network change/IP Change
56,372,222
0
3
948
0
python,python-2.7,rabbitmq,celery,celery-task
The issue was because I was unable to understand the nature of AMQP protocol or RabbitMQ. When a celery worker starts it opens up a channel at RabbitMQ. This channel upon any network changes tries to reconnect, but the port/sock opened for the channel previously is registered with a different public IP address of the ...
0
1
0
0
2016-09-13T05:38:00.000
2
1.2
true
39,462,847
0
0
0
1
I deployed celery for some tasks that need to be performed at my workplace. These tasks are huge and I bought a few high-spec machines for performing these. Before I detail my issue, let me brief about what all I've deployed: RabbitMQ broker on a remote server Producer that pushes tasks on another remote server Worke...
pelican make serve error with broken pipe?
61,891,341
0
0
151
0
python,python-2.7,ubuntu,makefile,server
I can report that : I encountered the same problem with a python3 / pip3 installation (which is recommended now) the problem was apparently with the permissions on python. I simply had to run pelican --listen with superuser rights to make the local server work. Also be careful to install all packets you might have i...
0
1
0
0
2016-09-13T05:48:00.000
2
0
false
39,462,958
0
0
1
2
I was trying to make a blog with pelican, and in the step of make serve I had below errors. By searching online it looks like a web issue ( I'm not familiar with these at all ) and I didn't see a clear solution. Could anyone shed some light on? I was running on Ubuntu with Python 2.7. Thanks! Python info: Python 2.7.6...
pelican make serve error with broken pipe?
39,462,999
0
0
151
0
python,python-2.7,ubuntu,makefile,server
Well I installed pip on Ubuntu and then it all worked.. Not sure if it is a version thing..
0
1
0
0
2016-09-13T05:48:00.000
2
0
false
39,462,958
0
0
1
2
I was trying to make a blog with pelican, and in the step of make serve I had below errors. By searching online it looks like a web issue ( I'm not familiar with these at all ) and I didn't see a clear solution. Could anyone shed some light on? I was running on Ubuntu with Python 2.7. Thanks! Python info: Python 2.7.6...