Questions tagged as 'python-2.7'

0
answers

I can not fix an IndexError: index 717 is out of bounds for axis 0 with size 64

The issue is that I'm trying to make image recognition software in a python notebook that I shot in Google Cloud, and this is the code I wrote to check if it works. Thanks in advance. h,w = (64,64) #I am doing an image recognition software, bu...
asked by 29.11.2018 / 21:59
1
answer

install netcdf in python windows

I would like to know how to install the netcdf library in python, in Windows. I never installed a bookstore there, so I would like to learn how to do it. Regards, Florence.     
asked by 26.11.2018 / 16:12
0
answers

MultiValueDictKeyError in / systembox / buy_do

Help because of the error when I run python manage.py runserver and it does not recognize my products. views.py def comprar(request): productos = literal_eval(request.POST["productos"]) pago = literal_eval(request.POST["pago"])...
asked by 17.11.2018 / 21:02
0
answers

MultiValueDictKeyError

hi I'm trying to make a sales system where to make a sale I need to open cash but I get the errors in my code of views amount = Decimal (request.POST ["amount"]), total = Decimal (request.POST ["total"]), difference = Decimal (request.POST ["di...
asked by 14.11.2018 / 00:19
3
answers

Doubts about arrangements at PYTHON

   ~ Load two arrays of integers of N and M positions.   ~ It is requested to generate a program that produces the intersection between the two arrangements. a = [] b = [] n1 = int(input("Ingrese la cantidad de elementos del primer arreglo: "...
asked by 14.11.2018 / 01:15
0
answers

open netcdf files in python

I want to open an .nc file in python but I get the following problem, which I do not understand what it means.         from netCDF4 import Dataset           rootgrp = Dataset ("cdd_ACCESS1-3_OND_1979-2005_2.5bilineal.nc", format="NETCDF4")...
asked by 07.11.2018 / 14:55
0
answers

Unable to import name 'get_uid' (keras)

I'm trying to run keras of a github code link I get problems on the line that matters Sequentials . from keras.models import Sequential The error that appears to me: File "C:\Users\adri_\Anaconda2\lib\site-packages\ke...
asked by 05.11.2018 / 09:58
0
answers

virtualenv creates two python and python3 files

at the time I created a virtual environment and tried to activate it, I said that the "activate" file did not exist, when I entered the folders to see what was happening, I did not have any file other than one that said python and another that s...
asked by 02.11.2018 / 16:02
0
answers

Pass a value to a field

These are my models class Colegio(models.Model): id_colegio = models.AutoField(primary_key=True) nombre_colegio = models.CharField(max_length=100, blank=True, null=True) def __unicode__(self): return self.nombre_colegio...
asked by 02.11.2018 / 14:29
0
answers

MultiValueDictKeyError: "'products'"

I do not know why I do not recognize my products as I solve my error, my version is 2.7 of python thanks in advance views.py def comprar(request): productos = literal_eval(request.POST["productos"]) pago = literal_eval(request....
asked by 20.11.2018 / 01:58