Q_CreationDate
stringlengths
23
23
Title
stringlengths
11
149
Question
stringlengths
25
6.53k
Answer
stringlengths
15
5.1k
Score
float64
-1
1.2
Is_accepted
bool
2 classes
N_answers
int64
1
17
Q_Id
int64
0
6.76k
2013-05-08 17:06:58.623
Generating all permutations with repetition
How could we generate all possible permutations of n (given) distinct items taken r at a time where any item can be repeated any number of times? Combinatorics tell me that there will be n^r of them, just wondering how to generate them with C++/python?
Treat your permutation as a r-digit number in a n-based numerical system. Start with 000...0 and increase the 'number' by one: 0000, 0001, 0002, 000(r-1), 0010, 0011, ... The code is quite simple.
0.135221
false
1
2,546
2013-05-09 01:29:16.057
Serverless communication between network nodes in python
I am not sure if this question belongs here as it may be a little to broad. If so, I apologize. Anyway, I am planning to start a project in python and I am trying to figure out how best to implement it, or if it is even possible in any practical way. The system will consist of several "nodes" that are essentially pytho...
There are messaging systems that don't require a central message broker. You might start by looking at ZeroMQ.
1.2
true
1
2,547
2013-05-09 21:51:38.253
Generating numbers with Gaussian function in a range using python
I want to use the gaussian function in python to generate some numbers between a specific range giving the mean and variance so lets say I have a range between 0 and 10 and I want my mean to be 3 and variance to be 4 mean = 3, variance = 4 how can I do that ?
If you have a small range of integers, you can create a list with a gaussian distribution of the numbers within that range and then make a random choice from it.
0.067922
false
1
2,548
2013-05-10 16:43:35.313
Qt : Segfault when zooming on QGraphicsDropShadowEffect
I've been experiencing a really weird bug recently: Often when I zoom too much on a QGraphicsItem (using scale on the view containing it) that has a QGraphicsDropShadowEffect on it, my app closes with a segmentation fault (core dumped) error. What's weird is that: I use Python (with the PySide binding) If I remove the...
This may or may not help but when I encountered this the only thing that helped was reinstalling/updating pyside. I thought the fixed that bug a while back however.
0
false
1
2,549
2013-05-10 17:34:24.980
How can I find out which line of code is leaving a file open?
I recently got an exception on my server about "Too many open files". I checked lsof, and sure enough, there are a bunch of PDF files that remain open (all in the same directory). This particular file is managed through a Django FileField. I've tried to track down any places in my project that explicitly open the file ...
Are you depending on the garbage collector to close your files? I.E. the handle goes out of scope and even though you've "closed" the file, it won't go away until GC runs. If the object chain never goes out of scope, GC cannot collect it. Also, if GC does not get an opportunity to run, they won't be collected either. I...
0
false
1
2,550
2013-05-11 22:51:17.327
Residuals of Random Forest Regression (Python)
When using RandomForestRegressor from Sklearn, how do you get the residuals of the regression? I would like to plot out these residuals to check the linearity.
There is no function for that, as we like to keep the interface very simple. You can just do y - rf.predict(X)
1.2
true
1
2,551
2013-05-12 19:31:03.183
Pydev indentation warning in Eclipse
I am using PyDev perspective. I get a bad indentation warning in python files. I just copy code from somewhere else, I cannot make sure how much space others use... so how to automatically format that or how to erase that warning? It looks bad.
There is no 'automatic' way for that... But usually in this situation you can just do a find/replace from 2 spaces to 3 spaces (or whatever was the format you had to the expected format). Sometimes rectangular editing is helpful there too (hint: use alt+shift+A to enter/leave rectangular editing mode).
0
false
1
2,552
2013-05-13 17:55:17.150
python overwrite bytes from offset1 to offset2
I've seen multiple tutorials in python, played around a bit with python file write(), tell(), seek() functions and also os.write(), lseek() functions. But I still don't get how can I do the following: What I have: In a file I know the start_offset and end_offset bytes. And I need to replace the bytes from start_offse...
You write the exact number of characters == bytes, after .seek()-ing back to your start_offset position. These then overwrite the data that was there before. You can split that up into multiple writes, even writes of one character (byte) at a time if needed.
0.545705
false
1
2,553
2013-05-14 06:42:24.980
How to run ipython with pypy?
How do I use ipython on top of a pypy interpreter rather than a cpython interpreter? ipython website just says it works, but is scant on the details of how to do it.
The "straight forward" way is: Install pypy3 pypy3 -m pip install ipython pypy3 -m IPython
0.201295
false
1
2,554
2013-05-14 12:52:53.177
How to schedule an action in python?
I'd like to know how to preform an action every hour in python. My Raspberry Pi should send me information about the temp and so on every hour. Is this possible? I am new to python and linux, so a detailed explanation would be nice.
The easiest way would be to set up a cron job to call a python script every hour.
0
false
1
2,555
2013-05-15 20:51:00.127
How to get id of the tweet posted in tweepy
I want to check if a certain tweet is a reply to the tweet that I sent. Here is how I think I can do it: Step1: Post a tweet and store id of posted tweet Step2: Listen to my handle and collect all the tweets that have my handle in it Step3: Use tweet.in_reply_to_status_id to see if tweet is reply to the stored id In th...
What one could do, is get the last nth tweet from a user, and then get the tweet.id of the relevant tweet. This can be done doing: latestTweets = api.user_timeline(screen_name = 'user', count = n, include_rts = False) I, however, doubt that it is the most efficient way.
0
false
1
2,556
2013-05-16 08:05:00.967
Using set of images as an input
I am trying to take a set of tagged images as input and remove noisy tags from each image. I have written a python code which takes a text file as input, each line of which corresponds to tags of an image, and removes the noisy tags from each line. I have used the structure and similarity measures in Wordnet to do so. ...
Well, I suppose you take a bunch of path to images as strings, you can get them as command line arguments or reading them from stdin. Then you just have to open them or do whatever you want with it. Is that answering your question?
0
false
1
2,557
2013-05-16 20:45:31.520
how to invoke python script in jsp/servlet?
I am trying to invoke a python code for screen scraping (using Beautiful Soup) from my jsp servlet. Or it would also work if it can be directly invoked from the HTML. Looked through few threads but couldn't get any solution. What I want is to give the python program some arguments and want it to do some screen scrappin...
I assume you are talking about web scraping which is pulling information from other websites. You are not going to be able to do something like this in somebody's browser because it violates Javascript's same origin policy, AND there is no way a browser is going to let you download and execute a script on a client's co...
0
false
1
2,558
2013-05-16 21:23:58.407
Upload files via email in Django. General algorithm
How to implement something like this: If someone send email with file in attachment to system@mail.com, this file is added automatically to database. Please general algorithm how to do or suggest existing app
Are you trying to read from a mailbox and write the information into the database? If so, then you want to: 1) Open a connection to the mail server using poplib or imaplib from the standard library 2) Retrieve messages from the server (again with poplib or imaplib) 3) Parse the messages with the email package from the...
1.2
true
1
2,559
2013-05-17 10:33:00.917
Hbase wildcard support
I want to do something like select * from table where name like '%name%' is there anyway to do this in Hbase ? and if there is a way so how to do that ps. I use HappyBase to communicate with Hbase
HBase provides a scanner interface that allows you to enumerate over a range of keys in an HTable. HappyBase has support for scans and this is documented pretty well in their API. So this would solve your question if you were asking for a "like 'name%'" type of query which searches for anything that begins with the pre...
0.386912
false
1
2,560
2013-05-20 06:45:20.217
create an button on desktop
I've collected many nice wall papers over years. I know python and c++ (a little MFC eperience). I want to make a programme that can change my wallpapers. I want to operate like this: there is a little icon (half transparent), if i click it, it change my wallpapers to the next picture in my wallpaper collection f...
There is an easiest way. Install VBest Icon groups. ( it is a desktop icon stack ) Then select any stack and add a single button. ( drag and drop any application will get its link and icon in the stack ) Select the stack and in its settings, set transparency equals 0 ( slide to left) That is it. Now you have a single b...
-0.135221
false
1
2,561
2013-05-20 09:11:42.033
Using IronPython in C#
I've recently discovered IronPython in C# and only tutorials I found were how to use python script in C#, but I've noticed, that IronPython has classes and methods you can use directly in C# like : PythonIterTools.product some_pr = new PythonIterTools.product(); and others, can anyone explain how does this work?
Parts of IronPython's standard library are implemented in C#, mainly because the equivalents in CPython are written in C. You can access those parts directly from a C# (or any other static .NET language) directly, but they're not intended to be used that way and may not be easy to use.
1.2
true
1
2,562
2013-05-20 15:01:28.230
Unit testing Cherrypy HTTPRedirect.
I’m writing a cherrypy application that needs to redirect to a particular page and I use HTTPRedirect(‘mynewurl’, status=303) to achieve this. This works inasmuch as the browser (Safari) redirects to ‘mynewurl’ without asking the user. However, when I attempt to unit test using nosetests with assertInBody(), I get a ...
With python unit tests, you are basically testing the server. And the correct response from server is the redirect exception and not the redirected page itself. I would recommend you testing this behaviour in two steps: test if the first page/url throws correctly initialized (code, url) HTTPRedirect exception test con...
1.2
true
1
2,563
2013-05-24 14:29:23.187
Beautiful Soup "not supported" Google App Engine
I am working in python on a GAE app. Beautiful soup, which the app uses, works fine on my dev server locally. When I try and upload it to google's servers however, I get the following error: "Error parsing yaml file: the library "bs4" is not supported". I am not sure how to fix this. Does anyone have any idea? Thank yo...
It seems uploading the whole directory where the bs4 module resides in to the GAE app folder would work.
0
false
1
2,564
2013-05-24 22:57:53.797
Python GTK (Glade) Notebook
I'm currently developing a small application in Python with the use of GTK+ (and Glade). Everything has been fairly simple to integrate so far, until I came up with the idea to add tabs instead of pop-ups. Note: Still using Python 2.7+ Is there any easy way to implement already existing pages inside a new tab(notebook)...
Not an answer, but it looks like "another.anon.coward" already answered this in a comment... If you double click on the tab, then that page is selected for adding content in glade. You can go ahead and add content for that page. As for switching you can use set_current_page to switch to page whose content you want to ...
0.201295
false
1
2,565
2013-05-25 02:45:56.920
IPython command not found Terminal OSX. Pip installed
Using Python 2.7 installed via homebrew. I then used pip to install IPython. So, IPython seems to be installed under: /usr/local/lib/python2.7/site-packages/ I think this is true because there is a IPython directory and ipython egg. However, when I type ipython in the terminal I get: -bash: ipython: command not fou...
For me the only thing that helped was: python -m pip install --upgrade pip Upgrading pip did the work and all the installations started working properly! Give it a try.
0
false
4
2,566
2013-05-25 02:45:56.920
IPython command not found Terminal OSX. Pip installed
Using Python 2.7 installed via homebrew. I then used pip to install IPython. So, IPython seems to be installed under: /usr/local/lib/python2.7/site-packages/ I think this is true because there is a IPython directory and ipython egg. However, when I type ipython in the terminal I get: -bash: ipython: command not fou...
I use pip3 install ipython is OK. maybe ipython rely on python3
0.116092
false
4
2,566
2013-05-25 02:45:56.920
IPython command not found Terminal OSX. Pip installed
Using Python 2.7 installed via homebrew. I then used pip to install IPython. So, IPython seems to be installed under: /usr/local/lib/python2.7/site-packages/ I think this is true because there is a IPython directory and ipython egg. However, when I type ipython in the terminal I get: -bash: ipython: command not fou...
I had this issue too, the following worked for me and seems like a clean simple solution: pip uninstall ipython pip install ipython I'm running mavericks and latest pip
1.2
true
4
2,566
2013-05-25 02:45:56.920
IPython command not found Terminal OSX. Pip installed
Using Python 2.7 installed via homebrew. I then used pip to install IPython. So, IPython seems to be installed under: /usr/local/lib/python2.7/site-packages/ I think this is true because there is a IPython directory and ipython egg. However, when I type ipython in the terminal I get: -bash: ipython: command not fou...
After trying to a number of solutions like above with out joy, when I restarted my terminal, Ipython command launched. Don't forgot to restart your terminal after all the fiddling! P.S. I think the brew install Ipython did it ... but can't be sure.
0
false
4
2,566
2013-05-25 07:06:42.807
Does Apache really "fork" in mod_php/python way for request handling?
I am a dummy in web apps. I have a doubt regaring the functioning of apache web server. My question is mainly centered on "how apache handles each incoming request" Q: When apache is running in the mod_python/mod_php mode, then does a "fork" happen for each incoming reuest? If it forks in mod_php/mod_python way, then...
With a modern version of Apache, unless you configure it in prefork mode, it should run threaded (and not fork). mod_python is threadsafe, and doesn't require that each instance of it is forked into its own space.
0
false
1
2,567
2013-05-27 10:42:02.247
Concurrency doubts in Django
I'm developing a website with Django 1.5.1 and I have two doubts regarding concurrence. Now I'm runing on the development server. When multiple users access the website at the same time, by default, does Django run each request in a different execution thread? Or must it be configured in the webserver e.g. Apache? Wil...
Its webserver specific. If you configure it to run in different process, request will be handled in new process. If you configure to have threads it will be in threads. Yes. Imagine case when, user1 is viewing/editing a object A (retrieved from DB). user2 deletes that object. And then user1 tries to save it. You need t...
1.2
true
1
2,568
2013-05-28 00:04:40.997
How To Add An Icon Of My Own To A Python Program
I am developing a game in Python and was wondering how to give it its own icon. I am using a windows computer and have no extra things installed with Python. Oh also I am using version 3.3 Is this even possible. P.S I have found other things on Stack Overflow but they are using different Operating Systems like Ubunt...
If you are trying to change the icon of the shortcut for your program, then you need to get to the file where ever it is right-click it and go to create a shortcut then drag that shortcut to your desktop then right-click that shortcut and click properties then click on "Change Icon" then go to where your desire .i...
0.116092
false
2
2,569
2013-05-28 00:04:40.997
How To Add An Icon Of My Own To A Python Program
I am developing a game in Python and was wondering how to give it its own icon. I am using a windows computer and have no extra things installed with Python. Oh also I am using version 3.3 Is this even possible. P.S I have found other things on Stack Overflow but they are using different Operating Systems like Ubunt...
You can't. In Windows, custom icons can only be assigned to certain types of files (executables and shortcuts, mostly), and Python scripts are not one of those types.
0
false
2
2,569
2013-05-28 05:09:32.590
Counter in OpenErp - Python
I need a field which adds a counter to a specific item i add in the product section of a custom module. Like an automatic number generated by the system, for let's say Internal Reference, so every time i save a new product this field will create a number for it in this field, like IN0001, IN0002, IN0003, etc... I've l...
there is a model called 'ir.sequence'. You can create a sequence type and sequence for your model and then just by calling the code of the sequence you will be able to generate new sequences
1.2
true
1
2,570
2013-05-29 18:03:54.827
pyparsing not working on windows text file but works on linux text file
I have a simple pyparsing construct for extracting parts of a log message. It looks like this log_line = timestamp + task_info + Suppress(LineEnd()) This construct parses a log file generated in Linux very well but doesn't parse a similar file generated in windows. I am pretty sure it is because of the new line represe...
Try Suppress("\r\n") instead of Suppress(LineEnd())
0.386912
false
1
2,571
2013-05-29 18:04:24.747
Pylab after upgrading
Today I upgraded to Xubuntu 13.04 which comes with Python 3.3. Before that, I was working with Pyton 3.2, which was working perfectly fine. When running my script under Python 3.3, I get an ImportError: No module named 'pylab' in import pylab. Running in Python 3.2, which I reinstalled, throws ImportError: cannot im...
I suspect you need to install python3-matplotlib, python3-numpy, etc. python-matlab is the python2 version.
1.2
true
1
2,572
2013-05-30 21:45:23.060
Does a Django site with a Tastypie interface need two codebases?
I have a Django project with several apps. My project is now getting to the point it needs an API. I'm planning to have the API on a different server using tastypie. However, the API will use the same models as the website. So far I see my only option is as follows... Copy the apps to the server which means I have two...
Why don't you run the api on the same server on a different port? that will save you a lot of problems to start with. Sharing database connections cross servers will likely require you to think about security, a lot. Also if you are reusing the same apps in different projects you might want to package and version your ...
0.101688
false
3
2,573
2013-05-30 21:45:23.060
Does a Django site with a Tastypie interface need two codebases?
I have a Django project with several apps. My project is now getting to the point it needs an API. I'm planning to have the API on a different server using tastypie. However, the API will use the same models as the website. So far I see my only option is as follows... Copy the apps to the server which means I have two...
For this to be meaningful, you likely need to connect to the same database Why would you need two codebases? You have two copies of a single codebase.
0.296905
false
3
2,573
2013-05-30 21:45:23.060
Does a Django site with a Tastypie interface need two codebases?
I have a Django project with several apps. My project is now getting to the point it needs an API. I'm planning to have the API on a different server using tastypie. However, the API will use the same models as the website. So far I see my only option is as follows... Copy the apps to the server which means I have two...
I wouldn't recommend splitting your project like this. Every time you edit a model you have to edit it on both immediately or risk things getting out of sync. This will get very very painful, instead; Is the server the bottleneck? Split site and api machines (but using the same models.py) and share the connection to t...
1.2
true
3
2,573
2013-05-30 22:37:46.737
Connect Android to Python
I have an Android application that captures an image and Python code that extracts some features from images. I want to connect them to each other (receive the image in Python from the Android application). I read some things about building a TCP Server, but I don't know how to do it and how to start as it's my first t...
You can upload a image to server using any of the database, use python code on server side and you will get the result.
-0.201295
false
2
2,574
2013-05-30 22:37:46.737
Connect Android to Python
I have an Android application that captures an image and Python code that extracts some features from images. I want to connect them to each other (receive the image in Python from the Android application). I read some things about building a TCP Server, but I don't know how to do it and how to start as it's my first t...
Well, you could have the Android Application save the image to a folder and have the Python file import that image.
0.201295
false
2
2,574
2013-06-01 00:15:42.017
Tcp/IP socket programming in python
I am currently involved in a project where we performed some computer vision object recognition and classification using python. It is necessary to use photos taken from an Android phone (photos should be automatically sent from android to python). I actually don't know how should I connect both applications (android a...
poof's answer is a good overview, but here are some notes on the various options: Option 1: Have your Android get the picture and do a HTTP POST to a Python application running a framework such as Django. It should be 1 line of code on Android, and only a few lines of code on Python (around your existing code). The up...
0
false
1
2,575
2013-06-01 00:26:41.710
What are the options for storing Python long integers in MySQL?
I need to represent instances of Python "Long integer" in MySQL. I wonder what the most appropriate SQL data type I should use. The Python documentation (v2.7) says (for numbers.Integral): Long integers These represent numbers in an unlimited range, subject to available (virtual) memory only. For the purpose of shift...
Yes if you really need unlimited precision then you'll have to use a blob because even strigns are limited. But really I can almost guarantee that you'll be fine with a NUMERIC/DECIMAL data type. 65 digits means that you can represent numbers in the range (-10^65, 10^65). How large is this? To give you some idea: The ...
0.296905
false
1
2,576
2013-06-01 15:04:36.333
Running a module from the pycharm console
I'm new to python and pycharm and I'd like to run a module from the pycharm console in the same way as you can from IDLE, if it's possible. The idea is to create simple functions and test them "live" using the console. ...how do you do that in pycharm?
Select the script lines that you want to execute and press Shift+Alt+E
0.135221
false
2
2,577
2013-06-01 15:04:36.333
Running a module from the pycharm console
I'm new to python and pycharm and I'd like to run a module from the pycharm console in the same way as you can from IDLE, if it's possible. The idea is to create simple functions and test them "live" using the console. ...how do you do that in pycharm?
For anyone still having this problem: Go to the Run/Debug menu, choose Edit Configuration, check the box 'Show command line' this will enable you to enter parameters in the console at the >>> prompt and test your function. Edit: To make this change apply to all your .py files (as this check box only applies to the cur...
0.647496
false
2
2,577
2013-06-01 21:29:57.643
Scikit-Learn n_jobs Multiprocessing Locked To One Core
Trying to use gridsearch CV with multiple jobs via the n_jobs argument and I can see using htop that they're all launched and running but they all get stuck/assigned on the same core using 25% each (I'm using a 4 core machine). I'm on Ubuntu 12.10 and I'm running the latest master pulled from github. Anyone know how to...
Found it, there's a note on the svm page that if you enable verbose settings multiprocessing may break. Disabling verbose fixed it
1.2
true
1
2,578
2013-06-03 09:43:15.973
/usr/local/lib/python2.6/dist-packages/joblib/parallel.py:40: UserWarning: [Errno 30] Read-only file system. joblib will operate in serial mode
Anyone knows what this error is and how to fix it? I've already tried to chmod -R 777 /usr/local/python2.6/dist-packages/joblib but with no luck.
You need to change the permissions for the directory the process wants to write to. Find out what directory joblib wants to put things in and change its permissions or use a different directory with the needed permissions for this. In order to be able to give the permissions and to allow Python to write to the filesyst...
0
false
1
2,579
2013-06-03 15:20:55.343
Django return .html file directly without parsing for template tags at all
I'm writing a single view Javascript application with a Django backend that only needs to return the initial index.html and all other templates come from a CDN. My problem is that this first index.html file is parsing out some of my "{{}}" handlebars which I wanted to leave for the JS library to interpret. I DO NOT wan...
If you don't want to render a template, simply don't render it. Django won't render anything unless you specifically call template.render or one of the shortcuts. If you just want to return an HTML file, you could just open it as a normal file, read it, then return the content as the response. Alternatively, as suggest...
0.999329
false
1
2,580
2013-06-04 10:09:50.767
checking/verifying python code
Python is a relatively new language for me and I already see some of the trouble areas of maintaining a scripting language based project. I am just wondering how the larger community , with a scenario when one has to maintain a fairly large code base written by people who are not around anymore, deals with the followin...
Others have already mentioned documentation and unit-testing as being the main tools here. I want to add a third: the Python shell. One of the huge advantages of a non-compiled language like Python is that you can easily fire up the shell, import your module, and run the code there to see what it does and what it retur...
0
false
2
2,581
2013-06-04 10:09:50.767
checking/verifying python code
Python is a relatively new language for me and I already see some of the trouble areas of maintaining a scripting language based project. I am just wondering how the larger community , with a scenario when one has to maintain a fairly large code base written by people who are not around anymore, deals with the followin...
You are right, that's an issue with dynamically typed interpreted languages. There are to important things that can help: Good documentation Extensive unit-testing. They apply to other languages as well of course, but here they are especially important.
0
false
2
2,581
2013-06-06 00:09:22.573
GDB 7.2 + python: how to get members of anonymous structure?
GDB 7.2 python doesn't have gdb.Type.iteritems method. Anyway I can access the members of the anonymous structure (which is within another structure of course) from gdb 7.2 ? The assumption is that I dont know know the name of the members of the anonymous structure or else I could have done gdb.parse_and_eval on them.
I think you can use Type.fields to iterate over the fields. Then, you can look at the field offset and you can compute a pointer to the anonymous field, along the lines of (type *) (((char *) obj) + offset). This isn't ideal. There is a bug open to implement something better.
1.2
true
1
2,582
2013-06-06 00:47:57.993
In pygame how to make an object controlled with arrow keys not move of the edge of the screen
I have made an object controlled with arrow keys. When I move it to the edge of the pygame screen, the object moves off the screen. I was wondering how to keep the object on the screen. Any suggestions?
On each handle of the input, check if the object's target x position plus its width exceeds the width of the canvas or if it is less than 0. Deny the movement if so. Repeat for the y coordinate and the height.
0.135221
false
1
2,583
2013-06-06 08:32:16.723
What is the best way to download number of pages from a list of urls?
I have a >100,000 urls (different domains) in a list that I want to download and save in a database for further processing and tinkering. Would it be wise to use scrapy instead of python's multiprocessing / multithreading? If yes, how do I write a standalone script to do the same? Also, feel free to suggest other aweso...
Scrapy is still an option. Speed/performance/efficiency Scrapy is written with Twisted, a popular event-driven networking framework for Python. Thus, it’s implemented using a non-blocking (aka asynchronous) code for concurrency. Database pipelining You mentioned that you want your data to be pipelined into the d...
0
false
1
2,584
2013-06-07 23:13:07.930
pygame not filled shapes (Python)
If I want to craw a circle, I use the regualr draw.circle but the problem is that I don't want it filled so I draw a smaller circle inside of it, it makes a circle with thickness. Everything is good right? no. The background image inside that circle disappeared because the circles are filled. Now my question is: There ...
The command is pygame.draw.circle(Surface, color, pos, radius, width=0). The last argument of width can be changed to not fill the circle in. If it is zero, the circle is solid and if it is anything else it is with an edge thickness of whatever the parameter is.
1.2
true
1
2,585
2013-06-08 01:09:48.807
How to count the number of time a unique URL is open in python?
I'm running a Python code that reads a list of URLs and opens each one of them individually with urlopen. Some URLs are repeated in the list. An example of the list would be something like: www.example.com/page1 www.example.com/page1 www.example.com/page2 www.example.com/page2 www.example.com/page2 www.example.com/pa...
i think you can't do it that way. Delete duplicates in list.
-0.265586
false
1
2,586
2013-06-09 17:36:18.463
Database access strategy for a Python web app
I've been writing a Python web app (in Flask) for a while now, and I don't believe I fully grasp how database access should work across multiple request/response cycles. Prior to Python my web programming experience was in PHP (several years worth) and I'm afraid that my PHP experience is misleading some of my Python w...
Have you looked in to SQLAlchemy at all? It takes care of a lot of the dirty details - it maintains a pool of connections, and reuses/closes them as necessary.
1.2
true
1
2,587
2013-06-09 20:13:35.660
Creating my own python module - questions
I'm creating my own python module that has some functions I want to use. I wanna know how to do these things: How do I proceed with my python module called module.py, so I import only the functions I want, when calling 'import module.function'? (so I don't have to import the entire module) Does I always have to create...
You don't necessarily have to create a class in python, but the use of classes would help you wrap up functions and variables into an object.
0.201295
false
1
2,588
2013-06-10 10:03:50.610
Pay Per Request in Django
Is it possible to implement this in django: In a video site, for every video a user want to watch he/she must pay a fee before watching the video. If it's possible, what's the best way to implement this. And after every successful payment, how can the user be redirected back to the particular video he paid for?
I believe this is possible. What you can do is have a check on your video page for a certain receipt that you can add as an entry in the UserProfile model that you'll have for your django website. Now this receipt will only be generated when your user goes through the complete payment path which you can handle by scr...
0
false
2
2,589
2013-06-10 10:03:50.610
Pay Per Request in Django
Is it possible to implement this in django: In a video site, for every video a user want to watch he/she must pay a fee before watching the video. If it's possible, what's the best way to implement this. And after every successful payment, how can the user be redirected back to the particular video he paid for?
You can do everything web with Django just like with any other webframework/weblibrary. Probably the easiest way would be to have a user-profile, and as soon as the payment has been working out you add this video to the users "allowed" list. This makes it quite easy to show the users available videos. The redirection t...
1.2
true
2
2,589
2013-06-10 18:41:12.223
Ipython - Notebook error: Tornado.application : "Module" object has no attribute 'XREQ'
I am using python 2.6, ipython 0.12.1, tornado 3.02, pyzmq 13.1 , I am getting this error when I start ipython notebook. "Websocket connection cannot be made" In the ipython console window I get torado.application error , in line 183 in create_shell_stream shell_stream = self.create_connected_stream(ip.....,zmq.XREQ)...
For those who end up on this page, here's the solution. This is happening because your OS package manager (in my case 12.04) is lagging pypi in python packages - but not in core libraries (like zeromq). To solve this, my recommended solution is to install python-pandas using your package manager, but also install syste...
0.386912
false
1
2,590
2013-06-11 09:01:33.657
Alternative IDE supporting debugging for Google App Engine in Python (Eclipse + PyDev no debug support on SDK 1.7.6+)
I'm developing on GAE-Python 2.7 using Eclipse+PyDev as IDE. Since GAE SDK 1.7.6 (March 2013), where Google "broke" support for breakpoints*, I've been using the old dev server to continue debugging the application I'm working on. However, Google will drop support of the old dev server as of July 2013 and, since I do ...
The latest version of PyDev (2.8.1) supports GAE debugging. However, "Edit and Continue Debugging or Interactive Debugging" feature seems to have stopped working.
0
false
1
2,591
2013-06-11 14:41:53.260
Command history in interpreters in emacs
Inside emacs I am running interpreters for several different languages (python, R, lisp, ...). When I run the interpreters through the terminal in most cases I can use the up arrow to see the last command or line of code that I entered. I no longer have this functionality when I am running the interpreters in emacs. Ho...
AFAIS the keys are the same as in M-x shell. See menu In/Out for available keys/commands.
0
false
1
2,592
2013-06-13 13:02:48.457
Is there a tool that removes functions that are not used in Python?
I have the following situation: I am working on several projects which make use of library modules that I have written. The library modules contain several classes and functions. In each project, some subset of the code of the libraries is used. However, when I publish a project for other users, I only want to give awa...
I agree with @zmo - one way to avoid future problems like this is to plan ahead and make your code as modular as possible. I would have suggested putting the classes and functions in much smaller files. This would mean that for every project you make, you would have to hand-select which of these smaller files to includ...
0.135221
false
2
2,593
2013-06-13 13:02:48.457
Is there a tool that removes functions that are not used in Python?
I have the following situation: I am working on several projects which make use of library modules that I have written. The library modules contain several classes and functions. In each project, some subset of the code of the libraries is used. However, when I publish a project for other users, I only want to give awa...
If your purpose is to not give away code, then just distribute the python-compiled library, rather than the source code for it. No need to manually weed code calls, just distribute the pyc versions of your files. If you're afraid that people will take your code and not give you credit, don't give them code if there is ...
-0.135221
false
2
2,593
2013-06-13 17:27:57.237
Get raw query string in flask
Is there a way to get the raw query string or a list of query string parameters in Flask? I know how to get query string parameters with request.args.get('key'), but I would like to be able to take in variable query strings and process them myself. Is this possible?
request.query_string also seems to work.
0.986614
false
1
2,594
2013-06-14 16:55:02.320
How to shut down a minecraft server with python?
I have multiple minecraft servers running on the machine. servers are started with bat files that have according titles. My question is that, how can i shut down a certain minecraft server with python? Or how to kill a titled cmd.exe process with python?
I ended up using autohotkey. launched autohotkey with python and made separate .ahk files for every server.
0
false
2
2,595
2013-06-14 16:55:02.320
How to shut down a minecraft server with python?
I have multiple minecraft servers running on the machine. servers are started with bat files that have according titles. My question is that, how can i shut down a certain minecraft server with python? Or how to kill a titled cmd.exe process with python?
I would look at the tools in the os module, it would also help if i had more information about what operating system you are using.
0
false
2
2,595
2013-06-14 16:55:55.587
Finding log-likelihood in a restricted boltzmann machine
I have been researching RBMs for a couple months, using Python along the way, and have read all your papers. I am having a problem, and I thought, what the hey? Why not go to the source? I thought I would at least take the chance you may have time to reply. My question is regarding the Log-Likelihood in a Restricted Bo...
Assume you have v visible units, and h hidden units, and v < h. The key idea is that once you've fixed all the values for each visible unit, the hidden units are independent. So you loop through all 2^v subsets of visible unit activations. Then computing the likelihood for the RBM with this particular activated visi...
0
false
1
2,596
2013-06-14 20:24:51.877
how to access my 127.0.0.1:8000 from android tablet
I am developing a webpage in django (on my pc with windows 7) and now i need to test some pages in tablet pcs. suddenly the thought came if i can have an access to my localhost in windows from android tablet. is that possible? I am in the same wifi connection in both devices at home. i read a lot questions and answers...
Though this thread was active quite a long time ago. This is what worked for me on windows 10. Posting it in details. Might be helpful for the newbies like me. Add ALLOWED_HOSTS = ['*'] in django settings.py file run django server with python manage.py 0.0.0.0:YOUR_PORT. I used 9595 as my port. Make firewall to allo...
0.988014
false
6
2,597
2013-06-14 20:24:51.877
how to access my 127.0.0.1:8000 from android tablet
I am developing a webpage in django (on my pc with windows 7) and now i need to test some pages in tablet pcs. suddenly the thought came if i can have an access to my localhost in windows from android tablet. is that possible? I am in the same wifi connection in both devices at home. i read a lot questions and answers...
Try this python manage.py runserver then connect both tablet and system to same wifi and browse in the address eg: python manage.py runserver 192.168.0.100:8000 In tablet type that url in adress bar
0
false
6
2,597
2013-06-14 20:24:51.877
how to access my 127.0.0.1:8000 from android tablet
I am developing a webpage in django (on my pc with windows 7) and now i need to test some pages in tablet pcs. suddenly the thought came if i can have an access to my localhost in windows from android tablet. is that possible? I am in the same wifi connection in both devices at home. i read a lot questions and answers...
need to know the ip address of your machine .. Make sure both of your machines (tablet and computer) connected to same network 192.168.0.22 - say your machine address do this : 192.168.0.22:8000 -- from your tablet this is it !!!
0.04532
false
6
2,597
2013-06-14 20:24:51.877
how to access my 127.0.0.1:8000 from android tablet
I am developing a webpage in django (on my pc with windows 7) and now i need to test some pages in tablet pcs. suddenly the thought came if i can have an access to my localhost in windows from android tablet. is that possible? I am in the same wifi connection in both devices at home. i read a lot questions and answers...
You can find out what the ip address of your PC is with the ipconfig command in a Windows command prompt. Since you mentioned them being connected over WiFi look for the IP address of the wireless adapter. Since the tablet is also in this same WiFi network, you can just type that address into your tablet's browser, wi...
1.2
true
6
2,597
2013-06-14 20:24:51.877
how to access my 127.0.0.1:8000 from android tablet
I am developing a webpage in django (on my pc with windows 7) and now i need to test some pages in tablet pcs. suddenly the thought came if i can have an access to my localhost in windows from android tablet. is that possible? I am in the same wifi connection in both devices at home. i read a lot questions and answers...
127.0.0.1 is a loopback address that means, roughly, "this device"; your PC and your android tablet are separate devices, so each of them has its own 127.0.0.1. In other words, if you try to go to 127.0.0.1 on your Android tab, it's trying to connect to a webserver on the Android device, which is not what you want. Ho...
0.265586
false
6
2,597
2013-06-14 20:24:51.877
how to access my 127.0.0.1:8000 from android tablet
I am developing a webpage in django (on my pc with windows 7) and now i need to test some pages in tablet pcs. suddenly the thought came if i can have an access to my localhost in windows from android tablet. is that possible? I am in the same wifi connection in both devices at home. i read a lot questions and answers...
If both are connected to the same network, all you need to do is provide the IP address of your server (in your network) in your Android app.
0.04532
false
6
2,597
2013-06-15 09:46:38.787
(python) How to create static text in curses
I am creating a text adventure. How could I to add static text to this. What i mean is some text that always stays on the left side of the window. Even if all the other text is scrolling down. Also how could i make this text red.
You create static text by putting it in a separate window. Create a window large enough for all the text, and then create a smaller window for the dynamic text. Text is colored by passing the various COLOR_* constants as the text attribute.
0
false
1
2,598
2013-06-15 10:10:51.120
how to find out exactly from where print is being executed
This application I am working on (GUI based), has well over a dozen modules. On running the application and using it, there is this particular action(clicking a label) upon which I get tons of empty prints in the stdout and because of which I suspect the application's performance is suffering. Now the problem is I am u...
Wherever you call your printing routine, add a small unique header to printout (module name+line number) to identify the place print was initiated from.
0
false
2
2,599
2013-06-15 10:10:51.120
how to find out exactly from where print is being executed
This application I am working on (GUI based), has well over a dozen modules. On running the application and using it, there is this particular action(clicking a label) upon which I get tons of empty prints in the stdout and because of which I suspect the application's performance is suffering. Now the problem is I am u...
Replace sys.stdout with a file-like that will spew out a traceback when its write() method is called.
1.2
true
2
2,599
2013-06-16 17:51:59.110
Converting a string-like object into a string in python
I am using python and XMLBuilder, a module I downloaded off the internet (pypi). It returns an object, that works like a string (I can do print(x)) but when I use file.write(x) it crashes and throws an error in the XMLBuilder module. I am just wondering how I can convert the object it returns into a string? I have co...
I'm not quite sure what your question is, but print automatically calls str on all of it's arguments ... So if you want the same output as print to be put into your file, then myfile.write(str(whatever)) will put the same text in myfile that print (x) would have put into the file (minus a trailing newline that print p...
0
false
1
2,600
2013-06-16 22:38:00.260
Best intro to iOS for Python/PHP/C# Coder
I really would like to start getting into Objective C coding, specifically so I can write applications for iOS. My coding background is that I have written C# .NET GUI Windows apps and PHP web scripts for years; I've also become a very good Python coder in the past year. I have written hundreds of useful command-line P...
I learned to write iOs apps from the CS 193P iPhone Application Development course on iTunes U. It's fantastic and I highly recommend it if you are sure iOs is what you want to do.
0.101688
false
2
2,601
2013-06-16 22:38:00.260
Best intro to iOS for Python/PHP/C# Coder
I really would like to start getting into Objective C coding, specifically so I can write applications for iOS. My coding background is that I have written C# .NET GUI Windows apps and PHP web scripts for years; I've also become a very good Python coder in the past year. I have written hundreds of useful command-line P...
I have gotten more from Erica Sadun's books than any of the others, personally. iOS apps use a lot of animation and graphics, by necessity, and her code examples are clean and concise. They aren't beginner's books but you sound as though you're not a beginning coder. They hit on a lot of topics it is hard to find mu...
0.101688
false
2
2,601
2013-06-17 03:36:13.283
Unable to export pandas dataframe into excel file
I am trying to export dataframe to .xls file using to_excel() method. But while execution it was throwing an error: "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 892: ordinal not in range(128)". Just few moments back it was working fine. The code I used is: :csv2.to_excel("C:\\Use...
The problem you are facing is that your excel has a character that cannot be decoded to unicode. It was probably working before but maybe you edited this xls file somehow in Excel/Libre. You just need to find this character and either get rid of it or replace it with the one that is acceptable.
0
false
1
2,602
2013-06-17 07:00:53.610
Round a floating-point number down to the nearest integer?
I want to take a floating-point number and round it down to the nearest integer. However, if it's not a whole, I always want to round down the variable, regardless of how close it is to the next integer up. Is there a way to do this?
Just make round(x-0.5) this will always return the next rounded down Integer value of your Float. You can also easily round up by do round(x+0.5)
0.101688
false
3
2,603
2013-06-17 07:00:53.610
Round a floating-point number down to the nearest integer?
I want to take a floating-point number and round it down to the nearest integer. However, if it's not a whole, I always want to round down the variable, regardless of how close it is to the next integer up. Is there a way to do this?
Don't know if you solved this, but I just stumble upon this question. If you want to get rid of decimal points, you could use int(x) and it will eliminate all decimal digits. Theres no need to use round(x).
0.034
false
3
2,603
2013-06-17 07:00:53.610
Round a floating-point number down to the nearest integer?
I want to take a floating-point number and round it down to the nearest integer. However, if it's not a whole, I always want to round down the variable, regardless of how close it is to the next integer up. Is there a way to do this?
I used this code where you subtract 0.5 from the number and when you round it, it is the original number rounded down. round(a-0.5)
-0.201295
false
3
2,603
2013-06-18 02:12:44.600
Is there any simple way to store the user location while registering in database
I have the user registration form made in django. I want to know the city from which the user is registering. Is there any way that i get the IP address of the user and then somehow get the city for that IP. using some API or something
Not in any reliable way, or at least not in Django. The problem is that user IPs are usually dynamic, hence the address is changing every couple of days. Also some ISPs soon will start to use a single IP for big blocks of users (forgot what this is called) since they are running out of IPv4 IP addresses... In other wor...
0
false
1
2,604
2013-06-18 14:42:22.310
Integration testing and images
I'm writing an app that converts different images to JPG. It operates over a complex directory structure. There, a directory may include other directories, image files (JPG, GIF, PNG, TIFF), PDF files, RAR/ZIP archives, which in turn may include anything of the above. The app finds everything that can be converted to a...
Do you write your own library to convert images of you just use existing library? In the latter case you simply do not test it. Author has already tested it somehow. You just need to create an abstraction layer between your code and the image library you use. Then you can simply check if your code calls the library wit...
1.2
true
1
2,605
2013-06-19 04:51:43.080
Is this possible to write a program to inter-act with existing software?
For example, if the program did not provide an API, and I need it to do something from Python script, is this possible to do so? Let's give an example: I would like to copy the Product ID from the Internet Explorer's product ID everyday and new a text file named in this format: ddmmyyyy, and store on desktop. It is stu...
If the Info ur looking for is showed by IE you can obtain it by using xpath. If you want to make it automatic you could use selenium which works with webs as well. If the program doesnt provide an api then its not possible to interact with the program unless you get the output from a browser or you may use programs li...
0
false
1
2,606
2013-06-19 06:25:14.113
how to remove task from celery with redis broker?
I Have add some wrong task to a celery with redis broker but now I want to remove the incorrect task and I can't find any way to do this Is there some commands or some api to do this ?
try to remove the .state file and if you are using a beat worker (celery worker -B) then remove the schedule file as well
0
false
2
2,607
2013-06-19 06:25:14.113
how to remove task from celery with redis broker?
I Have add some wrong task to a celery with redis broker but now I want to remove the incorrect task and I can't find any way to do this Is there some commands or some api to do this ?
The simplest way is to use the celery control revoke [id1 [id2 [... [idN]]]] (do not forget to pass the -A project.application flag too). Where id1 to idN are task IDs. However, it is not guaranteed to succeed every time you run it, for valid reasons... Sure Celery has API for it. Here is an example how to do it from a...
0.240117
false
2
2,607
2013-06-20 09:13:40.570
to measure Contact Angle between 2 edges in an image
i need to find out contact angle between 2 edges in an image using open cv and python so can anybody suggest me how to find it? if not code please let me know algorithm for the same.
Simplify edge A and B into a line equation (using only the few last pixels) Get the line equations of the two lines (form y = mx + b) Get the angle orientations of the two lines θ=atan|1/m| Subtract the two angles from each other Make sure to do the special case of infinite slope, and also do some simple math to get F...
0
false
1
2,608
2013-06-20 12:20:18.940
Scrapy reversed item ordening for preparing in db
I am trying to put the items, scraped by my spider, in a mysql db via a mysql pipeline. Everything is working but i see some odd behaviour. I see that the filling of the database is not in the same order as the website itself. There is like a random order. Probably of the dictionary like list of the items scraped i gue...
Items in a database are have not a special order if you don't impose it. So you should add a timestamp to your table in the database, keep it up-to-date (mysql has a special flag to mark a field as auto-now) and use ORDER BY in your queries.
1.2
true
2
2,609
2013-06-20 12:20:18.940
Scrapy reversed item ordening for preparing in db
I am trying to put the items, scraped by my spider, in a mysql db via a mysql pipeline. Everything is working but i see some odd behaviour. I see that the filling of the database is not in the same order as the website itself. There is like a random order. Probably of the dictionary like list of the items scraped i gue...
It's hard to say without the actual code, but in theory.. Scrapy is completely async, you cannot know the order of items that will be parsed and processed through the pipeline. But, you can control the behavior by "marking" each item with priority key. Add a field priority to your Item class, in the parse_item method o...
0.135221
false
2
2,609
2013-06-20 15:44:12.973
finding corresponding pixels before and after scipy.ndimage.interpolate.rotate
I hope this hasn't already been answered but I haven't found this anywhere. My problem is quite simple : I'm trying to compute an oblic profile of an image using scipy. One great way to do it is to : locate the segment along which I want my profile by giving the beginning and the end of my segment, extract the minim...
After some time of debugging, I realized that depending on the angle - typically under and over n*45 degrees - scipy adds a row and a column to the output image. a simple test of the angle adding one to the indices solved my problem. I hope this can help the future reader of this topic.
1.2
true
1
2,610
2013-06-20 15:49:43.310
Running the Command on Windows Command prompt using HTML button
I would like to run the command python abc.py in the windows command prompt when the button on html page is clicked.The python file is located at C:/abc.py> I would like to know how to code the html page to do this process.Thank you for the help.
I believe the correct answer is you cannot. Feel free to let me know otherwise if you find out a way to do it.
0
false
1
2,611
2013-06-21 17:25:25.663
How do I convert a pandas Series or index to a Numpy array?
Do you know how to get the index or column of a DataFrame as a NumPy array or python list?
You can use df.index to access the index object and then get the values in a list using df.index.tolist(). Similarly, you can use df['col'].tolist() for Series.
1
false
1
2,612
2013-06-21 20:24:27.297
Python programming with CodeRunner
im using a program called CodeRunner to program Python code. I want to install wxpython but how do I figure out what version python im using? when i do python -v in Terminal it says im on 2.7, but is that the same version that CodeRunner is using? Is there a way for me to find out?
CodeRunner should work fine with Python 2.7, but you'll have to make sure that a compatible version of wxPython is installed in your site-packages. To verify that wxPython works correctly, you should start up a python instance in your terminal and run some test code (i.e., import the library and run some of the functio...
0
false
1
2,613
2013-06-23 17:45:52.883
Pexpect Multiple, Different Prompts
Script-1 can be run from a shell and will ask the user for 3 prompts, A, B, and C in that order. A or B will appear to the user, and C will always will appear. In other words, when Script-1 is run, the user will be prompted by question A or B. Once answered, the question C will always be prompted last. I want to write ...
pexpect allows you to specify a list of prompts to match against, so it caters explicitly to your use case. Consult the docstring of pexpect.expect().
-0.964028
false
1
2,614
2013-06-24 07:39:16.460
how do you distinguish numpy arrays from Python's built-in objects
PEP8 has naming conventions for e.g. functions (lowercase), classes (CamelCase) and constants (uppercase). It seems to me that distinguishing between numpy arrays and built-ins such as lists is probably more important as the same operators such as "+" actually mean something totally different. Does anyone have any nami...
You may use a prefix np_ for numpy arrays, thus distinguishing them from other variables.
0.386912
false
2
2,615
2013-06-24 07:39:16.460
how do you distinguish numpy arrays from Python's built-in objects
PEP8 has naming conventions for e.g. functions (lowercase), classes (CamelCase) and constants (uppercase). It seems to me that distinguishing between numpy arrays and built-ins such as lists is probably more important as the same operators such as "+" actually mean something totally different. Does anyone have any nami...
numpy arrays and lists should occupy similar syntactic roles in your code and as such I wouldn't try to distinguish between them by naming conventions. Since everything in python is an object the usual naming conventions are there not to help distinguish type so much as usage. Data, whether represented in a list or a n...
0.201295
false
2
2,615
2013-06-25 17:41:17.553
Plot wavewform in Tkinter (Python)
Does anyone know how to display the waveform of a sound file in a Tkinter window (Python)?
Depending on the sound file format, if it is a .wav then you can probably just read it in to a numpy array then plot it, otherwise you are going to have to parse the file format first.
0
false
1
2,616
2013-06-26 15:45:56.500
Qtablewidget does not scroll smoothly
Problem: I have QTableWidget cells populated with text (10 columns). I found out that no matter how much rows I have (10 or 100000) scrolling over rows with heigth ~ over 3000 is very slow and not smooth enough (I've used table.verticalHeader().sectionSize(i) to find out heigth of every row). What I've tried to do: So ...
This is how I've solved it: While populating table cells with text, if my text have over 1000 lines (text.count("\n")) I put it in QTextEdit() and then set it with setCellWidget. Reason I didn't put them all in QTextEdit()s is that Windows can show limited number of GUI elements (<20000) and, as I said, I have 10 colum...
1.2
true
1
2,617
2013-06-26 16:14:10.373
Python EasyGUI module: how to change the font
How can you change the font settings for the input boxes and message text in EasyGUI? I know you have to edit a file somewhere, but that's about it. Exactly how to do it and what to edit would be appreciated. Thanks in advance.
In addition to what @Benjooster answered previously: Apparently sometimes the font settings are not in easygui.py, but rather in Python27\Lib\site-packages\easygui\boxes\state.py
0.545705
false
1
2,618
2013-06-27 10:44:08.657
how to add field for multiple image attachment in openerp module
Hi I have created a custom openerp module having several fields . I also have a field for attaching image file . But now I need to have a field that should have the ability to attach multiple image fields. How Can I be able to do this? Hopes for suggestion
Add a many2many field relating to ir.attachments.Check sent by email button in invoice. It opens a wizard which we can add many attachments and also email body for example, add a many2many field relating to ir.attachement and in xml line of the field, specify widget="many2many_binary" I dont know whether it is possible...
0
false
1
2,619
2013-06-27 13:20:06.517
How to enter password in XLS files with python?
So I have a password protected XLS file which i've forgotten the password for...I'm aware it's a date within a certain range so i'm trying to write a brute forcer to try various dates of the year. However, I can't find how to use python/java to enter the password for the file. It's protected such that I can't open the ...
If you search there are a number of applications that you can download that will unblock the workbook.
0
false
1
2,620
2013-06-27 18:58:43.570
Failing to define the Python interpeter for PyDev in Eclipse
I installed Python 32bit on W7. I then "installed" Eclipse 32bit. I successfully added PyDev to Eclipse. I then go to PyDev->Interpreter-Python, and click on "new", browse to C:\Python27\python.exe, click ok, and get the following error: Error getting info on interpreter. Common reasons include -Using an unsupported ve...
i had this problem too, it turns out i had used "&" in the path of my eclipse folder. i renamed the folder using just normal characters, and pydev installed fine. i believe the path statement for the location of the eclipse folder has to be strict unicode without any other characters
0.386912
false
1
2,621