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
48,656,958
2018-02-07T06:00:00.000
0
1
0
0
python,probability,blockchain
48,712,283
1
false
0
0
I figured this out, the solution is below: int(hashlib.sha256(block_header + userID).hexdigest(), 16) / float(2**256) You conver the hash into an integer, then divide that integer by 2**256. This gives you a decimal from 0 to 1 that can be compared to a random.random() to get the prize.
1
0
0
I'm building a project that does a giveaway every Monday. There are three prizes, the basic prize, the "lucky" prize, and the jackpot prize. The basic prize is given out 70% of the time, the lucky prize gets given out 25% of the time and the jackpot prize gets rewarded the final 5% of the time. There are multiple peopl...
Assigning giveaways based on cryptocurrency block header
0
0
0
27
48,658,738
2018-02-07T08:06:00.000
2
0
1
0
python-3.x,installation,windows-10,anaconda,conda
55,585,726
2
false
0
0
I had the same issue in installation. Issue: anaconda.exe file not found Solution worked for me : Installed with admin rights and anaconda.exe was found in installation folder and startup menu. Status : Resolved
1
2
0
I had missing conda.exe in Continuum\anaconda3\Scripts folder, so conda command doesn't work. This is not PATH problem. After that I have uninstalled anaconda, rebooted and installed just downloaded last version of anaconda. Installation was without admin rights. After that I still have conda missing in that folder. Wh...
Anaconda installed without conda.exe
0.197375
0
0
19,450
48,659,860
2018-02-07T09:13:00.000
1
0
1
0
python-3.x,jupyter-notebook
57,488,016
2
false
1
0
You can do: !jt -l To change the theme: !jt -t 'themes name' and reload
2
1
0
I have installed jupyterthemes by pip install --upgrade jupyterthemes under Windows7. But when I type in cmd jt -l,it turns out jt:command not found. How can I solve this problem?
jupyterthemes jt command not found
0.099668
0
0
599
48,659,860
2018-02-07T09:13:00.000
0
0
1
0
python-3.x,jupyter-notebook
68,090,027
2
false
1
0
Exit() python or ipython interpreter and try again e.g on PC using Anaconda prompt: (base) C:\Users\YourAccount>jt -l that should work if the themes pack was installed. That is what worked for me when I encountered this issue.
2
1
0
I have installed jupyterthemes by pip install --upgrade jupyterthemes under Windows7. But when I type in cmd jt -l,it turns out jt:command not found. How can I solve this problem?
jupyterthemes jt command not found
0
0
0
599
48,664,649
2018-02-07T13:07:00.000
2
0
0
0
python,tensorflow,keras,conv-neural-network,data-processing
48,674,801
1
true
0
0
In fact - you need to reshape a single data point to have a 3D shape - as keras expects your dataset to have shape (number examples, width, height, channels). If you don't wont to make your image RGB - you can simply leave it with only one channel (and interpret it as greyscale channel).
1
1
1
I am interested in training a Keras CNN and I have some data in the form of 2D matrices (e.g. width x height). I normally represent, or visualize the data like a heatmap, with a colorbar. However, in training the CNN and formatting the data input, I'm wondering if I should keep this matrix as a 2D matrix, or convert it...
Keras Training a CNN - Should I Convert Heatmap Data As Image or 2D Matrix
1.2
0
0
691
48,666,310
2018-02-07T14:31:00.000
1
1
0
0
python,cluster-analysis,sequence,bioinformatics
50,987,919
2
false
0
0
It also depends on the question for which tool you need(data reduction, otu clustering, making a tree, etc..). These days you see a shift in cluster tools that uses a more dynamic approach instead of a fixed similarity cutoff. Example: DADA2 UNOISE Seekdeep Fixed clustering: CD-HIT uclust vsearch
1
1
0
I am trying to find a new method to cluster sequence data. I implemented my method and got an accuracy rate for it. Now I should compare it with available methods to see whether it works as I expected or not. Is it possible to tell me what are the most famous methods in bioinformatics domain and what are the packages ...
bioinformatics sequence clustering in Python
0.099668
0
0
1,216
48,667,581
2018-02-07T15:33:00.000
3
0
1
1
python,ubuntu,anaconda,conda
51,832,344
2
true
0
0
You can create a Python 3.7 environment via: $conda create -n Py37 python=3.7 This will create a new anaconda environment named Py37 containing the python=3.7 package. Afterwards, you can activate the environment by running: $conda activate Py37 and it should work right out of the box!
1
1
0
I have anaconda installed on my ubuntu 17.10. It works fine for python 2.7 but I can't use it in python 3.7. Is there a way I can add python3.7 to the anaconda path?
Adding python3.7 to Anaconda path
1.2
0
0
2,945
48,668,031
2018-02-07T15:54:00.000
1
0
0
0
python,tensorflow,neural-network,deep-learning,classification
48,668,122
2
true
0
0
There are many ways to import images for training, you can use Tensorflow but these will be imported as Tensorflow objects, which you won't be able to visualize until you run the session. My favorite tool to import images is skimage.io.imread. The imported images will have the dimension (width, height, channels) Or you...
1
0
1
I am new to Tensorflow and to implementing deep learning. I have a dataset of images (images of the same object). I want to train a Neural Network model using python and Tensorflow for object detection. I am trying to import the data to Tensorflow but I am not sure what is the right way to do it. Most of the tutorial...
How to import data into Tensorflow?
1.2
0
0
864
48,668,686
2018-02-07T16:27:00.000
4
0
0
0
python,apache-beam
48,674,833
1
true
0
0
PCollection is simply a logical node in the execution graph and its contents are not necessarily actually stored anywhere, so this is not possible directly. However, you can ask your pipeline to write the PCollection to a file (e.g. convert elements to strings and use WriteToText with num_shards=1), run the pipeline an...
1
2
1
I am using Apache-Beam with the Python SDK. Currently, my pipeline reads multiple files, parse them and generate pandas dataframes from its data. Then, it groups them into a single dataframe. What I want now is to retrieve this single fat dataframe, assigning it to a normal Python variable. Is it possible to do?
How to retrieve the content of a PCollection and assign it to a normal variable?
1.2
0
0
1,669
48,669,430
2018-02-07T17:04:00.000
2
0
1
1
python-3.x,installation,windows-10,lpsolve,openturns
54,786,256
1
false
0
0
lpsolve is available for python 3.x as well on conda-forge: conda config --add channels conda-forge conda install openturns lpsolve55
1
2
0
I want to use the packages lpsolve55 and openturns but they are not working on python 3.6, is there any way to install them for this version of python?
how can I install lpsolve55 and openturns for python 3.6 in windows 10?
0.379949
0
0
438
48,670,780
2018-02-07T18:20:00.000
0
0
0
0
python,pandas,csv,encoding,iso-8859-1
48,681,568
1
false
0
0
Basically the column looks like this Column_ID 10 HGF6558 059 KP257 0001
1
0
1
I have a problem with reading in a csv with an id field with mixed dtypes from the original source data, i.e. the id field can be 11, 2R399004, BL327838, 7 etc. but the vast majority of them being 8 characters long. When I read it with multiple versions of pd.read_csv and encoding='iso-8859-1' it always converts the 7 ...
Pandas read csv adds zeros
0
0
0
85
48,671,331
2018-02-07T18:56:00.000
-1
0
0
0
python,mysql,pip,installation
48,671,377
2
true
1
0
You should be able to type it in the command line for your operating system (ie. CMD/bash/terminal) as long as you have pip installed and the executable location is in your PATH.
1
0
0
Am implementing a sign up using python & mysql. Am getting the error no module named flask.ext.mysql and research implies that i should install flask first. They say it's very simple, you simply type pip install flask-mysql but where do i type this? In mysql command line for my database or in the python app?
Where do i enter pip install flask-mysql?
1.2
1
0
702
48,673,104
2018-02-07T20:57:00.000
2
0
0
0
c#,python,c++,opencv,object-detection
48,678,366
3
false
0
0
What features are you using to detect your books? Are you training a CNN and deploying it with OpenCV? In that case adding rotation image augmentation to your training would make it easy to detect rotated books. If you are using traditional computer vision techniques instead, you can try to use some rotation invariant...
1
5
1
I have been training OpenCV classifier for recognition of books.The requirement is recognize book from an image. I have used 1000+ images and OpenCV is able to detect books with no rotation. However, when I try to detect books with rotations it does not work properly.So I am wondering if their anyway to detect objects ...
How to detect rotated object from image using OpenCV?
0.132549
0
0
5,762
48,674,084
2018-02-07T22:08:00.000
0
0
0
0
python,gensim,lda,topic-modeling
49,749,946
1
false
0
0
In LDA all words are part of all topics, but with a different probability. You could define a minimum probability for your words to print, but I would be very surprised if mallet didn't come up with at least a couple of "duplicate" words across topics as well. Make sure to use the same parameters for both gensim and ma...
1
0
1
I am using gensim lda for topic modeling and getting the results like so: Topic 1: word1 word2 word3 word4 Topic 2: word4 word1 word2 word5 Topic 3: word1 word4 word5 word6 However using mallet on same lda does not produce duplicate words across topics. I have ~20 documents with >1000 words each that I train the lda on...
Words appearing across all topics in lda
0
0
0
675
48,674,966
2018-02-07T23:20:00.000
0
0
1
0
python,virtual-machine,virtualbox,jupyter
51,632,871
1
false
1
0
Yes, it's possible. To begin with, your host PC mut have a shared folder with your VM (Explained elsewhere). A method I do is to First create a folder myfolder for the (.pdf or .csv) files. Secondly, load the folder by: going to the created myfolder --> right-click on the myfolder --> choose "Open in Terminal". Third...
1
0
0
Is it possible to upload a file (say a .pdf or .csv) saved in my hard disk into Jupyter running on VirtualBox?
Uploading files to Jupyter running on VM VitualBox
0
0
0
277
48,675,077
2018-02-07T23:32:00.000
0
0
0
1
python
48,675,155
1
false
0
0
Use os.system() or give a folder path to change dir in os.chdir() not an executable file (why would you want to change into an executable? You can't do that)
1
1
0
Context: Basically I want to create a python program that asks me what Software I want to run, as soon as I start my computer. Usefull code: os.chdir(r'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe'). And that's the error I got : FileNotFoundError Traceback (most recent call last...
How to run an ".exe" file from "C:\Program Files (x86)" using python?
0
0
0
621
48,675,264
2018-02-07T23:51:00.000
0
0
0
0
python,ftp,ftplib
48,761,226
1
false
0
0
No. Using FTP.retrlines('LIST') is the only solution with FTP protocol. If you need a faster approach, you would have to use another interface. Like shell, some web API, etc.
1
0
0
I was wondering if there was an effective way to recursively search for a given filename using ftplib. I know that I could use FTP.cwd() and FTP.retrlines('LIST), but I think that it would be rather repetitive and inefficient. Is there something that lets me find files on an FTP server in Python, such as how os can do ...
Finding a file in an FTP server using ftplib
0
0
0
198
48,675,954
2018-02-08T01:13:00.000
2
0
0
0
python,random,statistics,probability,probability-density
48,676,209
1
false
0
0
There a few different paths one can follow here. (1) If P(x,y,z) factors as P(x,y,z) = P(x) P(y) P(z) (i.e., x, y, and z are independent) then you can sample each one separately. (2) If P(x,y,z) has a more general factorization, you can reduce the number of variables that need to be sampled to whatever's conditional on...
1
2
1
I have a multivariate probability density function P(x,y,z), and I want to sample from it. Normally, I would use numpy.random.choice() for this sort of task, but this function only works for 1-dimensional probability densities. Is there an equivalent function for multivariate PDFs?
Sampling from a multivariate probability density function in python
0.379949
0
0
965
48,676,037
2018-02-08T01:26:00.000
0
0
0
0
python-3.x,amazon-web-services,h5py
48,676,038
1
false
1
0
just solve it using sudo pip install hypy.
1
0
0
i have the below error while running my code on amazon ec2 instance and when trying to import the h5py package i have permission denied error ImportError: load_weights requires h5py
Import error requires h5py
0
0
1
539
48,676,157
2018-02-08T01:42:00.000
2
0
1
0
python,virtual-machine,virtualbox,jupyter,sage
48,676,340
1
false
0
0
Just worked out a solution (pretty obvious): a shared folder as to be defined in VirtualBox with the "auto-mount" option ticked. Then the 'upload' button in Jupyter can be used.
1
1
0
Is it possible to access a file stored in my hard disk from SageMath/Jupyter running on VirtualBox?
How to access files stored in the hard disk using SageMath/Jupyter running on Virtual Machine
0.379949
0
0
204
48,677,643
2018-02-08T04:38:00.000
0
0
0
0
python,django
48,680,841
1
false
1
0
Load balancing is not anything to do with Django. It is something you implement at a much higher layer, via servers that sit in front of the machines that Django is running on. However, if you've just started creating your site, it is much too early to start thinking about this.
1
2
0
I have a Django server which responds to a call like this 127.0.0.1:8000/ao/. Before adding further applications to the server, I would like to experiment the load balancing which are supported by Django. Can anyone please explain how to implement load balancing. I spent sometime in understanding the architecture but w...
load balancing in django
0
0
0
2,681
48,680,155
2018-02-08T07:45:00.000
0
1
0
0
c#,python,mono
48,683,700
2
true
0
0
Is there a solution to pass the data to the Python script by avoiding file writing/reading? I can only think of two approaches: You could open a socket for communication between both programs through localhost. The C# program would send data to that socket, and the Python program would read it. Write both programs ...
1
0
0
I have a C# (Mono) app that gets data from a sensor and passes it to a Python script for processing. It runs on a Raspberry Pi/Raspbian. The script is started at program initialization and is running in background waiting for data to be passed to it. The data consists of 1000 samples, 32 bit double (in total, 32 kbits...
How to pass large data to Python script?
1.2
0
0
309
48,680,696
2018-02-08T08:19:00.000
0
0
1
0
python,anaconda,jupyter-notebook,jupyter
54,463,928
2
false
0
0
You need to change your keyboard language. I had the same issue while using "U.S. International - PC" keyboard. When I changed to "US" it starts working with quotes as well.
2
1
0
I am new to python. I am using Jupyter notebook through anaconda. I do not get the auto quotes while writing code.("",'') But auto braces or parentheses works. Could you please help me fix this.
I don't get auto quotes in jupyter notebook
0
0
0
674
48,680,696
2018-02-08T08:19:00.000
1
0
1
0
python,anaconda,jupyter-notebook,jupyter
70,317,144
2
false
0
0
It's part of the "Auto Close Brackets" setting, which is a toggle menu item that you should be able to find in the "Settings" menu.
2
1
0
I am new to python. I am using Jupyter notebook through anaconda. I do not get the auto quotes while writing code.("",'') But auto braces or parentheses works. Could you please help me fix this.
I don't get auto quotes in jupyter notebook
0.099668
0
0
674
48,680,916
2018-02-08T08:32:00.000
1
0
1
0
python,datetime
48,680,951
1
true
0
0
DateTime.Today only gives today's date and default time as 12:00:00. DateTime.Today : 1/1/2018 12:00:00 AM. DateTime.Now gives current time of running thread with today's date. (Date and Time of the computer where code is running) DateTime.Now : 1/1/2018 8:49:52 AM.
1
3
0
Is there any difference between datetime.today() and datetime.now()? Using them lately has proved that there is none.
What is the difference between datetime.now() and datetime.today() in Python
1.2
0
0
5,800
48,682,817
2018-02-08T10:09:00.000
1
0
0
0
python,variables,flask
48,683,430
1
true
1
0
app.config is global. Don't store user-specific configuration there. Likely you'll want to use a cookie or a URL parameter for the display language.
1
0
0
I am new and just start learning flask. In my project, I need all the pages are printed in two languages, say 'LAN_A' and 'LAN_B'. So I need a variant to save it. Now I save it in app.config['language'] = 'LAN_A'/'LAN_B'. When debugging locally, I browse the page by two devices (thus also two IP). In device1, I change ...
Flask variants can be visible by different users?
1.2
0
0
21
48,683,621
2018-02-08T10:47:00.000
0
0
0
0
python,opencv,image-processing
48,683,822
3
false
0
0
As long as you don't change the extension of the image file, the pixel values don't change because they're stored in memory and your display or printer are just the way you want to see the image and often you don't get the same thing because it depends on the technology and different filters applied to you image before...
1
0
1
Assume we are reading and loading an image using OpenCV from a specific location on our drive and then we read some pixels values and colors, and lets assume that this is a scanned image. Usually if we open scanned image we will notice some differences between the printed image (before scanning) and the image if we op...
RGB in OpenCV. What does it mean?
0
0
0
135
48,683,976
2018-02-08T11:04:00.000
1
0
0
0
python-3.x,graphite,grafana-api
62,026,844
1
false
0
0
The only way I found in grafana 7.1 was to: Open the dashboard and then inspect the panel Open the query tab and click on refresh Use the url and parameters on your own query to the api note: First you need to create an API key in the UI with the proper role and add the bearer to the request headers
1
4
0
Need to extract specific data from grafana dashboard. Grafana is connected to graphite in the backend. Seems there is no API to make calls to grafana directly. Any help? Ex: I need to extract AVG CPU value from graph of so and so server.
How can we extract data from grafana dashboard?
0.197375
0
1
2,210
48,685,070
2018-02-08T12:04:00.000
2
0
0
0
python,http,request,tornado
48,722,882
1
false
1
0
The content-type header is what tells the browser how to display a given file. It doesn't know how to display text/csv, so it has no choice but to treat it as an opaque download. If you want the file to be displayed as plain text, you need to tell the browser that it has content-type text/plain. If you need to tell ot...
1
0
0
My server in Python (Tornado) send a csv content on a GET request. I want to specify the content type of the response as "text/csv", but when I do this the file is downlaoded when I send the GET request on my browser. How can I specify the header "Content-type : text/csv" without having making it a downlaodable file b...
GET response - Do NOT send a downlaodable file
0.379949
0
1
50
48,685,075
2018-02-08T12:04:00.000
2
0
1
0
python,pyinstaller
48,685,532
1
true
0
0
I feel like pyinstaller should include a FAQ page that states... Do not use Anaconda/Miniconda, use virtual environment or default python …
1
2
0
Pyinstaller keeps importing scipy when I exclude it through exclude module. That did not work. I am using Miniconda on Windows. What is going on here?
Importing modules I do not use
1.2
0
0
32
48,686,826
2018-02-08T13:38:00.000
6
0
1
0
reactjs,python-decorators,higher-order-components
48,688,832
3
false
0
0
Two differences would be decorators are used to mutate the variable while HOC's are recommended not to. Another is specific to React, HOC's are supposed to render a component, while decorators can return different things depending on implementation.
1
32
0
Can someone explain what is the difference between these two? I mean except the syntactic difference, do both of these techniques are used to achieve the same thing (which is to reuse component logic)?
React js - What is the difference betwen HOC and decorator
1
0
0
12,156
48,687,566
2018-02-08T14:13:00.000
0
0
0
0
python,django,csv
48,688,068
1
false
1
0
You state the the database is blank, if so you're going to have to have at least 1 record in the parent table, where the primary key is defined. After that you can use the parent.primary-key value in your CSV file as a dummy value for your foreign key. That should at least allow you to populate the table. Later on, ...
1
0
0
I'm a little new to this, and figuring it out as I go. So far so good, however I have having trouble importing a field that has a foreign key. I have about 10,000 rows in a csv file that I want to add to the database. As you can imagine, entering 10,000 items at a time is too labour intensive. When I try for an import ...
CSV import into empty Django database with foreign key field
0
1
0
423
48,690,736
2018-02-08T16:51:00.000
0
0
0
0
python,mongodb,python-2.7,pymongo
48,690,738
1
false
0
0
It turns out, after some tinkering, that using the MongoClient argument socketTimeoutMS, if set to something quicker than that observed by AutoReconnect, will supersede AutoReconnect. Contrary to my initial concern, this does not interfere with long running queries as the socket connected just fine. I discovered that a...
1
1
0
I'm using a 3-node MongoDB replica set and connecting to it using Pymongo v3.3.1. In testing the handling of errors like AutoReconnect and ServerSelectionTimeout and such I find that I can't (safely/reliably) control how long it takes to raise an AutoReconnect exception. If I instantiate MongoClient with the argument s...
Is there any way to decrease the time it takes for a pymongo.errors.AutoReconnect to occur?
0
0
0
58
48,692,101
2018-02-08T18:10:00.000
-1
0
1
0
python,colors,detection
48,692,751
1
false
0
0
It depends on what module you are working with. I.e; Turtle Graphics, Tkinter, etc.
1
0
0
Hi, i am working on a project at the time and i am trying to see if a speciffic area on screen matches a speciffic color of my choice. i've tried a couple of things but none of them seemed to be working. is there any easy way to do this in python 2.7?
Easy Color Detection in python 2.7
-0.197375
0
0
25
48,692,483
2018-02-08T18:32:00.000
0
1
0
0
python,amazon-s3,boto,boto3
63,806,918
3
false
0
0
It's true that the AWS CLI uses boto, but the cli is not a thin wrapper, as you might expect. When it comes to copying a tree of S3 data (which includes the multipart chunks behind a single large file), it is quite a lot of logic to make a wrapper that is as thorough and fast, and that does things like seamlessly pick...
1
3
0
I have packages stored in s3 bucket. I need to read metadata file of each package and pass the metadata to program. I used boto3.resource('s3') to read these files in python. The code took few minutes to run. While if I use aws cli sync, it downloads these metafiles much faster than boto. My guess was that if I do not ...
Is aws CLI faster than using boto3?
0
0
1
4,228
48,693,266
2018-02-08T19:23:00.000
0
0
0
0
python,c++,opencv
48,694,488
2
false
0
0
The "without calibration" bit dooms you, sorry. Without knowing the focal length (or, equivalently, the field of view) you cannot "convert" a pixel into a ray. Note that you can sometimes get an approximate calibration directly from the camera - for example, it might write a focal length for its lens into the EXIF hea...
2
0
1
I am trying to convert X,Y position of a tracked object in an image to 3D coordinates. I got the distance to the object based on the size of the tracked object (A marker) but now I need to convert all of this to a 3D coordinate in the space. I have been reading a lot about this but all of the methods I found require a ...
Get 3D coordinates in OpenCV having X,Y and distance to object
0
0
0
630
48,693,266
2018-02-08T19:23:00.000
0
0
0
0
python,c++,opencv
48,694,562
2
false
0
0
If you're using some sort of micro controller, it may be possible to point a sensor towards that object that's seen through the camera to get the distance. You would most likely have to have a complex algorithm to get multiple cameras to work together to return the distance. If there's no calibration, there would be no...
2
0
1
I am trying to convert X,Y position of a tracked object in an image to 3D coordinates. I got the distance to the object based on the size of the tracked object (A marker) but now I need to convert all of this to a 3D coordinate in the space. I have been reading a lot about this but all of the methods I found require a ...
Get 3D coordinates in OpenCV having X,Y and distance to object
0
0
0
630
48,694,790
2018-02-08T21:07:00.000
0
0
0
0
python,pandas,biopython
49,092,434
5
false
0
0
There is no good way to do this. BioPython alone seems to be sufficient, over a hybrid solution involving iterating through a BioPython object, and inserting into a dataframe
1
1
1
i have a dataset (for compbio people out there, it's a FASTA) that is littered with newlines, that don't act as a delimiter of the data. Is there a way for pandas to ignore newlines when importing, using any of the pandas read functions? sample data: >ERR899297.10000174 TGTAATATTGCCTGTAGCGGGAGTTGTTGTCTCAGGATCAGCATTA...
pandas read csv ignore newline
0
0
0
9,964
48,696,556
2018-02-08T23:36:00.000
0
0
0
0
python,regex,subset
48,696,674
2
false
0
0
For character handling at such micro level the query will end up being clunky with high response time — if you're lucky to write a working one. This's more of a script kind of operation.
1
0
1
I'm trying to match text strings (gene names) in a column from one file to text strings in a column of another, in order to create a subset the second. For simplicity, the first will look more or less like this: hits = ["IL1", "NRC31", "AR", etc.] However, the column of interest in the second df looks like this: 68 ...
Matching genes in string in Python
0
0
0
271
48,696,759
2018-02-09T00:01:00.000
1
1
0
1
python-2.7,tryton
48,704,012
1
false
0
0
Tryton search modules only in the subdirectory modules from its installation path or for the entry points trytond.modules But it does not use the PYTHONPATH to detect modules. So you must move the modules under the "modules" directory or you must install the modules with python setup.py install (or python setup.py deve...
1
0
0
tryton V3.8 on MAC. I have a database "steve" with trytond running TCP/IP. When doing database connect in tryton client, I get the following result as the last line in the error window: "IOError: File not found : /site-packages/trytond/modules/product/tryton.cfg" In ~/.bash_profile, I have: export PYTHONPATH=~...
tryton file not found when opening database - looking in site-packages rather than directory in PYTHONPATH
0.197375
0
0
96
48,697,322
2018-02-09T01:15:00.000
0
0
0
0
javascript,php,python,html,css
60,838,059
3
false
1
0
You can use domdocument and domxpath to parse the html file(you can use php file_get_contents to read the file ) it looks like i can't post links
1
0
0
I have some 1000 html pages. I need to update the names which is present at the footer of every html page. What is the best possible efficient way of updating these html pages instead of editing each name in those html pages one by one. Edit: Even if we use some sort of scripts, we have to make changes to every html fi...
How to update static content in multiple HTML pages
0
0
1
1,154
48,697,423
2018-02-09T01:28:00.000
1
1
0
0
python-3.x,raspberry-pi,google-assistant-sdk
48,698,224
1
true
1
0
Yes, you cannot do remote execution of device actions.
1
0
0
Is it possible to trigger a custom device action from another device that is attached to the same account? e.g.: Trigger a custom device action registered to one PI from a second PI that doesn't have any custom device actions. Trigger a custom device action registered to one PI from an Android phone attached to the sa...
Trigger a device action from another device on the same account
1.2
0
0
95
48,697,967
2018-02-09T02:41:00.000
1
0
0
0
python,normalization,image-preprocessing
48,697,994
1
true
0
0
Without more information about your source code and the packages you're using, this is really more of a data science question than a python question. To answer your question, a more than satisfactory method in most circumstances it min-max scaling. Simply normalize each coordinate of your images between 0 and 1. Whethe...
1
0
1
I am trying to normalize MR image. There is a negative value in the MR image. So the MR image was normalized using the Gaussian method, resulting in a negative area. But i don't want to get negative area. My question: What is the normalization method so that there is no negative value? Thanks in advance
What is the normalization method so that there is no negative value?
1.2
0
0
424
48,698,110
2018-02-09T03:04:00.000
2
0
0
0
python,rest,http,react-native,server
48,718,794
2
false
0
0
You have to create a flask proxy, generate JSON endpoints then use fetch or axios to display this data in your react native app. You also have to be more specific next time.
1
2
0
I'm learning about basic back-end and server mechanics and how to connect it with the front end of an app. More specifically, I want to create a React Native app and connect it to a database using Python(simply because Python is easy to write and fast). From my research I've determined I'll need to make an API that com...
How to create a Python API and use it with React Native?
0.197375
0
1
6,331
48,699,357
2018-02-09T05:38:00.000
0
0
0
0
python,lmfit
48,707,014
1
true
0
0
More detail about what you are actually doing would be helpful. That is, vague questions can really only get vague answers. Assuming you are doing curve fitting with lmfit's Model class, then once you have your Model and a set of Parameters (say, after a fit has refined them to best match some data), then you can use ...
1
0
1
I have fitted a curve using lmfit but the trendline/curve is short. Please how do I extend the trendline/curve in both directions because the trendline/curve is hanging. Sample codes are warmly welcome my senior programmers. Thanks.
Extending a trendline in a lmfit plot
1.2
0
0
213
48,700,373
2018-02-09T07:03:00.000
0
0
1
0
python-3.x
65,051,879
4
false
0
0
You want to get a subset using indexes. set is an unordered collection with non-duplicated items. The set's pop method removes a random item from the set. So, it is impossible in general, but if you want to remove a limited number of random items (I can't imagine why anybody needs it), you can call pop multiple times i...
1
4
0
Can we do indexing in a python set, to attain an element from a specific index? Like accessing a certain element from the below set: st = {'a', 'b', 'g'} How to return the second element by indexing?
Set indexing python
0
0
0
16,216
48,700,554
2018-02-09T07:15:00.000
14
0
0
0
python,rasa-nlu,rasa-core
49,782,296
1
true
0
0
RASA NLU is the natural language understanding piece, which is used for taking examples of natural language and translating them into "intents." For example: "yes", "yeah", "yep" and "for sure" would all be translated into the "yes" intent. RASA CORE on the other hand is the engine that processes the flow of conversat...
1
2
1
I am new to chatbot application and RASA as well, can anyone please help me to understand how should i use RASA NLU with RASA CORE.
How to use RASA NLU with RASA CORE
1.2
0
0
1,115
48,700,571
2018-02-09T07:16:00.000
0
0
1
0
python,object,websocket
48,713,829
1
true
0
0
The answer to this question comes from @A.Wenn. By using Pickle, I can serialize my objects in one script and save them. From any other portion of my application, I can then import the pickled object and use it as though I had instantiated the object from scratch! This makes my application significantly faster and m...
1
0
0
An App I've written in Python instantiates several classes. Other portions of the App live in other Python files and as a result, they must instantiate their own versions of the class before running. Is there a way that I can instantiate the classes I want to use within the App and keep those classes "Alive" for use b...
Instantiate Python Object and Keep Alive for Use in Other Apps
1.2
0
0
201
48,702,061
2018-02-09T08:58:00.000
0
0
0
0
python,amazon-web-services,http,server
48,702,358
2
false
1
0
This is a commonly used pattern when separating Web Servers and App Servers in traditional Web Application setup, keeping the Web Servers in public subnets (Or keeping internet accessible) and the business rules kept in App Servers in the private network. However, it also depends on the complexity of the system to just...
1
0
0
I have two instances. One is on the Public Subnet & the other is on the Private subnet of AWS. In the private system, I am performing some computation. And the public system is acting as the API endpoint. My total flow idea is like this: When some request comes to the public server, the parameters should be forwarded t...
Best way for communicating between two servers
0
0
1
59
48,702,629
2018-02-09T09:28:00.000
0
0
1
0
python,queue,priority-queue
48,710,792
1
false
0
0
Since all items are arranged in a prioritised manner, just extract them in the way they come out...as it is a queue. Or you could apply more conditions on how you would like to arrange the items with same priorities among themselves.
1
0
0
Basically, no counter is allowed. No iterables (arrays, dictionaries, etc.) allowed either to store insertion. There are two linked lists: one storing odd insertions and even insertions. Each node has the priority, and the object. Is there any pattern you can find? Or is this impossible? Edit: sorry for not mentioning...
Priority Queue: If two objects have same priority, how do I determine which to extract?
0
0
0
240
48,708,133
2018-02-09T14:33:00.000
-1
0
1
0
python,sympy
48,713,292
1
false
0
0
after reading more on the subject , Multiplicative group Z * p In classical cyclic group gryptography we usually use multiplicative group Z p * , where p is prime. Z p * = { 1, 2, .... , p - 1} combined with multiplication of integers mod p So it is simply G2= [ i for i in range(1, n-1 )] #G2 multiplicativ Group of ...
1
1
1
I'm trying to create a multiplicative group of order q. This code generates an additive cyclic group of order 5 from sympy.combinatorics.generators import cyclic list(cyclic(5)) [(4), (0 1 2 3 4), (0 2 4 1 3), (0 3 1 4 2), (0 4 3 2 1)] Any help ?
multiplicative group using SymPy
-0.197375
0
0
463
48,709,350
2018-02-09T15:43:00.000
0
1
0
0
python,python-3.x,twitter,login,splinter
48,716,354
1
false
0
0
What's the purpose of doing this rather than using the official API? Scripted logins to Twitter.com are against the Terms of Service, and Twitter employs multiple techniques to detect and disallow them. Accounts showing signs of automated login of this kind are liable to suspension or requests for security re-verificat...
1
0
0
I'm working with splinter and Python and I'm trying to setup some automation and log into Twitter.com Having trouble though... For example the password field's "name=session[password]" on Twitter.com/login and the username is similar. I'm not exactly sure of the syntax or what this means, something with a cookie... But...
How to log into Twitter with Splinter Python
0
0
1
59
48,709,540
2018-02-09T15:53:00.000
2
0
1
1
python,windows,filesystems
48,709,541
1
false
0
0
As of Python 3.3, the function os.replace is available. It should provide cross-platform mv-like semantics. Sadly it fails when trying to move files across file systems. Even though the documentation says, that shutil.move depends on the semantics of os.rename, it also works on Windows, and supports moving files across...
1
1
0
For the purpose of safely updating a file, I am writing an updated version to a temporary file and then try to overwrite the original file with it. In a shell unix script I would use mv FROM TO for this. With python on Linux, the functions os.rename and shutil.move perform an atomic replace operation when the target fi...
Move file and overwrite existing in Python 3.6 on Windows
0.379949
0
0
1,028
48,712,186
2018-02-09T18:41:00.000
8
0
1
0
python,h5py
48,713,373
1
true
0
0
No, you do not need to flush the file before closing. Flushing is done automatically by the underlying HDF5 C library when you close the file. As to the point of flushing. File I/O is slow compared to things like memory or cache access. If programs had to wait before data was actually on the disk each time a write wa...
1
7
0
In the Python HDF5 library h5py, do I need to flush() a file before I close() it? Or does closing the file already make sure that any data that might still be in the buffers will be written to disk? What exactly is the point of flushing? When would flushing be necessary?
In h5py, do I need to call flush() before I close a file?
1.2
0
0
3,618
48,712,383
2018-02-09T18:56:00.000
0
0
1
0
python,audio,wav
50,443,585
1
true
1
0
I think that it is hard or even impossible to add tags to WAV so I will convert the wav files to mp3 files using ffmpy and then use eyed3 to add the tags.
1
2
0
I have a wav file (test.wav) I am trying to apply tags to it: title artist album year / release date I have had no success with pydub or eyed3 Is there a way I can do this?
Applying tags to a wav file in Python 2.7 on Windows
1.2
0
0
304
48,713,679
2018-02-09T20:33:00.000
3
1
1
0
python,google-cloud-platform,iot,paho
48,819,342
1
false
0
0
Turns out it's the python version. It was just about impossible to debug. I ended trying on many different devices/os to slowly isolate the issue. Looks like newly created projects rely on newer versions of google cloud sdk and python. Must have python 2.7.14.
1
3
0
I'm seeing a hard to track down error with Google Cloud IoT. I have 2 projects set up with IoT API enabled. I'm using the same "quickstart" instructions to test, by setting up "my-registry" and "my-device". Let's call them projects A and B. I then run both the python and node examples pulled straight from git. The node...
Google Cloud IoT Python MQTT "out of memory" error
0.53705
0
0
1,506
48,715,867
2018-02-10T00:08:00.000
0
0
0
0
python,scikit-learn,time-series,svm
48,715,905
2
false
0
0
given multi-variable regression, y = Regression is a multi-dimensional separation which can be hard to visualize in ones head since it is not 3D. The better question might be, which are consequential to the output value `y'. Since you have the code to the loadavg in the kernel source, you can use the input parameters...
1
0
1
I have a dataset of peak load for a year. Its a simple two column dataset with the date and load(kWh). I want to train it on the first 9 months and then let it predict the next three months . I can't get my head around how to implement SVR. I understand my 'y' would be predicted value in kWh but what about my X value...
support vector regression time series forecasting - python
0
0
0
2,181
48,718,313
2018-02-10T07:22:00.000
0
0
1
1
python,ffmpeg,path,environment-variables,jupyter-notebook
48,719,791
1
false
0
0
Rebooting session solved the problem. Somehow on my work computer reboot wasn't needed for environment variable to take effect.
1
2
0
I have PATH variable set for ffmpeg which I tested with CMD command echo %PATH% but Python's os.environ['PATH'] doesn't contain registry of it. I'm using Jupyter notebook on Windows.
os.environ['PATH'] doesn't match echo %PATH%
0
0
0
481
48,720,266
2018-02-10T11:29:00.000
1
1
1
0
python,python-3.x,unit-testing,dependencies,setuptools
48,720,426
1
false
0
0
OK, I think this is actually quite easy and I was thinking to complicated: I made it work by just setting PYTHONPATH to the relative path to the directory containing package A.
1
0
0
I want to develop two packages A and B in parallel, and B depends on A. I need to import something from A when running my unit tests for B. So how can I configure things in setup.py so that when I run the unit tests for B, the local directory (in parallel to the one for B) gets added to the modules path and A can be im...
How to depend on local directory for setuptools unit tests?
0.197375
0
0
23
48,720,833
2018-02-10T12:35:00.000
9
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
48,735,246
23
false
0
0
Uninstalling Python and then reinstalling solved my issue and I was able to successfully install TensorFlow.
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
1
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
228
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
51,831,928
23
true
0
0
As of October 2020: Tensorflow only supports the 64-bit version of Python Tensorflow only supports Python 3.5 to 3.8 So, if you're using an out-of-range version of Python (older or newer) or a 32-bit version, then you'll need to use a different version.
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
1.2
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
7
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
65,537,792
23
false
0
0
(as of Jan 1st, 2021) Any over version 3.9.x there is no support for TensorFlow 2. If you are installing packages via pip with 3.9, you simply get a "package doesn't exist" message. After reverting to the latest 3.8.x. Thought I would drop this here, I will update when 3.9.x is working with Tensorflow 2.x
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
1
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
71
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
55,988,352
23
false
0
0
I installed it successfully by pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
1
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
5
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
59,836,416
23
false
0
0
Looks like the problem is with Python 3.8. Use Python 3.7 instead. Steps I took to solve this. Created a python 3.7 environment with conda List item Installed rasa using pip install rasa within the environment. Worked for me.
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
0.043451
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
1
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
69,111,030
23
false
0
0
using pip install tensorflow --user did it for me
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
0.008695
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
36
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
49,432,863
23
false
0
0
I am giving it for Windows If you are using python-3 Upgrade pip to the latest version using py -m pip install --upgrade pip Install package using py -m pip install <package-name> If you are using python-2 Upgrade pip to the latest version using py -2 -m pip install --upgrade pip Install package using py -2 -m pip ...
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
1
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
42
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
53,488,421
23
false
0
0
if you are using anaconda, python 3.7 is installed by default, so you have to downgrade it to 3.6: conda install python=3.6 then: pip install tensorflow it worked for me in Ubuntu.
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
1
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
0
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
67,496,288
23
false
0
0
This issue also happens with other libraries such as matplotlib(which doesn't support Python > 3.9 for some functions) let's just use COLAB.
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
0
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
0
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
60,302,029
23
false
0
0
use python version 3.6 or 3.7 but the important thing is you should install the python version of 64-bit.
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
0
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
-2
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
61,057,983
23
false
0
0
I solved the same problem with python 3.7 by installing one by one all the packages required Here are the steps: Install the package See the error message: couldn't find a version that satisfies the requirement -- the name of the module required Install the module required. Very often, installation of the required ...
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
-0.01739
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
3
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
62,932,939
23
false
0
0
For version TensorFlow 2.2: Make sure you have python 3.8 try: python --version or python3 --version or py --version Upgrade the pip of the python which has version 3.8 try: python3 -m pip install --upgrade pip or python -m pip install --upgrade pip or py -m pip install --upgrade pip Install TensorFlow: try: pyth...
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
0.026081
0
0
663,737
48,720,833
2018-02-10T12:35:00.000
0
0
0
0
python,python-3.x,python-2.7,tensorflow,pip
64,305,430
23
false
0
0
In case you are using Docker, make sure you have FROM python:x.y.z instead of FROM python:x.y.z-alpine.
13
305
1
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message: Could not find a version that satisfies the requirement Ten...
Could not find a version that satisfies the requirement tensorflow
0
0
0
663,737
48,727,820
2018-02-11T02:51:00.000
0
1
0
0
python,multithreading,logging,cron,bots
48,728,192
1
false
0
0
Use multiprocessing if you do not want the data between the processes to be shared. You can give a name to your processes.
1
0
0
I'm going to have to run the same python script multiple of times (>500) at the same time using cron, I'm looking for ways to best handle this to avoid problems in future and if there is any better way that I can use for reporting and logging to alert me if one script is down , please advise me with it. Plan so far, i...
Running the same script multiple times , easier way to manage and report
0
0
0
101
48,729,174
2018-02-11T07:03:00.000
0
0
0
1
python,numpy,ubuntu,matplotlib,installation
48,729,205
3
false
0
0
U cannot install it using apt-get. u need to install pip first. After you install pip, just google about how to install different packages using pip
1
0
1
I am having problems trying to install the following packages on Ubuntu: scipy numpy matplotlib pandas sklearn When I execute the command: sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose I get the following message: Reading package lis...
How do I install packages for python ML on ubuntu?
0
0
0
428
48,729,532
2018-02-11T08:01:00.000
0
0
0
1
python-2.7
48,741,455
1
false
0
0
You can install passlib module using pip sudo pip install passlib
1
0
0
I am trying to install odoo in mac OS. I have installed all necessary requirements by referring a video on youtube and finally I tried to run server but I am getting an error like this: lalits-MacBook-Pro:odoo lalitpatidar$ ./odoo-bin Traceback (most recent call last): File "./odoo-bin", line 5, in __import__('...
Error while running odoo in mac
0
0
0
661
48,730,108
2018-02-11T09:32:00.000
1
0
0
0
python,websocket,pip
70,608,299
2
false
0
0
Just installing websocket-client==1.2.0 is ok. I encountered this problem when I was using websocket-client==1.2.3
1
1
0
I am trying to use websocket.WebSocketApp, however it's coming up with the error: module 'websocket' has no attribute 'WebSocketApp' I had a look at previous solutions for this, and tried to uninstall websocket, installed websocket-client and still comes up with the same error. My File's name is MyWebSocket, so I don't...
AttributeError: module 'websocket' has no attribute 'WebSocketApp' pip
0.099668
0
1
7,871
48,730,129
2018-02-11T09:36:00.000
0
0
1
0
python,django,virtualenv
48,733,188
1
false
1
0
Thank you phd and Kevin L.! The virtualenv -p python3 my_env_name solved the issue. Then it was important to restore dependencies via pip module Anyone doing the migration (to newer linux or another pc) I also recommend to dump the dependencies with pip freeze > requirements.txt.
1
3
0
On my Fedora 25 I have configured the virtual environment with python 3.5 and after upgrading the system to Fedora 27 I cannot longer launch django app withing the virtual env (python manage.py runserver) neither check the version of the python: error while loading shared libraries: libpython3.5m.so.1.0: cannot open sh...
Python error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
0
0
0
4,951
48,730,694
2018-02-11T10:49:00.000
0
0
0
0
python,jquery,django,django-rest-framework
48,730,768
2
false
1
0
as per my experience and knowledge, you are almost going towards correct direction. my recommendation is for making backend rest api Django and django rest framework is the best option however for consuming those api you can look for the angular or react both works very well in terms of consuming API.
1
0
0
I am currently developing my first more complex Web Application and want to ask for directions from more experienced Developers. First I want to explain the most important requirements. I want to develop a Web App (no mobile apps or desktop apps) and want to use as much django as possible. Because I am comfortable with...
Design Decision Django Rest Framework - Django as Frontend
0
0
0
548
48,731,124
2018-02-11T11:44:00.000
4
0
0
0
python,tensorflow,google-colaboratory
48,739,426
4
true
0
0
Even if you will install gpu version !pip install tensorflow-gpu==1.5.0 it will still fail to import it because of the cuda libraries. Currently I have not found a way to use 1.5 version with GPU. So I would rather use 1.4.1 with gpu than 1.5 without gpu. You can send them a feedback ( Home - Send Feedback ) and hope...
1
5
1
Currently google colaboratory uses tensorflow 1.4.1. I want to upgrade it to 1.5.0 version. Each time when i executed !pip install --upgrade tensorflow command, notebook instance succesfully upgrades the tensorflow version to 1.5.0. But after upgrade operation tensorflow instance only supports "CPU". When i have execut...
How to upgrade tensorflow with GPU on google colaboratory
1.2
0
0
15,191
48,732,470
2018-02-11T14:20:00.000
1
0
0
0
python,json,validation,marshmallow
48,732,969
1
false
1
0
For now I solved it by subclassing my model schema, adding the additional field there, and then - before loading my data through the model schema - validating it through the subclassed schema. If there is a more elegant solution I'd still love to hear it.
1
1
0
I'm trying to build a Marshmallow schema based on a model, but with one additional field. While this seemed to work by declaring the special field by itself and then setting meta.model to my assigned model, I fail to find a solution so that the additional field gets validated (it is marked as required), but does not tu...
Validate field in Marshmallow but don't deserialize it
0.197375
0
0
507
48,733,840
2018-02-11T16:42:00.000
-1
1
0
0
python,user-interface,pytest
70,441,874
2
false
0
0
So far I have not found any GUI to see the status of the tests. In fact I am working on developing one with Qt5
1
0
0
I'm trying to find a way to execute test-cases with help of Graphical user interface in Pytest. I found few plugins like Pytest-sugar which displays failed/passed status only. But I actually need to select the test-cases that I want to run in GUI display. Is there a way to achieve this ? Thanks in advance !!
How execute pytest-test cases with GUI
-0.099668
0
0
1,806
48,734,600
2018-02-11T17:56:00.000
2
1
0
0
javascript,python,node.js
48,735,967
1
false
0
0
For anyone who might ever find himself in the same situation, I have found a workaround that works for me and might even work for you! So, this is actually quite simple, but only works for a specific application. Here, I have a sensor which is read by a javascript script, but I want a python script to handle the sensor...
1
1
0
I have accomplished running a js file with the following python script: import subprocess subprocess.check_call('npm run test') The file test.js reads sensor data and is only written in javascript because the only available library for this sensor is a NodeJS library. Now, I want the test.js to return those values ever...
Running a javascript script through python using the subprocess library on a raspberry pi and returning values from it
0.379949
0
0
779
48,738,338
2018-02-12T01:22:00.000
0
0
0
0
python,artificial-intelligence
51,712,117
1
false
0
0
You can just measure the loudness of the voice command spoken in mDb. You can then process these numbers to change the UI. Like , higher the loudness makes the bar longer. Let me know which speech to text engine are you using so that I can provide further help.
1
0
0
So basically I have created an A.I assistant and was wondering if anyone had suggestions on how to make visuals that react with the sound?
Making my Artificial Intelligence visuals that react with sound change
0
0
0
41
48,738,584
2018-02-12T02:00:00.000
1
0
1
0
python
48,738,613
1
true
0
0
There is NO ERROR in syntax. +4 signifies that 4 is positive. If you put -4 it is negative 4 and you will get True.
1
0
0
Ok, I get that four is not greater than four but what is confusing me is the + what does that mean? Why doesn't it cause an error? I know its false but whats up with the +?
4 > + 4 I would like to know what the plus stands for?
1.2
0
0
34
48,738,650
2018-02-12T02:10:00.000
2
1
1
0
python,algorithm,pow,modular-arithmetic,cryptanalysis
48,738,710
2
false
0
0
It sounds like you are trying to evaluate pow(a, b) % c. You should be using the 3-argument form, pow(a, b, c), which takes advantage of the fact that a * b mod c == a mod c * b mod c, which means you can reduce subproducts as they are computed while computing a ^ b, rather than having to do all the multiplications fir...
1
1
0
I am trying to calculate something like this: a^b mod c, where all three numbers are large. Things I've tried: Python's pow() function is taking hours and has yet to produce a result. (if someone could tell me how it's implemented that would be very helpful!) A right-to-left binary method that I implemented, with O(lo...
How to implement modular exponentiation?
0.197375
0
0
1,213
48,738,979
2018-02-12T03:01:00.000
0
0
0
0
python-2.7,tensorflow,out-of-memory,gpu
51,146,080
1
false
0
0
You can try using model.fit_generator instead.
1
0
1
I am trying to train my deep learning code using Keras with tensorflow backend on a remote server with GPU. However, even the GPU server states OOM. This was the output: 2018-02-09 14:19:28.918619: I tensorflow/core/common_runtime/bfc_allocator.cc:685] Stats: Limit: 10658837300 InUse: 10314885120 MaxInUse: 1034931...
OOM when training on GPU external server
0
0
0
102
48,739,050
2018-02-12T03:12:00.000
0
0
0
1
python,python-3.x
48,739,078
1
false
0
0
You are running on Windows and trying to use semantics from a POSIX-like shell. Instead of running ./tesy.py try start test.py
1
0
0
Tried searching many posts but unable to find the answer. I have a simple python script (test.py) written as: !/usr/bin/env python (tried with #!/usr/bin/python) print("Hellow World") but when I am trying to run this script from command line (from the script location) as ./test.py, it is always giving error "'.' is not...
Unable to run python script from command line using ./
0
0
0
58
48,739,521
2018-02-12T04:24:00.000
0
0
1
0
python,anaconda,spyder
63,882,538
4
false
0
0
In Windows 10 Anaconda installs itself into a hidden folder called ".anaconda" which is placed in the Users directory under your own profile sub directory. When you first try to use the right-click menue "Open with" it opens up in C:\Program Files so you have to go up one folder and down into Users. You may need to hav...
2
3
0
I installed Spyder using Anaconda, and I am able to launch the IDE using the Spyder icon in my start menu (Win10). I wanted to set my preferences to open all .py files with Spyder, so I followed the Spyder start menu button to an executable, pythonw.exe. The problem is that I cannot launch pythonw.exe by clicking it. H...
How do I make all .py files launch with Spyder?
0
0
0
6,094
48,739,521
2018-02-12T04:24:00.000
1
0
1
0
python,anaconda,spyder
48,739,754
4
true
0
0
You can right click any of your *.py file, go to properties and choose Spyder as "Opens with" choice.
2
3
0
I installed Spyder using Anaconda, and I am able to launch the IDE using the Spyder icon in my start menu (Win10). I wanted to set my preferences to open all .py files with Spyder, so I followed the Spyder start menu button to an executable, pythonw.exe. The problem is that I cannot launch pythonw.exe by clicking it. H...
How do I make all .py files launch with Spyder?
1.2
0
0
6,094
48,739,909
2018-02-12T05:14:00.000
3
0
1
0
python,gem5
48,739,937
1
false
0
0
When you run the first instance it will use the first Python config file. Then when you run the second instance it will run the newly updated config file. It should all work fine as long as its not running on a localhost port, because it will try to use the same port and wont run. If this is not the case then it should...
1
3
0
I'm running a simulation (more on this in a sec) and one of the files for this simulation is a python file that contains configuration details. I want to run multiple versions of this simulation, but I don't know if running one simulation, opening another terminal, then editing the python file and running a second simu...
Is it ok to run python file, edit it, then run it in second terminal
0.53705
0
0
117
48,742,249
2018-02-12T08:32:00.000
0
0
1
0
python,command-line,pycharm,python-venv
66,214,395
3
false
0
0
Or source <path to your environment>/bin/activate on linux
2
7
0
I'm using Python 3.6 in Windows and using PyCharm. I have a .py file that is using packages installed on a venv which is in a different folder to the .py file. I'm trying to run this .py from command line and when I do it gives me a ModuleNotFoundError: No module named '<module>'. The file works fine from PyCharm just ...
Running Python File from Command Line with Libraries in venv
0
0
0
8,300
48,742,249
2018-02-12T08:32:00.000
1
0
1
0
python,command-line,pycharm,python-venv
68,630,370
3
false
0
0
I Think the easiest way to do that is using shebang, and it works both linux and windows. For windows you just have to add #!.\venv\Scripts\python.exe at the very first line at your .py script file.
2
7
0
I'm using Python 3.6 in Windows and using PyCharm. I have a .py file that is using packages installed on a venv which is in a different folder to the .py file. I'm trying to run this .py from command line and when I do it gives me a ModuleNotFoundError: No module named '<module>'. The file works fine from PyCharm just ...
Running Python File from Command Line with Libraries in venv
0.066568
0
0
8,300
48,749,538
2018-02-12T15:11:00.000
1
0
0
1
python,django,celery,celery-task
48,769,758
1
false
1
0
After helping comment from Danila, I have tried celery.result library, which I didnt know anything about before (surprisingly I also havent found any mention of it before). After importing ResultBase from celery.result, which captures the incoming results from task, I was finally able to get the URL of my generated fil...
1
1
0
I got a task to make exports of several big tables in DB asynchronous because right now the amount of records is so big that it takes too much time. So I've successfully moved the code of exporting to the Celery task. It exports and saves the file in a folder on a server. But I am not able to get from the task the whol...
What is the best way to get URl of generated file within Celery task
0.197375
0
0
379
48,750,055
2018-02-12T15:36:00.000
0
0
1
0
python,jupyter-notebook,scheduled-tasks,papermill
66,136,980
10
false
0
0
You can download the notebook in the form of .py and then create a batch file to execute the .py script. Then schedule the batch file in the task scheduler
1
36
0
I have some Python code in a Jupyter notebook and I need to run it automatically every day, so I would like to know if there is a way to set this up. I really appreciate any advice on this.
How to run a Jupyter notebook with Python code automatically on a daily basis?
0
0
0
63,876
48,750,404
2018-02-12T15:54:00.000
1
0
0
0
python,django
48,750,740
1
true
1
0
When you use defer or only to load an instance, the get_deferred_fields() method returns a list of field names that have not been loaded; you should be able to use this to work out which ones will be saved.
1
1
0
I am using Django 1.11, in one of my models I have added actions when the model is saved. However I don't want these actions to be done when only a part of the model is saved. I know that update_fields=('some_field',) can be used to specify which field must be saved. But, when the object has been fetched in the databa...
How to know which field is saved when only() has been used in Django?
1.2
0
0
189
48,753,128
2018-02-12T18:28:00.000
0
0
0
0
python,rstudio,r-markdown,python-import
49,017,753
1
false
0
0
First I had to make a setup.py file for my project. activate the virtual environment corresponding to my project source activate, then run python setup.py develop Now, I can import my own python library from R as I installed it in my environment.
1
0
1
I have developed few modules in python and I want to import them to rstudio RMarkdown file. However, I am not sure how I can do it. For example, I can't do from code.extract_feat.cluster_blast import fill_df_by_blast as fill_df as I am used to do it in pycharm. Any hint? Thanks.
Import my python module to rstudio
0
0
0
378
48,754,352
2018-02-12T19:45:00.000
0
0
1
0
python,numpy,package,jupyter-notebook,python-import
48,758,996
4
false
0
0
Try checking if it is in the 'bin' folder. Alternatively, add the the path to numpy in the environment variables.
1
4
0
I want to use numpy in my Jupyter notebook. However, I came across a weird problem. Despite the fact that: I have a numpy installed in my default python3. From Jupyter I've run a command !pip install numpy and !pip3 install numpy. I restarted my notebook multiple times. After running a command import numpy I get a me...
Python package not found in jupyter even after running pip install
0
0
0
2,730
48,754,469
2018-02-12T19:52:00.000
0
0
0
0
python-3.x
49,515,251
1
false
0
0
Try the below: pd.read_csv("filepath",encoding='cp1252'). This one should work as it worked for me.
1
2
1
I have been trying to upload a csv file using pandas .read() function. But as you can see from my title this is what I get "'utf-8' codec can't decode byte 0x92 in position 16: invalid start byte" And it's weird because from the same folder I was able to upload a different csv file without problems. Something that mi...
Uploading CSV - 'utf-8' codec can't decode byte 0x92 in position 16: invalid start byte
0
0
0
603
48,755,384
2018-02-12T20:56:00.000
1
0
1
1
python,virtualenv,deb
48,755,624
1
true
0
0
I found that it's possible to add an option --deb-systemd FILEPATH which points to which file should be put in systemd for the service and solved my issue.
1
0
0
I'm working on distributing a python package that uses uwsgi and falcon to run an API. To build it as a deb package I am using fpm. After some tinkering I have managed to get my package to include everything I need for my virtualenv, however now I am running into the problem that my service files aren't installing prop...
fpm python uwsgi service
1.2
0
0
117
48,757,083
2018-02-12T23:11:00.000
3
0
0
0
python,nginx,flask,uwsgi
48,763,573
2
true
1
0
Look at the 502 spec: The HyperText Transfer Protocol 502 Bad Gateway server error response code indicates that the server, while acting as a gateway or proxy, received an invalid response from the upstream server. If your app responds anything while hitting an exception, it's most likely garbage and nginx raises...
2
0
0
I am running a Flask application and using uwsgi socket nginx configuration. This may be a stupid question but the issue I am facing is that whenever there is exception raised in Flask code (non handled exception for example 1/0), my nginx gives 502 instead of 500. I wanted to know if raising the exception is not getti...
nginx gives 502 for non handled exception 500 error in flask
1.2
0
0
1,072