Questions tagged as 'python'

1
answer

Docker does not run my container

I am generating a container for my application with the following dockerfile FROM django ADD ./cryptoassistant /cryptoassistant WORKDIR /cryptoassistant RUN ["chmod", "+x", "/cryptoassistant/manage.py"] RUN ["pip", "install", "--upgrade"...
asked by 21.08.2018 / 19:21
1
answer

InsecurePlatformWarning when using pip on Ubuntu

I am observing an alert message (not an error) InsecurePlatformWarning when executing the pip command in Linux: $ pip search reportlab /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:...
asked by 02.12.2015 / 15:39
1
answer

PyQT - Switch between windows with StackedWidget

I divided the application into parts, but for now I just want it to work when I try to switch between windows (without creating a new one or closing it). I'm doing this with buttons. Open well without problems and start in the main menu, and...
asked by 07.03.2016 / 00:31
1
answer

Django - AttributeError: Manager is not accessible via ManagerLog instances

I am new to python, I am currently developing an application, which is responsible for generating several very simple reports, however there is a report which I have not yet been able to solve, I have researched but I still can not find the solu...
asked by 14.12.2017 / 13:23
1
answer

Problem with GEO activated and without Lat or Long in Tweet's with Tweepy and Python

I think in the question I said everything. I use Python 3.5, Tweepy and after a search (search) of tweets through a keyword, I see that many have the GEO active but I can not access Lat and Lng using Tweepy. Does anyon...
asked by 21.02.2016 / 17:41
1
answer

Problem with pandas.DataFrame.shift function

I have the following dataframe in python: months = [1,2,3,4,5,6,7,8,9,10,11,12] data1 = [100,200,300,400,500,600,700,800,900,1000,1100,1200] df = pd.DataFrame({ 'month' : months, 'd1' : data1,...
asked by 27.09.2018 / 01:18
2
answers

How do I bleed colors from blue to green in matplotlib?

I'm doing a program to graph 22 different lines but I can not make the color shift be gradual from blue to green so that you can see better the difference in growth between each of the lines instead of a color random Please help import matplot...
asked by 13.09.2018 / 02:18
2
answers

click button with selenium

Hi, I'm new to Selenium. This is the code of the button where I want to click <a href="javascript:bp(26834)">Clic para ver</a> I navigate to the indicated page but it does not reflect the click action that should show a hidde...
asked by 14.09.2018 / 23:46
2
answers

Problem with array in Python

I'm starting with Python and I have a problem with the code I'm doing ... from numpy import * import random def busquedaLineal(buscado, arreglo): encontrado = 0 for i in range(len(arreglo)): if arreglo[i] == buscado: en...
asked by 24.05.2017 / 23:54
1
answer

Filter data imported by gspread Python 3.x

I'm importing data from a Google Sheets spreadsheet, but I need to filter some rows and not load all of them. Someone runs this library, and knows if there is an argument to filter rows. I am doing it in the following way so far: import...
asked by 02.08.2017 / 18:21