Tagged Questions

Python is an interpreted, general, high-level programming language. The design emphasizes readability. It is notable for using tabs to indicate block levels. As a dynamic language, it shares many similarities to Ruby, Perl, and Scheme. The language is very popular for scientific computing and ...

learn more… | top users | synonyms

0
votes
0answers
5 views

Anaconda distribution Python error [DatabaseError: database disk image is malformed]

There seems to be something wrong with my Anaconda Python installation. When I run Python through cmd it works and I can also run Python programs directly through cmd, and even import scipy, numpy, ...
1
vote
1answer
12 views

Any suggestions on a netbook/desktop setup to run Python for scientific computing?

This may seem like an inappropriate question that should be relegated to some hardware forum, but I love StackExchange for other things and thought perhaps you could help! I had my laptop stolen a ...
1
vote
0answers
20 views

Windows 8.1 command like Unix/Linux WHICH command

Below is an example of the results of the WHERE command used in Win 8.1 CMD (DJANGO) C:\Python34>where python C:\Python34\python.exe C:\Python34\DJANGO\Scripts\python.EXE What I am looking for is ...
0
votes
0answers
13 views

to have an homogeneous environment for python and tools like PIP

I have a learning group for pythong where people are coming with their machines but with differents OS (Windows, Mac Os, Linux). For Mac and Linux, it is quite easy as you can install programs like ...
0
votes
0answers
7 views

How to syntax highlight python scripts in PHP storm

I tried installing this script but then got this error message: I'm hoping for an answer that's similar to this one but for python instead of ruby.
-2
votes
1answer
32 views

Unable to uninstall python2.7.8 installed in ~/Downloads directory

I have read many answers regarding this kind of problem but unfortunately, I am unable to achieve the uninstallation. So please don't downvote or flag this question. I have python2.7.8 installed in ...
0
votes
3answers
25 views

How Can I Batch Change the Metadata of MP3 Files? [duplicate]

I have a fews of songs in a folder which I would like to add the metadata items of artist, title, genre and album to. I would like to take the metadata info for the title and artist from the file name ...
-1
votes
0answers
18 views

View Application Error Logs on Windows 7 [closed]

I am using a program that calls a python library and errors out. However the python library seems to be working fine by itself. Is there any way to see more detailed logs in a powershell log or some ...
0
votes
0answers
44 views

Can't run newly created Python file

I have followed a lecture on installing Python and so far I have been unable to resolve this recurring issue. When I mirror the instructional video I get one of two errors. The first error This ...
0
votes
0answers
11 views

GET 404 errors, when trying to access the web interface of Odoo/OpenERP after installation [closed]

I try to host Odoo on a shard-hosting server and after installation I only get this part of the website: It's looking like this in the awesome Network Monitor of Firefox: Here's a small snippet ...
0
votes
1answer
20 views

How do applications like gksu lock focus when launched?

I am curious how applications like gksu lock screen focus when prompting for a password. I see gksu even has an option "-g", that can disable this behavior. I am interested in doing something ...
0
votes
0answers
20 views

Updates don't install complaining about missing dependencies when dependencies are clearly installed (RHEL 6)

I have installed RHEL 6.2 and I am upgrading all the packages on it right now. I was expecting auto update to work, but I get these error messages when I authorize an auto update - ...
-1
votes
1answer
24 views

How to solve python bug without root permission

Python has a bug that can be fixed by modifying a file in /usr/lib/. But I don't have permission to edit that file, is there any way to solve this problem? Is it possible to overwrite that solution in ...
0
votes
0answers
9 views

Emacs: failed to install ELPY

I tried to install ELPY package for python development in Emacs. I followed instructions from here: https://github.com/jorgenschaefer/elpy Yet I kept getting this error every time I start Emacs: ...
1
vote
0answers
13 views

Sort lines to form a unique words dictionary listing

Many a times we build dictionaries in online forums for typical words used in a forum, the user responds in following format in a phpbb forum term: defination hence the job is to collect all these ...
0
votes
1answer
18 views

Type on python script on the Unix command line (without a .py file)

Working with python 2.7, I want to do this: $> python "import Tkinter; Tkinter.tk(); etc... " but python doesn't seem to accept script this way. I don't want to create a .py file. Is there a ...
0
votes
0answers
30 views

Powershell Start-Process fails to start when -Credential argument is added

If I run this in powershell, Start-Process "c:\Python27\python.exe" -WorkingDirectory "c:\wd" -ArgumentList "-m SimpleHTTPServer" It can start the python process as expected However when I add ...
0
votes
2answers
60 views

Parse out specific parameter from python script

I have a chage output that I formatted myself called accounts. It basically has the name of the user listed as a section and then the information below it (which are the parameters). I would like to ...
0
votes
1answer
76 views

No space left on device, but the partition only half full and inodes are available

I was running a Python process which creates a huge number of files under a single directory (I should have been smarter and bucketed them into multiple directories, but that's another story). After ...
0
votes
0answers
8 views

Find average CPU, vMem, sMem usage on 1, 5, and 15min

I am trying to find at time T the average CPU usage on 1, 5, and 15min, just like what you get from /proc/loadavg Same thing for virtual memory, and swap memory. I would be fine with a python ...
0
votes
0answers
12 views

Resize window using Appkit in python

I'm writing a python script which gets some string representing a name of window, than it finds that window, gets its size and logs it to some txt file. On Windows I used pywin32 module, and it worked ...
0
votes
2answers
12 views

X86: Frequency or architecture or other factor matter to compute fast and massive python/numpy loops?

We need to compute numpy/python script that run for days because they use a massive number of loops to compute small Numpy/Python float arrays (array of some Mo). Operations are over rows taken one by ...
1
vote
2answers
28 views

Mapped keyboard shortcuts that generate text responses (macros maybe)

I've got a seemingly simple idea where I would press a combination of keys (like Ctrl + Alt + Z) and paste a previously written(and saved) response on wherever I'm typing. This is meant to work in a ...
0
votes
0answers
8 views

Python external windows not displayed with Yakuake/Guake

I use Yakuake a lot and would like to display graphs with python from there. import matplotlib.pyplot as mp mp.plot([1,2,1]) mp.show() With Konsole or any other real terminal, it works: a window ...
1
vote
1answer
64 views

how to shut down a server from the webinterface

I want to be able to shutdown my server remotely by clicking on a button on a web page. The server runs Ubuntu 14.04.1 64 Bit and a python web application. I have not decided which yet, but it will be ...
0
votes
0answers
26 views

Outline view in Sublime Text 3

I've been advised to use SublimeText and I'm giving it a try. When I take notes in a text file, I would like to structure it with a few levels of headers (in LaTeX, that would be sections and ...
15
votes
2answers
2k views

Run Python scripts without explicitly invoking `python`

I'm using Debian Linux. I was wondering if there was a way to configure to run all Python scripts in the terminal by typing script.py (instead of python script.py).
0
votes
0answers
46 views

How can CentOS 6 use python 2.6 with anaconda (python 2.7) installed?

I am using CentOS 6 and it uses python 2.6 by default. Recently, I install anaconda package with python 2.7 to work with scikit-learn, but now some packages that my OS uses are not available to it. I ...
0
votes
0answers
42 views

Trouble configuring/building couchnode on ubuntu

I have installed both nodejs, and the module couchbase via npm. couchbase is installed too, and I can access to the backend via the browser. I have installed python 2.7. I'm getting the Error: ...
1
vote
1answer
37 views

Lighttpd appending /main.py/ to url

I have a web server using web.py running on lighttpd. My lighttpd.conf file is as follows: server.modules = ("mod_fastcgi", "mod_rewrite", "mod_compress", "mod_expire", "mod_redirect") ...
0
votes
0answers
50 views

brew prune permission denied - what should group and permissions be?

Reinstalling python using brew so that hopefully psycopg2 will stop giving errors: Library not loaded: /usr/local/opt/postgresql/lib/libpq.5.dylib So following this answer: mikekilmer$ brew prune ...
0
votes
1answer
45 views

Disabling the dialogs shown when opening an application for the first time on OSX

I am making an app on osx 10.9 using python 2.7. But when it is launched first time, warning comes. You are opening the application MYAPP for the first time. Are you sure you want to open this ...
2
votes
1answer
31 views

Is my understanding of the WSGI path correct

My past web application experience is limited to a few Apache+PHP experiments. Starting from this background I've been reading up on using Python for REST services, and this is my current ...
0
votes
0answers
14 views

303 Redirect in Django WSGI setup

I am running a django application using the WSGI setup. I want to write a redirect to some non existing pages in the app. I tried using .htaccess . But it is not working. Not even a file in ...
0
votes
1answer
28 views

How to remove the visual line from Python mode in Emacs

I started to use Emacs for Python and I am using this package: https://github.com/gabrielelanaro/emacs-for-python After I install it, I see this: There is a white line (like underscore) ...
0
votes
0answers
17 views

applescript permissions for copied files

Using applescript, I'm copying PY files to a location in OSX. However, they don't compile when I load Python, it seems because the permissions havent been set on the files. When I look at "get info" ...
0
votes
0answers
16 views

Open a jar file without it taking focus

I've written a python script that runs a java program every 3-5 seconds. This is run by using subprocess.call() method: subprocess.call(['java', '-jar', ...
0
votes
1answer
31 views

Running at close to 100 cpu

So I have a python script that is really pushing the limits on concurrency. When the script is running, the cpu load of my computer is close to 100% at all times. Can this harm my computer? To be ...
0
votes
1answer
48 views

Why my iptables configuration for port-knocking does not work?

I implemented the following iptables rules on my test server for a course. The firewall shuts down and I cannot access port 22. However, after knocking on the ports 1111, 2222 and 3333 in that order - ...
1
vote
0answers
25 views

How does the Python Web Application stack work [closed]

I've been frantically reading up about python and REST services as I want to start learning and building a service. The terms confused me a lot - my past web application experience is some limited ...
1
vote
1answer
144 views

How do computers generate random numbers? [closed]

How does a computer generate 'random' numbers? How close to truly 'random' can a number generated by a computer actually be? Is there software / programming language out that that might generate a ...
0
votes
0answers
22 views

Where did pep8 went when I upgraded to OSX 10.9.5?

I just updated OSX to 10.9.5, but I now miss pep8, brew did not help, how do you install pep8 on MAC OSX 10.9.5? I already accepted the new license with sudo xcodebuild -license.
0
votes
0answers
60 views

OpenStack Rally manual install issue(with sqlalchemy import in python)

When I try to install Rally based on this tutorial https://wiki.openstack.org/wiki/Rally/installation/manual (because I already deployed an OpenStack cloud) I get an error message: rally-manage db ...
0
votes
0answers
14 views

Gmvault / got-your-back (gyb) features compare, for decision making

Are there any differences in the way the backups can be done for Gmail, and restored, through Gmvault or got-your-back? Haven't been able to locate a side by side comparison. http://gmvault.org ...
0
votes
2answers
92 views

Win8.1 Error -1073741819 -> 0xc0000005

I've never had this problem on PC since Win95 I guess, but somehow it's happened recently while I was trying to 'make force' python framework( setup.py build_ext --inplace -f -> ...
0
votes
1answer
33 views

Open with only lists choose default program for .py files

The context menu for a .py file in file explorer is only giving the Choose default program... option in the context menu. Currently it runs it with python.exe by default. If I change the default ...
2
votes
2answers
110 views

IDE for Chromebooks without Developer Mode Acess

I am starting a computer club at my school, and I am running into a problem with Chromebooks. The new freshmen are given Toshiba Chromebooks, where developer mode access to blocked. We are going to ...
2
votes
1answer
104 views

Notepad++ how to copy the text (only) which matches the regex expression (not the whole line)

I am looking for a simple way to copy into the clipboard all the "marks" in notepad++. I found that I could copy the whole line that match the regex using the bookmark option. But I'm looking for a ...
0
votes
1answer
32 views

Task scheduler Windows 7(schtasks) set Principals RunLevel highest returns Access denied (Run with highest privilege)?

SCHTASKS /Create /TN "New Task" /SC HOURLY /TR blah.exe /RU myusername /RP pypassword /RL HIGHEST Returns {ERROR: Access Denied} Error also used below code in Xml but still getting the same Error ...
0
votes
0answers
28 views

64-bit outlook link no longer being found with python script - SUBPROCESS.Popen()

I used to execute a script that at the end would distribute an e-mail using Microsoft Outlook and a custom form. I found a website that told you how to create a custom form, insert some VBA script ...