Questions tagged as 'python'

0
answers

AttributeError: Numpy object 'NpzFile' has no 'zip' attribute?

I tried to download DrQA , a reading comprehension system applied to open domain questions developed by the Facebook research group. It included asking for the trained models provided and the data for the answer to questions from Wikipedia. How...
asked by 17.07.2018 / 01:38
1
answer

python3.5.4 does not start with pythonw, but does it run with the IDLE?

#!/usr/bin/env python3.5.4 ## -*- coding: utf-8 -*- #from tkinter import * # Gestor grafico tkinter import sqlite3 # Motor de Base de datos clv_bd = sqlite3.connect('cddpbd.db') # Abrir Base de Datos...
asked by 17.07.2018 / 01:30
0
answers

Connect database from the view

I have this configuration in the settings.py to work with sql server that works fine DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'almaceninterno', 'USER': 'postgres',...
asked by 16.07.2018 / 13:52
0
answers

error formset Django

I am editing a product form in which I want to replace several sizes in a product. If you have created 5 and when updating the pass 1 single form returns this error:    MultiValueDictKeyError at / edit-article-boutique / test /       "'sizes...
asked by 16.07.2018 / 08:45
0
answers

Best way to communicate two computers knowing only one IP

I'm trying to create a program that incorporates a kind of exchange JSONs messaging system, so there is an A or central team, of which we know its static IP and one or more B computers, which have dynamic IP and unstable. The communication th...
asked by 12.07.2018 / 11:59
0
answers

Python Excel graphics in existing file OpenPyXl

I have the following problem, when I want to save the graphic made taking the data of my excel I get it blank ... wb = openpyxl.load_workbook(j) sheet = wb.get_sheet_by_name('{}'.format(itemm)) data = Reference(sheet, min_col=2, min_row=2, max...
asked by 11.07.2018 / 23:24
2
answers

User orders a dictionary in python

I'm starting in python, and I need to make a program where the elements of a dictionary will be displayed randomly (randomly), and then the user will have to sort them. The dictionary is ready, but I can not think of how to do it so the user can...
asked by 12.07.2018 / 00:16
0
answers

how to assign data from a matrix to several objects in python

Good day to all I am programmed a movement in Vpython for which I used a "for" loop that allowed me to create a number of 20 spheres in random positions stored in matrices, after that use a second "for" that It allowed me to create the new posit...
asked by 18.07.2018 / 21:16
0
answers

cx_freeze, how to import specific classes of PyQt5 and not the entire library?

I'm using Cx_Freeze to create .exe files and be able to run on windows without installing the python interpreter. I use the following Script, setup.py: from cx_Freeze import setup, Executable base = None executables = [Executable("Gui.py", bas...
asked by 10.07.2018 / 00:48
0
answers

reading of inertial sensors in independent PI3 and Python 3.x threads

I need to read the values of 2 inertial sensors permanently and in order to read it while executing my main program whose code apart from defining these threads and executing them must request inputs by keyboard and then make comparisons with th...
asked by 10.07.2018 / 00:57