Q_Id
int64
337
49.3M
CreationDate
stringlengths
23
23
Users Score
int64
-42
1.15k
Other
int64
0
1
Python Basics and Environment
int64
0
1
System Administration and DevOps
int64
0
1
Tags
stringlengths
6
105
A_Id
int64
518
72.5M
AnswerCount
int64
1
64
is_accepted
bool
2 classes
Web Development
int64
0
1
GUI and Desktop Applications
int64
0
1
Answer
stringlengths
6
11.6k
Available Count
int64
1
31
Q_Score
int64
0
6.79k
Data Science and Machine Learning
int64
0
1
Question
stringlengths
15
29k
Title
stringlengths
11
150
Score
float64
-1
1.2
Database and SQL
int64
0
1
Networking and APIs
int64
0
1
ViewCount
int64
8
6.81M
35,901,908
2016-03-09T20:28:00.000
1
0
1
0
python,c++,wrapper
35,902,761
1
true
0
1
Concerning your confusion about the process, just follow any tutorial for any of the wrapper libs you found or where suggested in the comments. If I want to make this manager usable in python, do I need to wrap it in a different way for each version of python? (2.7 vs 3.4) Yes. You might be able to load binary module...
1
0
0
I have a .cpp and .h source file pair which is a manager (I guess a wrapper also) for a c++ library I have made. I want to let people use this manager to work with my library in python. I have heard about several different ways to wrap this library into python like cython and boost.python but Im having trouble with und...
Confusion wrapping c++ library to python
1.2
0
0
85
35,903,034
2016-03-09T21:31:00.000
2
0
0
0
python,ubuntu-14.04,kivy,pydev
35,906,874
1
false
0
1
*.kv files aren't Python files. I don't think trying to treat them as such is really what you want to do. If you must, you can choose to treat *.kv files as python files by going to Preferences > General > Editors > File Associations and adding an entry for *.kv with the Python Editor as an associated editor. My own ...
1
1
0
I begun to develope with Python and Kivy and I really like it :-) For daily business I'm a Java developer and also a an eclipse child. So i decided to setup eclipse (Mars) with Python, means install PyDev-Plugin and create the settings (done in one button-click). But I have a problem, my eclipse do not want to recogniz...
Kivy development in eclipse PyDev on Ubuntu 14.04 SetUp
0.379949
0
0
451
35,905,521
2016-03-10T00:42:00.000
0
0
1
1
python,python-3.x,cx-freeze
51,223,723
2
false
0
0
Copy to the directory of the file to compile the following: re.py sre_compile.py sre_constants.py sre_parse.py from "...\Lib" and build: python <nameFileToBuild>.py build
1
1
0
I've been trying to compile a game I'm writing with python into an exe with cx_Freeze so my friends can play it without the python interpreter. However, when I run the "build" command through cmd, I get an error saying "ImportError: No module named 'cx_Freeze'". I've done this every way in and out, changing the capital...
cx_Freeze not working - no module named cx_Freeze
0
0
0
4,771
35,906,090
2016-03-10T01:43:00.000
0
0
1
1
python,windows,powershell,windows-7
35,906,151
1
true
0
0
Not actually a programming question, but: In Task Manager's Process page, choose View > Select Columns and add the Command Line column. Then you can see the actual command line for each process and you should be able to track down the ones you're interested in. This is for Windows 7; I know they made some changes to th...
1
1
0
I want to run a Python process in background, and I use the following command in PowerShell. powershell > PowerShell.exe -windowstyle hidden python my_process.py But, How can I know whether it is running in background? The task manager can not show a process named python my_process.py that running in background, and ...
how to identify jobs running background on Windows 7-10?
1.2
0
0
293
35,906,092
2016-03-10T01:44:00.000
0
0
1
0
python,regex,string,python-2.7,python-3.x
35,906,208
4
false
0
0
I have had a similar challenge and ended up by replacing the first character with a place holder. I then replaced the 2nd character. The third pass was to replace the place holder with the desired character. Not fancy but worked every time. Replace the 'a' with '$', replace the 'o' with 'k', replace the '$' with 'o...
1
0
0
There is this issue I have been thinking for some time. I have replacement rules for some string transformation job. I am learning regex and slowly finding correct patterns, this is no problem. However, there are many rules in this and I could not do them in a single expression. And now the processes are overlapping. L...
Avoid string replace repetition
0
0
0
968
35,910,573
2016-03-10T07:51:00.000
3
1
0
0
python,pytest,coverage.py
35,939,160
2
false
0
0
The usual coverage tools are built for the much more common case of the measured code being run inside the same process as the test runner. You not only are running in a different process, but a different machine. You can use coverage.py directly on the remote machine when you start the process running the code under ...
1
2
0
I'm using py.test for REST API automation using python request library. How to get coverage using pytest-cov tool. I'm running the automation on build server and code is executed in application server.
pytest-cov get automation coverage from remote server
0.291313
0
1
1,073
35,911,900
2016-03-10T09:07:00.000
0
1
0
0
python,z3,smt,z3py
35,916,711
1
true
0
0
This can happen, e.g., when the configuration between the two methods differs (even slightly), or when when the problems aren't exactly identical (e.g. different order of constraints). Some tactics are also non-deterministic (e.g. they use timers in the preprocessing) and the executable happens to be a bit faster/slowe...
1
0
0
I am working with z3 python api. When I solve constraints using z3 python api then the solver runs infinitely and no errors are thrown. But, when same constraints are dumped in the form of smtlib2 format and then are solved via z3 executable, it almost instantaneously gives sat or unsat. The smtlib2 dump is very large ...
Difference in output when smtlib2 solver is invoked through z3 python api and directly from executable?
1.2
0
0
159
35,914,596
2016-03-10T11:02:00.000
0
0
0
0
python,python-2.7,pyqt4
35,914,964
1
false
0
1
As far as I know, ui_mainWindow is a python file generated by some Qt Tool, that transforms .ui file from QtDesigner to Python class. I have no real experience with PyQT, but I know both C++/Qt and python. In C++/Qt QtCreator does the job of transforming .ui file to C++ class, but probably in python You need to do this...
1
0
0
I have python 2.7 under windows x64, I have been trying to make a simple GUI using PyQt4, like this: from PyQt4 import * from ui_mainwindow import Ui_MainWindow class MainWindow(QtGui.QMainWindow, Ui_MainWindow): when I run the program I have this error: " No module named ui_mainWindow" -I have pyqt4 installed - I hav...
python 2.7 under windows: cannot import ui_mainwindow
0
0
0
831
35,919,948
2016-03-10T14:57:00.000
0
0
0
0
python,python-2.7,machine-learning,scipy,scikit-learn
35,923,537
1
false
0
0
I suspect there is no a readily available module that suits your needs. If I were you I would: partition the features into 2 groups: one for simple linear regression and another one for regularized regression. Train two models on two different (maybe overlapping?) sets of features. When you cross-validate your models,...
1
0
1
I want to run a lasso or ridge regression, but where the L1 or L2 constraint on the coefficients is on some of the coefficients, not all. Another way to say it: I would like to use my own custom cost function inside the lasso or ridge algorithm. I would like to avoid having to rewrite the whole algorithm. Is there a mo...
Inject custom cost function for linear regression
0
0
0
787
35,922,396
2016-03-10T16:45:00.000
0
0
1
0
python-2.7,ipython,windows-10,spyder
35,924,711
1
false
0
0
what is your path to winpython ? spaces or unicode characters may trouble Spyder. Otherwise try with a previous, or posterior version of WinPython
1
0
0
I am using a fresh install of WinPython 2.7, which includes Spyder 3.0.0, on Windows 10. When I start Spyder, the ipython console never connects to the kernel. I have tried resetting spyder through the WinPython command prompt (spyder --reset&&spyder) and regular command line (spyder --reset) and tried opening multipl...
Spyder in WinPython can't connect to kernel
0
0
0
883
35,922,553
2016-03-10T16:53:00.000
1
0
1
1
python,macos,python-2.7
35,922,700
3
false
0
0
Set your an alias to use the python version that you want to use from inside your .bashrc (or zsh if you use it). Like: alias python='/usr/bin/python3.4'
1
6
0
I want to completely reinstall Python 2 but none of the guides I have found allow me to uninstall it. No matter what I do, python --version still returns 2.7.10, even after I run the Python 2.7.11 installer. All the other guides on StackOverflow tell me to remove a bunch of files, but python is still there.
Uninstall Python 2.7 from Mac OS X El Capitan
0.066568
0
0
24,535
35,923,494
2016-03-10T17:39:00.000
0
0
0
0
python,django,apache,apache2.4
35,923,950
1
false
1
0
The real solution is to install your data files in /srv/data/myapp or some such so that you can give the webserver user correct permissions to only those directories. Whether you choose to put your code in /var/www or not, is a separate question, but I would suggest putting at least your wsgi file there (and, of course...
1
1
0
I am working on a Django based application whose location on my disk is home/user/Documents/project/application. Now this application takes in some values from the user and writes them into a file located in a folder which is under the project directory i.e home/user/Documents/project/folder/file. While running the dev...
Django deployed app/project can't write to a file
0
0
0
810
35,924,199
2016-03-10T18:15:00.000
1
0
1
0
python,editor
35,946,563
2
false
0
0
What OS do you use? If you use Windows, you can use WinSCP to view the files and edit them in your computer with any text editor you like. If you use Linux, you can access your files via remote SSH and open them with your text editor.
1
7
0
Most of my data and code are on remote server. I mostly use vim for writing python codes. But, I was wondering if there would be any way to remote access and execute codes on a server from a GUI? GUI comes in handy when I have to plot charts. I am aware of ipython notebooks and pycharm remote access. ipython/jupyter no...
Best editor for remote python files
0.099668
0
0
3,381
35,924,270
2016-03-10T18:19:00.000
1
0
0
0
python,error-handling,libjpeg,openslide
35,983,246
1
true
0
1
I would guess your smaller TIFF is not JPEG-compressed, but your larger one is. When libtiff starts the jpeg decoder, it checks that the version number in the libjpeg library binary matches the version number in the libjpeg headers that it was compiled against, and if they do not match, it prints the warning you are s...
1
0
0
I'm working with Openslide's python bindings. I am using Tif images, which are supported by Openslide. It seems I am able to use the methods read_region and get_thumbnail with a smaller, binary masked Tif of about 100 mb's. However, with a larger, RGBa Tif of about 1.5 Gb, I get the following error: openslide.lowleve...
Openslide libjpeg error: Wrong JPEG library version
1.2
0
0
574
35,925,402
2016-03-10T19:22:00.000
0
0
0
0
java,android,python,android-studio,translate
35,925,616
1
true
1
0
Android studio covers basically every aspect you've mentioned. You'll probably need to google a lot to learn how to implement individual things. Short guide: (research on your own how to do each step) You can use SQLite database for storing your data. Add your media (sound files) to resources and then play them or wha...
1
1
0
I would like to make an app that lets you search for part of a word or phrase, then returns the closest results from a personal database of words I have learnt in another language. Once the results have been returned I would like the option to play the sound file with the associated results. I can write the database in...
Writing personal translation app using my own database to work on android
1.2
0
0
115
35,926,056
2016-03-10T19:58:00.000
0
0
0
0
django,python-2.7,django-templates
35,926,366
1
true
1
0
This isn't really a template question. Templates are rendered before they ever get to the browser, so there is quite simply no such thing as a dynamic templates in this sense (and, to be clear, this is a consequence of the way the web works, not a limitation of Django). The only solution is javascript. If you don't wan...
1
0
0
What is the idiomatic way to create dynamic bindings in a Django template? For example, I have a template that has a list of items along the left. This list is bound to a model in my view context and displayed with a {% for %} loop On the right, is a form that is supposed to display the values of the selected row in ...
Dynamic bindings in Django template
1.2
0
0
200
35,928,155
2016-03-10T21:58:00.000
0
1
0
1
android,python,shell,qpython
35,935,344
2
true
0
1
I don't have experience in Android programming, so I can only give a general recommendation: Of course the naive solution would be to explicitly pass the arguments from script to script, but I guess you can't or don't want to modify the scripts in between, otherwise you would not have asked. Another approach, which I s...
2
0
0
I run python in my Android Terminal and want to run a .py file with: python /sdcard/myScript.py The problem is that python is called in my Android enviroment indirect with a shell in my /system/bin/ path (to get it direct accessable via Terminal emulator). My exact question, how the title tells how to pass parameter t...
Pass parameter through shell to python
1.2
0
0
373
35,928,155
2016-03-10T21:58:00.000
0
1
0
1
android,python,shell,qpython
36,178,959
2
false
0
1
I have similar problem. Runing my script from Python console /storage/emulator/0/Download/.last_tmp.py -s && exit I am getting "Permission denied". No matter if i am calling last_tmp or edited script itself. Is there perhaps any way to pass the params in editor?
2
0
0
I run python in my Android Terminal and want to run a .py file with: python /sdcard/myScript.py The problem is that python is called in my Android enviroment indirect with a shell in my /system/bin/ path (to get it direct accessable via Terminal emulator). My exact question, how the title tells how to pass parameter t...
Pass parameter through shell to python
0
0
0
373
35,928,317
2016-03-10T22:07:00.000
-2
0
1
0
keyboard,python-idle,enthought,shortcut
52,823,738
1
false
0
0
if i were you, try to continue and use your old shortcuts but if they still dont work, try to use "control" for "option" shortcuts and vice-versa. thanks to the the websites online for everything!
1
0
0
I'm taking an online MIT programming course that suggested I use the enthought programming environment. I installed it and now my idle keyboard shortcuts have all changed. It seems to be directly caused by the installation of enthought, as my other computer (without enthought) still retained the old keyboard shortcut...
idle keyboard shortcuts have changed after installing enthought
-0.379949
0
0
21
35,928,873
2016-03-10T22:45:00.000
0
0
1
0
python,paramiko
65,648,725
2
false
0
0
I was able to get it working by installing the following packages using pip. pip install bcrypt cryptography pynacl paramiko These were the packages my Linux install used as prerequisites, so they should work on windows as well.
1
0
0
I have been trying to install paramiko module on windows without success. I have been getting errors related to Visual C++ compiler missing. Is it possible to install paramiko without having to go through compile process.
Install Python module paramiko on windows
0
0
0
6,551
35,929,840
2016-03-11T00:08:00.000
0
0
1
0
python,c++
35,929,867
2
false
0
1
You can't run a .cpp file, as you need to compile a binary from your .cpp file before you can execute it. first, try to compile it using your terminal, after that you might port it to python, and automate it in a Python script (I guess, that's why you want to do it in Python).
1
0
0
Total beginner here, so please be gentle. I have a example.cpp file which has one main function which accepts some input parameters and returns an integer value. How would I run this .cpp file from within Python such that I can specify the input parameters from within Python and access the output of the .cpp so that it...
Python/C++: Running .cpp in Python
0
0
0
684
35,931,803
2016-03-11T03:44:00.000
0
0
1
0
python,multithreading,wxpython,twisted
48,219,389
1
false
0
1
It looks like this is an really "old" question without any answer. I hope you have figured it out by now, if not I have a solution you might be interested. I have done something similarly, except I was using an Arduino with an EthernetShield. I use socket to communicate through LAN and python built-in thread (threadin...
1
3
0
I am currently writing a wxPython GUI with Twisted Python integrated to be able to send basic text over LAN to a RaspberryPi. I am at a point where I want some help figuring out the design path that would be best for this project when it comes to the way I should implement my networking. To briefly give more context t...
Python GUI implementation direction
0
0
0
89
35,937,769
2016-03-11T10:28:00.000
0
0
0
0
python,amazon-ec2,django-rest-framework
35,937,820
1
false
1
0
The problem is pip will open a https connection to pyip. Re-check outbound security rule of the instance and add https rule
1
0
0
I use a micro ec2 instance with python 2.7.10 installed. When i try to install djangorestframework with "pip install djangorestframework", it failed and here is the log: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.python.org tim...
Cannot install djangorestframework on ec2 instance with pip
0
0
0
273
35,938,891
2016-03-11T11:18:00.000
0
0
1
0
python,matplotlib,seaborn
35,939,091
1
true
0
0
Passing arguments into ax.yaxis.grid() and ax.xaxis.grid() will include or omit grids in the graphs
1
0
1
I'm using the whitegrid style and it's fine except for the vertical lines in the background. I just want to retain the horizontal lines.
matplotlib & seaborn: how to get rid of lines?
1.2
0
0
202
35,941,011
2016-03-11T13:05:00.000
0
0
0
0
python,windows,python-2.7,bs4
35,941,194
1
true
1
0
I guess you can run pip2 install bs4 and pip3 install bs4 to install them separately on different python versions
1
0
0
I have both Python 2.7.11 and Python 3.4.1 installed on my Windows 8.1 system. I had installed BeautifulSoup4 with pip to run a code (not mine). However, pip automatically installed bs4 to Python 3.4.1. (I checked that it was installed in C://Python34/lib/site-packages/bs4) I have use the command prompt, change directo...
How to install BeautifulSoup4 for Python 2.7 while also having Python 3.4 installed?
1.2
0
0
757
35,941,506
2016-03-11T13:28:00.000
0
0
0
1
python,redirect,stdout
35,941,617
2
false
0
0
You want to use 'tee'. stdbuf -oL python mycode.py | tee out.txt
1
2
0
I can run my python scripts on the terminal and get the print results on the stdout e.g. python myprog.py or simply redirect it to a file: python myprog.py > out.txt My question is how could I do both solutions at the same time. My linux experience will tell me something like: python myprog.py |& tee out.txt This is...
python - print to stdout and redirect output to file
0
0
0
838
35,942,424
2016-03-11T14:12:00.000
2
0
1
1
python,ubuntu
39,074,990
1
false
0
0
I might have a similar issue here. Got the same error while trying to import a requirement.txt into a virtualenv. something like "No matching distribution found for adium-theme-ubuntu==0.3.4" Solved it by include --system-site-packages when creating the virtualenv. Hope it helps
1
4
0
I'm working on a Appium Python test script for AWS Device Farm. I get error while building the script as; Could not find any downloads that satisfy the requirement package-name (like PAM, Twisted-Core etc) I've already solved almost all of them, but still have problem with adium-theme-ubuntu. This package is already i...
How to install 'adium-theme-ubuntu' (virtualenv)
0.379949
0
0
2,119
35,943,500
2016-03-11T15:04:00.000
0
0
0
0
python,django,django-templates,django-views
35,943,837
1
true
1
0
First of all, forget about apps here; they have nothing to do with anything. An app is just a collection of models and views, it has no relationship to what can be shown on a page. Your issue is that a single view is exclusively responsible for rendering a page. Django calls a view in response to a request at a particu...
1
0
0
I have two different apps, recipe and comment. I have a DetailView in the recipe app which points to url(r'^(?P<pk>\d+)/$', RecipeDetailView.as_view(), name='recipe-detail') which is also in the recipe app url file. I also have a CreateView in my views.py file in my comment app. How can i put this CreateView which is ...
CreateView and ListView from different apps on the same page.
1.2
0
0
188
35,944,725
2016-03-11T16:01:00.000
3
0
0
0
python,random,machine-learning,scikit-learn,evaluation
35,948,671
1
true
0
0
If the random_state affects your results it means that your model has a high variance. In case of Random Forest this simply means that you use too small forest and should increase number of trees (which due to bagging - reduce variance). In scikit-learn this is controlled by n_estimators parameters in the constructor. ...
1
2
1
Can someone explain why does the random_state parameter affects the model so much? I have a RandomForestClassifier model and want to set the random_state (for reproducibility pourpouses), but depending on the value I use I get very different values on my overall evaluation metric (F1 score) For example, I tried to fit ...
random_state parameter in classification models
1.2
0
0
743
35,946,190
2016-03-11T17:18:00.000
4
0
1
0
python,list,decimal
35,946,213
3
true
0
0
Use list(map(int, list)) or [int(x) for x in list] Don't use list as a variable name, though, because it conflicts with the built-in type. Also, it isn't very descriptive. The name you use depends on its purpose, but just don't use names that overwrite the built-in types.
1
1
0
this should be very easy but I'm struggling, I'm just trying to remove the decimal place from each number in this list: list = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0] The method I tried was: int(list) and round(list) but neither worked as only length-1 arrays can be converted to Python scalars Can anybody a...
Removing decimal point from list
1.2
0
0
3,907
35,948,834
2016-03-11T19:57:00.000
1
0
0
0
python,django,amazon-web-services,edx,openedx
36,759,310
1
false
1
0
This one works ami-7de8981d (us-east). Login with ssh as the 'ubuntu' user. Studio is on port 18010 and the LMS is on port 80.
1
1
0
I have installed Open edX (Dogwood) on an EC2 ubuntu 12.04 AMI and, honestly, nothing works. I can sign up in studio, and create a course, but the process does not complete. I get a nice page telling me that the server has an error. However, the course will show up on the LMS page. But, I cannot edit the course in Stu...
Open edX Dogwood problems
0.197375
1
0
226
35,952,511
2016-03-12T01:06:00.000
0
0
1
0
python,django,virtualenv
35,952,928
2
false
1
0
It's also good practice to make a requires.txt file for all your dependencies. If for example your project requires Flask and pymongo, create a file with: Flask==<version number you want here> pymongo==<version number you want here> Then you can install all the necessary libraries by doing: pip install -r requires.tx...
1
0
0
I'm trying to use virtualenv in my new mainly Python project. The code files are located at ~/Documents/Project, and I installed a virtual environment in there, located at ~/Documents/Project/env. I have all my packages and libraries I wanted in the env/bin folder. The question is, how do I actually run my Python scrip...
How to use virtualenv in Python project?
0
0
0
2,126
35,956,180
2016-03-12T09:58:00.000
-1
0
1
0
python,windows,gcc,mingw,msys2
41,492,215
3
false
0
0
sys.platform gives msys when in msys-Python.
1
2
0
I am using python in the MSYS2 environment. The MSYS2 has its own built MINGW python version. Also I can install the official python from the www.python.org. Here is the problem: If I want to write a python code need to know the python version is MINGW or the official one, how can I do it? Here are some ways I can imag...
How to determine the python is mingw or official build?
-0.066568
0
0
2,041
35,956,650
2016-03-12T10:45:00.000
0
0
1
1
python,ide,version
35,998,142
1
false
0
0
Install latest Python. Go to your Project menu and Project Properties. Change the Python Executable to use Python 3.5 or whatever. Press OK. You might need to restart Wing's Python Shell, but other than that, you should be set. If you want all projects to default to the latest, you will have to set up your OS to defaul...
1
0
0
How do I change from Python 2.7.10 to the latest version in Wingware Python IDE?
Wingware Python IDE: How do I change from Python 2.7.10 to the latest version?
0
0
0
882
35,956,868
2016-03-12T11:08:00.000
2
0
1
1
python-3.x
36,860,451
1
false
0
0
Recsys is not supported by python 3.X but only python 2.7.
1
1
0
I am trying to install python-recsys module. But i get this error Could not find a version that satisfies the requirement python-recsys (from versions: ) No matching distribution found for python-recsys I am using Python 3.4 The code that i am using to install the module is: pip.exe install python-recsys
Unable to install python-recsys module
0.379949
0
0
490
35,958,961
2016-03-12T14:36:00.000
6
0
1
0
python,python-3.x
35,959,061
2
false
0
0
The python hierarchy is Type (Metaclass) -> Class -> Instance. Think of the function type() as going one level up. If you use the function type() on an instance of an int (any integer) like so: type(123) you will receive the class of the instance which in this case is int. If you will use type() on the class int, you w...
1
28
0
I just recently started to teach myself how to code. I am currently reading Think Python 2 for python 3 and when it teaches about the type() function, it gives the example type(2) which outputs <class 'int'>. It then states that "the word 'class' is used in the sense of a category; a type is a category of values." Th...
Class vs. Type in Python
1
0
0
15,624
35,959,580
2016-03-12T15:30:00.000
8
0
1
1
python,python-2.7
35,959,633
1
true
0
0
Listing directories using a bytestring path on Windows produces directory entries encoded to your system locale. This encoding (done by Windows), can fail if the system locale cannot actually represent those characters, resulting in placeholder characters instead. The underlying filesystem, however, can handle the full...
1
2
0
I am using os.walk to traverse a folder. There are some non-ascii named files in there. For these files, os.walk gives me something like ???.txt. I cannot call open with such file names. It complains [Errno 22] invalid mode ('rb') or filename. How should I work this out? I am using Windows 7, python 2.7.11. My system ...
Non ascii file name issue with os.walk
1.2
0
0
1,175
35,961,414
2016-03-12T18:07:00.000
1
1
0
0
php,python,apache,perl,privileges
35,962,761
1
false
0
0
So after I posted this I looked into Handlers like I use for IIS. That led me down the path of SUEXEC and through everything I tried I couldn't get Apache to load it. Even made sure that I set the bits for SETUID and SETGID. When I was researching that I ran across .htaccess files and how they can enable CGI scripts. ...
1
0
0
Another way I could ask this question is: How do I set pages served by Apache to have higher privileges? This would be similar to me setting an Application Pool in IIS to use different credentials. I have multiple Perl and Python scripts I am publishing through a web front end. The front end is intended to run any scri...
Perl/Python Scripts Fail to Access Internet/Network through Web GUI
0.197375
0
1
79
35,962,581
2016-03-12T19:55:00.000
1
0
0
0
python,django,server
35,962,887
1
true
1
0
manage.py runserver is only used to speed your development process, it shouldn't be run on your server. It's similar to the newly introduced php's built-in server php -S host:port. Since you're coming from PHP you can use apache with mod_wsgi in order to serve your django application, there are a lot of tutorials onlin...
1
0
0
This might be a very dumb question, so please bear with me (there's also no code included either). Recently, I switched from PHP to Python and fell in love with Django. Locally, everything works well. However, how are these files accessed when on a real server? Is the manage.py runserver supposed to be used in a server...
Python development: Server Handling
1.2
0
0
42
35,963,580
2016-03-12T21:34:00.000
0
0
1
0
python,pandas,datanitro
35,964,006
1
false
0
0
DataNitro is probably using a different copy of Python on your machine. Go to Settings in the DataNitro ribbon, uncheck "use default Python", and select the Canopy python directory manually. Then, restart Excel and see if importing works.
1
1
1
when I try to import pandas using the data nitro shell, I get the error that there is no module named pandas. I have pandas through the canopy distribution, but somehow the data nitro shell isn't "finding" it. I suspect this has to do with the directory in which pandas is stored, but I don't know how to "extract" pan...
Can't find pandas in data nitro
0
0
0
193
35,964,324
2016-03-12T22:52:00.000
0
0
0
0
python,cassandra,resultset
35,969,262
1
false
0
0
There is no magic, you'll need to: create a prepare statement for INSERT ... INTO tableB ... on each ResultSet from table A, extract the values and create a bound statement for table B, then execute the bound statement for insertion into B You can use asynchronous queries to accelerate the migration a little bit but ...
1
0
0
I am using the python cassandra-driver to execute queries on a cassandra database and I am wondering how to re-insert a ResultSet returned from a SELECT query on table A to a table B knowing that A and B have the same columns but a different primary keys. Thanks in advance
Cassandra python driver - how to re-insert a ResultSet
0
1
0
294
35,964,994
2016-03-13T00:16:00.000
0
0
1
0
python,macos,scikit-learn,pycharm,tensorflow
47,130,715
5
false
0
0
I had a similar problem. My code was was not working on PyCharm professional. I had PyCharm CE previously installed and it worked from there. I had configured PyCharm CE a while ago and I had forgotten what setup I used but if issues persist, make sure that the packages are installed under Preferences > Project > Proje...
4
2
1
I have installed the packages TensorFlow and scikit_learn and all its dependencies. When I try importing them using python 2.7.6 or 2.7.10 (I have tried both) in the terminal, it works fine. However, when I do it using pycharm it gives an error. In the case of scikit_learn with the launcher 2.7.6 says: ImportError: dy...
pycharm error while importing, even though it works in the terminal
0
0
0
2,043
35,964,994
2016-03-13T00:16:00.000
0
0
1
0
python,macos,scikit-learn,pycharm,tensorflow
40,260,973
5
true
0
0
At the end, I ended up creating a virtual environment, reinstalling everything in there, and calling it through pycharm. I am not entirely sure what was the problem between conda and pycharm, I probably messed up somewhere. I am now using a different virtual environment depending on the project and I am happier than e...
4
2
1
I have installed the packages TensorFlow and scikit_learn and all its dependencies. When I try importing them using python 2.7.6 or 2.7.10 (I have tried both) in the terminal, it works fine. However, when I do it using pycharm it gives an error. In the case of scikit_learn with the launcher 2.7.6 says: ImportError: dy...
pycharm error while importing, even though it works in the terminal
1.2
0
0
2,043
35,964,994
2016-03-13T00:16:00.000
0
0
1
0
python,macos,scikit-learn,pycharm,tensorflow
40,121,055
5
false
0
0
Add this 'DYLD_LIBRARY_PATH=/usr/local/cuda/lib' to Python environment variable. Run-> Edit Configurations -> Environment variables. Hope it works.
4
2
1
I have installed the packages TensorFlow and scikit_learn and all its dependencies. When I try importing them using python 2.7.6 or 2.7.10 (I have tried both) in the terminal, it works fine. However, when I do it using pycharm it gives an error. In the case of scikit_learn with the launcher 2.7.6 says: ImportError: dy...
pycharm error while importing, even though it works in the terminal
0
0
0
2,043
35,964,994
2016-03-13T00:16:00.000
0
0
1
0
python,macos,scikit-learn,pycharm,tensorflow
38,749,298
5
false
0
0
you should start PyCharm from terminal cd /usr/lib/pycharm-community/bin ./pycharm.sh
4
2
1
I have installed the packages TensorFlow and scikit_learn and all its dependencies. When I try importing them using python 2.7.6 or 2.7.10 (I have tried both) in the terminal, it works fine. However, when I do it using pycharm it gives an error. In the case of scikit_learn with the launcher 2.7.6 says: ImportError: dy...
pycharm error while importing, even though it works in the terminal
0
0
0
2,043
35,965,427
2016-03-13T01:29:00.000
3
0
1
0
python,uninstallation
35,965,537
1
false
0
0
Find the uninstall shortcut link in the python folder on win start menu Or in Python's install folder, then uninstall it. If you can not find either, I think you should just delete the python install folder, then everything should be ok after you install the python x64. Because for many program just the files in inst...
1
3
0
I have Windows 7 64 Bit. By mistake I installed Python 3.5 32 bit. I want to uninstall it (for installing 64 Bit version) but dont know how to do it (It does not get uninstalled from Control Panel -> Uninstall a Program). I googled it and found some links but could not understand / was not able to do it. Please help.
Python 3.5 uninstall Windows 7
0.53705
0
0
9,697
35,966,578
2016-03-13T04:43:00.000
-1
0
0
0
python
35,966,622
2
false
0
1
I would try using lambda: before the command. For instance, replace readFile(file) with lambda: readFile(file). This will ensure an anonymous ("lambda") function with no parameters is passed, which upon execution will run the intended code. Otherwise, the function is executed once when the behavior is set, then the ret...
1
0
0
So, I'm creating a client manager software for a local club. I'm using Python 3.5.1 and Tkinter. Used a Notebook to nest my Frames. On my first frame I made the form to add new clients (labels and textboxes) and an "add" button at the end. Problem is that it executes the function associated with the button insted of on...
Python 3.5.1, Tkinter: Functions execute on start instead of button click
-0.099668
0
0
451
35,968,464
2016-03-13T09:08:00.000
0
0
0
0
python,image,crash,save,pygame
51,588,818
1
false
0
1
Are you on windows or on mac? If you're on windows look if you wrote the location like this "\folder\thing.png", that's an error because you put the starting "\". Remove that and try again.
1
1
0
I have written a program in Python which draws parts of the Mandelbrot set using pygame. However, when I leave it running to generate for a long time and then save the file I get this error: pygame.error: SavePNG: could not open for writing I'm not sure why this would happen and saving works fine usually. Perhaps w...
pygame.error: SavePNG: could not open for writing?
0
0
0
1,146
35,968,682
2016-03-13T09:35:00.000
1
1
1
0
python,fortran,profiling,f2py
35,970,843
1
true
0
0
At last I found out -DF2PY_REPORT_ATEXIT option can report wrapper performance.
1
0
0
I am currently writing a time consuming python program and decided to rewrite part of the program in fortran. However, the performance is still not good. For profiling purpose, I want to know how much time is spent in f2py wrappers and how much time is actual spent in fortran subroutines. Is there a convenient way to a...
How to obtain how much time is spent in f2py wrappers
1.2
0
0
82
35,972,196
2016-03-13T15:37:00.000
1
0
1
1
ipython-notebook,jupyter-notebook
35,972,367
1
true
0
0
maybe it's not there? you can create it first, in Mac's terminal touch $HOME/.ipython/profile_default/ipython_notebook_config.py and then open it in TextWranggler open -a /Applications/TextWrangler.app $HOME/.ipython/profile_default/ipython_notebook_config.py
1
1
0
I am attempting to install ipython notebook based on some instructions. However, while I tried to execute this 'In your favorite editor, open the file $HOME/.ipython/profile_default/ipython_notebook_config.py', I can't really open a file from TextWrangler. I am not familiar with this. Could anyone help me out there? Th...
Installing iPython Notebook - opening a $HOME file from editor
1.2
0
0
48
35,973,590
2016-03-13T17:45:00.000
-1
0
0
0
python,apache-spark,pyspark,partitioning,rdd
44,932,978
2
false
0
0
I recently used partitionby. What I did was restructure my data so that all those which I want to put in same partition have the same key, which in turn is a value from the data. my data was a list of dictionary, which I converted into tupples with key from dictionary.Initially the partitionby was not keeping same keys...
1
11
1
I understand that partitionBy function partitions my data. If I use rdd.partitionBy(100) it will partition my data by key into 100 parts. i.e. data associated with similar keys will be grouped together Is my understanding correct? Is it advisable to have number of partitions equal to number of available cores? Doe...
pyspark partitioning data using partitionby
-0.099668
0
0
23,512
35,974,213
2016-03-13T18:41:00.000
0
0
1
0
python,logging
71,525,953
2
false
0
0
You may now use logging.setLoggerClass(klass). Trouble is still how to manage this in shared hosted environments (e.g. Flask, FastAPI, ...), but if you 'own' the env, you can alter its global props. Also make sure that you replace only loggers for your own module...
1
1
0
The LoggerAdapter class in python is used for providing contextual information to messages logged. After subclassing it, the subclass can be used in place of a logger, and the subclass can intercept and modify/augment the message being logged. Is it possible to make logging.getLogger(name) return that custom LoggerAda...
Can I make python's logging.getLogger return a LoggerAdapter?
0
0
0
546
35,974,957
2016-03-13T19:48:00.000
0
0
0
0
python,scikit-learn,backpropagation,momentum
37,115,845
2
true
0
0
If anybody ever needs an answer for this, I actually decided to run everything on a Linux VM. I then followed the instructions to install the dev version and everything(well almost) worked perfectly. Running it on Linux is way easier than Windows because you can just install the package from git and run it without havi...
1
1
1
I'm trying to use Scikit-Learn's Neural Network to classify my dataset using a Backpropagation with Momentum. I need to specify these parameters: Hidden neurons, Hidden layers, Training set, Learning rate and Momentum. I found MLPClassifier in Sklearn.neural_network package. The problem is that this package is part of...
Backpropagation with Momentum using Scikit-Learn
1.2
0
0
903
35,976,192
2016-03-13T21:38:00.000
0
0
0
0
python,python-2.7,matrix,vector,linear-algebra
35,976,436
1
true
0
0
I managed to fix it by using a temp variable, setting it to correct size, and iterating over dsdb1. i still don't know what caused the bug.
1
0
1
This is probably a rookie mistake that I'm missing somewhere but I can't for the life of me find anything related to my problem on the web. I have a vector b1 of size 5 by 1, and i have another vector dsdb1 which is also 5 by 1. When I write b1 += tau*dsdb1 I get the error "non-broadcastable output operand with shape (...
vector changes to matrix at computation
1.2
0
0
23
35,979,063
2016-03-14T03:25:00.000
0
1
0
0
python,bdd,python-behave
35,988,255
1
true
0
0
No there is not, you would have to write your own runner to do that. But that would be complex to do as trying to piece together content of two separate test runs, which are half of each other would be rather complex if any errors are to show up. A better and faster solution will be to write a simple bash/python script...
1
0
0
We have two machines with the purpose to split our testing across machines to make testing faster. I would like to know of a way to tell behave to run half of the tests. I am aware of the --tags argument but this is too cumbersome as, when the test suite grows, so must our --tags argument if we wish to keep it at the h...
How to run only half of python-behave tests
1.2
0
0
224
35,981,771
2016-03-14T07:30:00.000
1
0
1
0
python-3.x
35,981,995
1
true
0
0
You can use the chr and ord classes to convert between numbers and characters. In this case, given a binary number, you'll also need to use the int class to convert from a binary string to a Python integer. For example: >>> chr(int("00010010", 2)) '\x12' This gives the ascii character of the given input. Note that the...
1
2
0
For example if I had the value '00010010' how would a simple function just print it as "H"? Other answer seem to be rather complicated or don't work at all
Simply, what is a way to print ascii character from binary values in python3?
1.2
0
0
738
35,983,632
2016-03-14T09:23:00.000
3
0
0
0
python,mysql,django,flask,primary-key
35,983,791
1
true
0
0
You certainly could do this. One issue though is that since this can't be set by the database itself, you'll need to write some Python code to ensure it is set on save. Since you're not using MongoDB, though, I wonder why you want to use a BSON id. Instead you might want to consider using UUID, which can indeed be set ...
1
0
0
I am thinking if I don't use auto id as primary id in mysql but use other method to implement, may I replace auto id from bson.objectid.ObjectId in mysql? According to ObjectId description, it's composed of: a 4-byte value representing the seconds since the Unix epoch a 3-byte machine identifier a 2-byte process id a ...
May I use bson.objectid.ObjectId as (primary key) id in sql?
1.2
1
0
373
35,986,526
2016-03-14T11:38:00.000
2
0
0
0
python,sqlite,server
35,986,703
1
true
0
1
Do u want to connect to sqlite database server? SQLite Is Serverless. It stores your data in a file. U should use maria db for db server. Or u can store your sqlite database file in a network shared drive or cloud or...
1
0
0
I made a program with using sqlite3 and pyqt modules. The program can be used by different persons simultaneously. Actually I searched but I did not know and understand the concept of server. How can i connect this program with a server. Or just the computers that have connections with the server is enough to run the p...
How to connect my app with the database server
1.2
1
0
59
35,987,785
2016-03-14T12:39:00.000
0
0
0
1
python,python-2.7,google-app-engine,scikit-learn
52,134,247
3
false
0
0
The newly-released 2nd Generation Python 3.7 Standard Environment (experimental) can run all modules. It's still in beta, though.
1
8
1
I am trying to deploy a python2.7 application on google app engine. It uses few modules like numpy,flask,pandas and scikit-learn. Though I am able to install and use other modules. Installing scikit-learn in lib folder of project give following error:- Traceback (most recent call last): File "/base/data/home/runtimes/p...
Using Scikit-learn google app engine
0
0
0
1,664
35,987,855
2016-03-14T12:42:00.000
-1
0
0
0
python,jenkins,jenkins-plugins,jenkins-cli
36,003,452
2
true
0
0
User matrix can be get by using {jenkins_url}/computer/(master)/config.xml request. After that you can parse it and create list of users with permissions.
1
1
0
I need to get users access matrix for Jenkins users using Python. What is endpoint for REST API ?
Jenkins get user access Matrix
1.2
0
1
871
35,989,119
2016-03-14T13:40:00.000
1
0
1
1
python,fortran,profiling,cpu-usage,lapack
36,002,334
1
true
0
0
Operating systems are constantly switching out what is running at any given moment. Your program will run for a while, but eventually there will be an interrupt, and the system will switch to something else, or it may just decide to run something else for a second or two, then switch back. It is difficult to force an o...
1
2
0
I wrote a time-consuming python program. Basically, the python program spends most of its time in a fortran routine wrapped by f2py and the fortran routine spends most of its time in lapack. However, when I ran this program in my workstation, I found 80% of the cpu time was user time and 20% of cpu time was system time...
why is my program using system cpu time?
1.2
0
0
215
35,991,038
2016-03-14T15:03:00.000
1
0
0
0
wxpython,wxwidgets
35,992,362
1
true
0
1
No, the only possibilities here are using a custom shape or SetTransparent() but the latter can only set the transparency uniformly. SetTransparent() could probably be extended to be more flexible, but so far nobody has done it.
1
0
0
Is there a way to cut a transparent rectangle in the background of a wxFrame to see the desktop or other windows behind that rect? Custom shape is not an option since I want to capture mouse events there too.
Transparent hole in wxFrame background
1.2
0
0
107
35,991,312
2016-03-14T15:15:00.000
1
0
0
0
python,pycharm
38,564,886
1
false
0
0
Database support available only in paid Jetbrains IDEs
1
0
0
I am not getting Database tool window under View-> Tool Windows, in pyhcharm community version software, so that I can connect to MYSQL server database. Also,please suggest me if there is other ways by which I can connect to MY SQL server database using pycharm community version.
Unable to connect to MYSQL server database using pycharm community (2.7.11)
0.197375
1
0
493
35,991,403
2016-03-14T15:20:00.000
31
0
1
0
python,pip,package,installation
41,852,419
30
false
0
0
I got stuck exactly with the same error with psycopg2. It looks like I skipped a few steps while installing Python and related packages. sudo apt-get install python-dev libpq-dev Go to your virtual env pip install psycopg2 (In your case you need to replace psycopg2 with the package you have an issue with.) It worked ...
8
360
0
I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\ How can I solve this?
"pip install unroll": "python setup.py egg_info" failed with error code 1
1
0
0
878,063
35,991,403
2016-03-14T15:20:00.000
3
0
1
0
python,pip,package,installation
42,803,623
30
false
0
0
I had the same problem. The problem was: pyparsing 2.2 was already installed and my requirements.txt was trying to install pyparsing 2.0.1 which throw this error Context: I was using virtualenv, and it seems the 2.2 came from my global OS Python site-packages, but even with --no-site-packages flag (now by default in la...
8
360
0
I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\ How can I solve this?
"pip install unroll": "python setup.py egg_info" failed with error code 1
0.019997
0
0
878,063
35,991,403
2016-03-14T15:20:00.000
2
0
1
0
python,pip,package,installation
41,725,563
30
false
0
0
I tried all of the above with no success. I then updated my Python version from 2.7.10 to 2.7.13, and it resolved the problems that I was experiencing.
8
360
0
I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\ How can I solve this?
"pip install unroll": "python setup.py egg_info" failed with error code 1
0.013333
0
0
878,063
35,991,403
2016-03-14T15:20:00.000
0
0
1
0
python,pip,package,installation
54,057,248
30
false
0
0
Had the same problem on my Win10 PC with different packages and tried everything mentioned so far. Finally solved it by disabling Comodo Auto-Containment. Since nobody has mentioned it yet, I hope it helps someone.
8
360
0
I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\ How can I solve this?
"pip install unroll": "python setup.py egg_info" failed with error code 1
0
0
0
878,063
35,991,403
2016-03-14T15:20:00.000
0
0
1
0
python,pip,package,installation
58,241,852
30
false
0
0
Methods to solve setup.pu egg_info issue when updating setuptools or not other methods doesnot works. If CONDA version of the library is available to install use conda instead of pip. Clone the library repo and then try installation by pip install -e . or by python setup.py install
8
360
0
I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\ How can I solve this?
"pip install unroll": "python setup.py egg_info" failed with error code 1
0
0
0
878,063
35,991,403
2016-03-14T15:20:00.000
0
0
1
0
python,pip,package,installation
66,668,331
30
false
0
0
upgrading python's version did the work for me.
8
360
0
I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\ How can I solve this?
"pip install unroll": "python setup.py egg_info" failed with error code 1
0
0
0
878,063
35,991,403
2016-03-14T15:20:00.000
0
0
1
0
python,pip,package,installation
49,075,069
30
false
0
0
Upgrading Python to version 3 fixed my problem. Nothing else did.
8
360
0
I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\ How can I solve this?
"pip install unroll": "python setup.py egg_info" failed with error code 1
0
0
0
878,063
35,991,403
2016-03-14T15:20:00.000
0
0
1
0
python,pip,package,installation
70,627,263
30
false
0
0
I have just encountered the same problem when trying to pip install -e . a new repo. I did not notice that the contents of setup.py haven't been saved properly and I was effectively running the command with an empty setup.py. Hence you may experience the same error message if the setup.py of the target package is eithe...
8
360
0
I'm new to Python and have been trying to install some packages with pip. But pip install unroll gives me Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\ How can I solve this?
"pip install unroll": "python setup.py egg_info" failed with error code 1
0
0
0
878,063
35,999,344
2016-03-14T22:30:00.000
4
0
0
1
python-3.x,tkinter
35,999,383
6
false
0
1
Run Tkinter.TclVersion or Tkinter.TkVersion and if both are not working, try Tkinter.__version__
2
27
0
Hi have been scavenging the web for answers on how to do this but there was no direct answer. Does anyone know how I can find the version number of tkinter?
How to determine what version of python3 tkinter is installed on my linux machine?
0.132549
0
0
40,994
35,999,344
2016-03-14T22:30:00.000
5
0
0
1
python-3.x,tkinter
63,566,647
6
false
0
1
Type this command on the Terminal and run it. python -m tkinter A small window will appear with the heading tk and two buttons: Click Me! and QUIT. There will be a text that goes like This is Tcl/Tk version ___. The version number will be displayed in the place of the underscores.
2
27
0
Hi have been scavenging the web for answers on how to do this but there was no direct answer. Does anyone know how I can find the version number of tkinter?
How to determine what version of python3 tkinter is installed on my linux machine?
0.16514
0
0
40,994
36,001,080
2016-03-15T01:25:00.000
2
0
0
0
android,python,android-ndk,cocos2d-x
36,012,463
5
true
0
1
There are some changes made on the new NDK r11 release and some tools were moved to different folders, I guess cocos2d-x scripts need to be updated to support the latest NDK release. You can wait for a new cocos2d-x release or use the previous NDK (r10e) version.
5
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
NDK_ROOT path for ndk r11 in Cocos2d-x
1.2
0
0
3,355
36,001,080
2016-03-15T01:25:00.000
0
0
0
0
android,python,android-ndk,cocos2d-x
36,040,698
5
false
0
1
Try adding a "\" at the end. I know it sounds silly, but I had the same problem when setting up on my MacOs. Beyond that, see if you'll encounter other problems like.... wrong toolchain version when compiling
5
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
NDK_ROOT path for ndk r11 in Cocos2d-x
0
0
0
3,355
36,001,080
2016-03-15T01:25:00.000
0
0
0
0
android,python,android-ndk,cocos2d-x
36,001,423
5
false
0
1
I know android studio should set you ndk path in local.properties,there is the setting: ndk.dir=C:\android-ndk-r10e sdk.dir=C:\Studio_SDK
5
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
NDK_ROOT path for ndk r11 in Cocos2d-x
0
0
0
3,355
36,001,080
2016-03-15T01:25:00.000
1
0
0
0
android,python,android-ndk,cocos2d-x
38,472,553
5
false
0
1
if you want to set relative path that work on all other fellow system without changing again and again then set ndk root path in such a way. NDK_ROOT="$APP_ROOT/../your ndk name" your ndk is placed one directory behind the proj.android file.
5
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
NDK_ROOT path for ndk r11 in Cocos2d-x
0.039979
0
0
3,355
36,001,080
2016-03-15T01:25:00.000
0
0
0
0
android,python,android-ndk,cocos2d-x
36,167,731
5
false
0
1
I have figured out that at the time of this post, the NDK11 has just been released and the current version of Cocos2dx does not support it. I had to find a download link elsewhere to download an older version.
5
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
NDK_ROOT path for ndk r11 in Cocos2d-x
0
0
0
3,355
36,002,241
2016-03-15T03:34:00.000
0
0
1
0
python,scip
36,006,957
1
true
0
0
Please make sure to be in a different directory than from where you installed the interface. Python gets confused when trying to import something when there is a directory of the same name in the current directory. Please go into the subdirectory scip/interfaces/python/tests and try running the provided test files.
1
0
0
I am trying to use scip's python interface. I have already downloaded the python interface and installed it according to the instructions given in Python interface for the SCIP Optimization Suite. However, when I try to import pyscipopt to python, there is an ImportError:No module named 'pyscipopt.scip'. I'm using sci...
Cannot import pyscipopt into python (ubuntu)
1.2
0
0
504
36,003,924
2016-03-15T06:15:00.000
0
0
0
0
python,scip
36,008,452
1
false
0
0
This is currently not supported. You need to loop through your quadratic constraints and add them one after the other using the expression method.
1
0
1
How do I add a quadratic constraint using the scip python interface? In one of the examples, I see something like model.addCons(x*x+y*y<=6) However, since I have a lot of variables(x1..xn and my constraint is of the form x'Qx<=0.2, where x is n*1 and Q is n*n), this method is rather impossible. How can I put the quadra...
How do I add a quadratic constraint using coeff in the scipsuite python interface
0
0
0
103
36,006,701
2016-03-15T09:05:00.000
0
0
1
0
python,resources
36,007,180
4
false
0
0
No, it is not considered wasteful to define a class. By far the most important consideration in 99.9% of programs is clarity of the code. Write the code that best expresses your idea.
1
1
0
When considering a creation of a class in python just for having some attributes defined, as far as i understand, one should consider using a better data type like namedtuple which is considered more efficient. my question - is it true that in such cases its better using namedtuple or maybe a dict ? is it true that a p...
Is generating a python class considered wasteful with regard to resources?
0
0
0
48
36,007,373
2016-03-15T09:34:00.000
1
0
1
0
python-2.7,tkinter,exe
36,943,399
2
false
0
1
There were multiple issues associated with converting the Python Script that links modules through button clicks. Keeping in mind these factors, it would be best to convert it to exe using Cx_Freeze. It is more user-friendly and was highly effective for the GUI when compared to PyInstaller and Py2Exe.
2
1
0
I have created a GUI on Python 2.7.11 that consists of a main page along with page 1 and page 2 that are linked through buttons on main page. Converted main page to a python exe file using PyInstaller and there were no errors in the conversion. main page.exe appeared in the dist folder but on clicking it, a DOS screen ...
Tkinter exe file - DOS screen flashes but GUI does not persist
0.099668
0
0
265
36,007,373
2016-03-15T09:34:00.000
1
0
1
0
python-2.7,tkinter,exe
36,009,578
2
true
0
1
If you've got a line like root.mainloop() at the end (with root standing for your main Tk window) to make sure the event loop runs, then you'll need to debug your code. Try running a small segment of the code at a time to see if all goes well, and see where it is that all doesn't go well; then examine the offending par...
2
1
0
I have created a GUI on Python 2.7.11 that consists of a main page along with page 1 and page 2 that are linked through buttons on main page. Converted main page to a python exe file using PyInstaller and there were no errors in the conversion. main page.exe appeared in the dist folder but on clicking it, a DOS screen ...
Tkinter exe file - DOS screen flashes but GUI does not persist
1.2
0
0
265
36,007,774
2016-03-15T09:51:00.000
1
0
1
0
python,macos,module,installation
36,007,983
1
true
0
0
You can do this if pip version >=1.5 $ pip2.6 install package $ pip3.3 install package if pip version is between 0.8 and 1.5 this will work $ pip-2.7 install package $ pip-3.3 install package
1
0
0
I'm working on mac OS X and I have both Python 2.7 and 3.3 on it. I want to install pykml module and i successfully installed it on python 3.3, but how do I do the same for Python 2.7?
Install module in Python 2.7 and not in Python 3.3
1.2
0
0
66
36,009,435
2016-03-15T11:04:00.000
1
0
1
0
python,priority-queue
36,012,130
1
true
0
0
I think the best approach is to have a separate heap for each keys. When you remove the first element of one heap, you can't efficiently remove it from the other heaps, but you can "mark" it in some way (e.g. by mutating it, or by adding it to a set if it's hashable) so that it can be ignored if it eventually gets popp...
1
0
0
I have run into a problem which I am pretty certain somebody has allready encountered and solved, but I just can't find a solution. I have a number of objects, each object has several keys. Say: (1, 2): A (3, 3): B (4, 4): C (5, 1): D I need a "priority queue"-like data structure which lets me efficiently return ob...
Efficient priority queue with multiple keys?
1.2
0
0
1,141
36,012,450
2016-03-15T13:16:00.000
2
1
0
0
python-3.x,rabbitmq,pika
36,022,628
1
true
0
0
No, but you can disable heartbeats eandersson is right, no you can't do that. but disabling heartbeats is probably the wrong idea, too. the point of a heartbeat is to tell you when your connection to the server drops, so you can take action as soon as possible. common actions include (but are not limited to): crash t...
1
1
0
Is there a way to configure RabbitMq to not close connections after missed heartbeats at all?
Is there a way to configure RabbitMq to not close connections after missed heartbeats?
1.2
0
0
117
36,018,586
2016-03-15T17:51:00.000
3
0
0
0
python,scikit-learn,svm,cross-validation,grid-search
36,019,131
1
true
0
0
Overfitting is generally associated with high variance, meaning that the model parameters that would result from being fitted to some realized data set have a high variance from data set to data set. You collected some data, fit some model, got some parameters ... you do it again and get new data and now your parameter...
1
3
1
I have an rbf SVM that I'm tuning with gridsearchcv. How do I tell if my good results are actually good results or whether they are overfitting?
Identifying overfitting in a cross validated SVM when tuning parameters
1.2
0
0
1,516
36,019,161
2016-03-15T18:21:00.000
4
1
0
1
python,amazon-web-services,amazon-ec2,cron,aws-cli
36,037,353
2
false
1
0
The EC2 service stores a LaunchTime value for each instance which you can find by doing a DescribeInstances call. However, if you stop the instance and then restart it, this value will be updated with the new launch time so it's not really a reliable way to determine how long the instance has been running since it's o...
1
4
0
I am looking for a way to programmatically kill long running AWS EC2 Instances. I did some googling around but I don't seem to find a way to find how long has an instance been running for, so that I then can write a script to delete the instances that have been running longer than a certain time period... Anybody deal...
Is there a way to determine how long has an Amazon AWS EC2 Instance been running for?
0.379949
0
0
3,416
36,022,384
2016-03-15T21:19:00.000
2
0
0
0
python,sqlite
36,030,685
1
true
0
0
SQLite computes each result row on demand, so it is neither possible to go back to an earlier row, nor to determine how many following rows there will be. The only way to go back is to re-execute the query. Alternatively, call fetchall() first, and then use the returned list instead of the cursor.
1
2
0
If cursor.execute('select * from users') returns a 4 row set, and then cursor.fetchone(), is there a way to re-position the cursor to the beginning of the returned results so that a subsequent cursor.fetchall() gives me all 4 rows? Or do I need to the cursor.execute again, and then cursor.fetchall()? This seems awkwar...
Python & SQLite: fetchone() and fetchall() and cursor control
1.2
1
0
1,900
36,022,867
2016-03-15T21:48:00.000
0
0
1
0
python,amazon-s3,pip
62,367,203
3
false
0
0
What about wrapping up the whl file (e.g. yourpkg-1.0-py3-none-any.whl) inside another zip file (e.g. yourpkg.zip) with a deterministic name. Then you can set up some cron scripts to check locally whether the deterministic key has a new s3 file, and if so then unzip the whl and install it.
1
21
0
we are trying to come up with a solution to have AWS S3 to host and distribute our Python packages. Basically what we want to do is using python3 setup.py bdist_wheel to create a wheel. Upload it to S3. Then any server or any machine can do pip install $http://path/on/s3. (including a virtualenv in AWS lambda) (We've l...
If we want use S3 to host Python packages, how can we tell pip where to find the newest version?
0
0
0
13,564
36,024,460
2016-03-15T23:57:00.000
0
0
0
0
python,arrays,numpy
43,882,395
2
false
0
0
You should not append arrays, if you can avoid, due to efficiency issues. Appending means changing the allocated memory size, which can run into non-contiguous memory space, hence inefficient allocation or reallocation would be necessary. These can slow down your program a lot, specially for large arrays. If you are im...
1
0
1
For starters, I am doing a Runge-Kutta on a three-DOF NumPy array. My array looks like this: states = [[X], [Vx], [Y], [Vy], [Z], [Vz]] I run my Runge-Kutta, and get my four K values, which I transpose with [newaxis]. So when I try to append the new states to my states array as follows: states = append(states, states[:...
Appending to NumPy (Python) Array
0
0
0
536
36,029,866
2016-03-16T08:02:00.000
1
0
0
0
python-2.7,boto,emr,boto3
46,980,003
2
false
1
0
According to the boto3 documentation, yes it does support spot blocks. BlockDurationMinutes (integer) -- The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot ins...
1
4
0
How can I launch an EMR using spot block (AWS) using boto ? I am trying to launch it using boto but I cannot find any parameter --block-duration-minutes in boto, I am unable to find how to do this using boto3.
How can I launch an EMR using SPOT Block using boto?
0.099668
0
1
454
36,033,095
2016-03-16T10:33:00.000
1
0
1
0
python,datetime,matplotlib,python-dateutil
36,033,515
3
false
0
0
First of all it is not an error. It's a warning. Second, most likely the problem is not your problem rather a problem in Matplotlib, which need to fix how they call a function or some method form python-dateutil. Most likely, you can ignore this warning, and it will be fixed in the next Matplotlib version.
3
1
1
Since i've installed the last version of matplotlib (1.5.1), I have the following error when i try to plot values with datetime as X. DeprecationWarning: Using both 'count' and 'until' is inconsistent with RFC 2445 and has been deprecated in dateutil. Future versions will raise an error. Does someone met ths erro...
DeprecationWarning with matplotlib and dateutil
0.066568
0
0
842
36,033,095
2016-03-16T10:33:00.000
1
0
1
0
python,datetime,matplotlib,python-dateutil
36,626,778
3
false
0
0
Best solution : in the file /matplotlib/dates.py, the line 830 : self.rule.set(dtstart=start, until=stop, count=self.MAXTICKS + 1) shall be commented
3
1
1
Since i've installed the last version of matplotlib (1.5.1), I have the following error when i try to plot values with datetime as X. DeprecationWarning: Using both 'count' and 'until' is inconsistent with RFC 2445 and has been deprecated in dateutil. Future versions will raise an error. Does someone met ths erro...
DeprecationWarning with matplotlib and dateutil
0.066568
0
0
842
36,033,095
2016-03-16T10:33:00.000
3
0
1
0
python,datetime,matplotlib,python-dateutil
36,423,287
3
false
0
0
The issue have been fixed on matplotlib, but not released in a finalised version (>= 1.5.2) I had to install the current working version with pip install git+https://github.com/matplotlib/matplotlib
3
1
1
Since i've installed the last version of matplotlib (1.5.1), I have the following error when i try to plot values with datetime as X. DeprecationWarning: Using both 'count' and 'until' is inconsistent with RFC 2445 and has been deprecated in dateutil. Future versions will raise an error. Does someone met ths erro...
DeprecationWarning with matplotlib and dateutil
0.197375
0
0
842
36,037,286
2016-03-16T13:37:00.000
0
0
0
0
python,ios,django,sockets,websocket
36,880,964
1
false
1
0
You can achieve that by using periodically ajax calls from client to server. From documentation: A client wishing to trigger events on the server side, shall use XMLHttpRequests (Ajax), as they are much more suitable, rather than messages sent via Websockets. The main purpose for Websockets is to communicate asy...
1
0
0
I'm working with django-websocket-redis lib, that allow establish websockets over uwsgi in separated django loop. By the documentation I understand well how to send data from server through websockets, but I don't understand how to receive. Basically I have client and I want to send periodically from the client to se...
Receive data on server side with django-websocket-redis?
0
0
1
312
36,039,397
2016-03-16T15:01:00.000
1
0
0
1
python,linux,python-2.7,cx-oracle
36,050,958
3
false
0
0
Yes, you can simply follow these steps: Download the source archive and unpack it somewhere. Run the command "python setup.py build" Copy the library to a location of your choice where you do have access (or you can simply leave it in the build location, too, if you prefer) Set the environment variable PYTHONPATH to p...
2
0
0
Im trying to install cx_oracle with python2.7.11. all the tutorials i found for installing cx_oracle needs root access, however on the vm i dont have root access on the /usr or /etc folders. Is there any way to install cx_oracle in my user directory?
Is there a way to install cx_oracle without root access in linux environment?
0.066568
0
0
1,472
36,039,397
2016-03-16T15:01:00.000
0
0
0
1
python,linux,python-2.7,cx-oracle
36,051,557
3
false
0
0
You a Python virtual environment - this way you do not ever need to use System Privs for adding new functionality to your Python Dev Environment. Look for the command pyvenv - there is lots of info on this.
2
0
0
Im trying to install cx_oracle with python2.7.11. all the tutorials i found for installing cx_oracle needs root access, however on the vm i dont have root access on the /usr or /etc folders. Is there any way to install cx_oracle in my user directory?
Is there a way to install cx_oracle without root access in linux environment?
0
0
0
1,472
36,046,802
2016-03-16T20:58:00.000
1
0
1
0
python
36,046,928
2
false
0
0
The while loop you have above will continue looping unless states[4,i] equals exactly 100,000. False and False or True == True This is likely why you are experiencing the infinite loop. You may want to remove the third case and if necessary, perform other checks inside the loop.
1
0
0
I am trying to run a Python script that calculates the trajectory of an object from the ground up above 100,000-meters then back below 100,000-meters. I want to be able to figure out how much time is spent above 100,000-meters. I have my trajectory code just fine (Runge-Kutta), and I can get up to 100,000-meters. Howev...
Crossing an altitude in Python
0.099668
0
0
72
36,049,690
2016-03-17T00:47:00.000
1
0
0
0
python,scrapy
54,451,026
1
true
1
0
Downgrading to cffi==1.2.1 ended up being the solution for me.
1
6
0
I'm getting the following warning when running a scrapy crawler: C:\Users\dan\Anaconda2\envs\scrapy\lib\site-packages\cffi\model.py:526: UserWarning: 'point_conversion_form_t' has no values explicitly defined; next version will refuse to guess which integer type it is meant to be (unsigned/signed, int/long) % self._g...
CFFI UserWarning: 'point_conversion_form_t' has no values explicitly defined;
1.2
0
0
2,949