Questions tagged [python-2.7]
Python 2.7 is the last major version in the 2.x series, and is no longer maintained since January 1st 2020. Use the generic [python] tag on all Python questions. Do not add this tag simply to convey the version of Python you're using, unless the question concerns an issue specific to Python 2.7.
python-2.7
25,925
questions with no upvoted or accepted answers
18
votes
0
answers
1k
views
robobrowser won't change cookies
I have a POST request sent to server from robobrowser, and the server responds with no data. The response headers are as follows (this is the response from Chrome browser and it's the way it supposed ...
16
votes
1
answer
729
views
How do I update my PromptManager settings for IPython 5.0?
The lines
# Output prompt. '\#' will be transformed to the prompt number
c.PromptManager.out_template = '{color.Green}Out[{count}]{color.Green} : {color.LightGray}'
# Continuation prompt.
c....
14
votes
1
answer
431
views
Openface Flask Wrapper: Flask seems to be blocking a thread
I am trying to write a small flask REST API wrapper around the openface api so that I can POST image URLs to my flask server and have it run a comparison of the image against a classifier model
app = ...
12
votes
1
answer
1k
views
Pandas HD5-query, where expression fails
I want to query a HDF5-file. I do
df.to_hdf(pfad,'df', format='table')
to write the dataframe on disc.
To read I use
hdf = pandas.HDFStore(pfad)
I have a list that contains numpy.datetime64 ...
12
votes
0
answers
2k
views
Compiling Python to a static lib and using pythoncore.lib
I'm trying to build Python 2.7 as a static single .lib file.
I've already made the following changes to the Python source code:
Change to "Release" mode.
Change all DLL projects to Static library (....
11
votes
0
answers
1k
views
How can I spawn processes without fork() in Python 2.7?
Python 3.4+ added multiprocessing.set_start_method('spawn') which allows to create processes that don't share memory with the main process. I'm trying to get this behavior in Python 2.7. Are there any ...
11
votes
0
answers
3k
views
Python, Flask, Elasticbeanstalk Logging
I am trying to use Elasticbeanstalk to deploy a Flask REST API. Logging and the application works with no issues on my test system. However, I am not getting the logs from the ebs instance using the ...
11
votes
0
answers
1k
views
PyCharm: Unable to Move Refactor static methods
(Environment: PyCharm 5.0.2, interepreter: Python 2.7 bundled with OSX 10.10)
Hey folks,
I've been unable to figure out how to get PyCharm to let me do a Move Refactor on a static method. Is this ...
11
votes
0
answers
2k
views
Memory usage during and after drop_duplicates()
I am working with a data frame that takes up roughly 2 Gb of memory (according to htop) with dimensions (6287475,19). The data frame is heterogeneous in data type, which probably does not matter. ...
10
votes
0
answers
5k
views
multiprocessing in python, OSError: [Errno 16] Device or resource busy
I'm testing out the multiprocessing Manager package in python 2.7 and running into a problem that has already been documented for NFS running with Unix (https://bugs.python.org/issue13978). The ...
10
votes
1
answer
1k
views
Django Json field filter throws lookup error
I am using django postgres JSONfield and the model structure is as below
from django.contrib.postgres.fields import JSONField
class JsonAnswer(models.Model):
name = models.CharField(max_length=...
10
votes
1
answer
954
views
Hyperas grid search with a network with multiple inputs
I currently having problems using hyperas optimiser on my network with multiple inputs..
This is how I've implemented it:
def data():
X_train, Y_train = next(train_generator())
X_test, ...
10
votes
1
answer
3k
views
Python: Plotting points and circles on a sphere
For a section of a project I'm working on at University I'm trying to recreate the Earth using Python and use that to plot specific locations on the surface and plot circles in various orientations so ...
10
votes
0
answers
5k
views
No module named grp on windows Python 2.7.11
Python 2.7.11 is installed on a Windows 10 machine. A Python tool called Pulsar (https://pulsar.readthedocs.io/en/latest/install.html) which is designed to be cross OS was installed successfully. ...
10
votes
1
answer
2k
views
Tensorflow REstart queue runners: different train and test queue
I would like to use the "fully connected" model to do both training and testing. I have a train.tfrecords file and a test.tfrecords file. I believe that the proper way to do this is to create a ...