Questions tagged as 'python'

1
answer

I can not send more than one message because the client hangs up

I do not understand why after sending a message I can not send any more messages to my server from my client #servidor import socket host = "127.0.0.1" port = 6666 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print ("Socket Creat...
asked by 13.04.2017 / 12:27
1
answer

object has no attribute 'save' when I try to save form in django

Good afternoon friends I have a slight problem, and I do not see the solution, I'm trying to save a search value by rank of fronts in the database using a form, all right, but when I try to save it gives me this error : 'FiltroFechas' object h...
asked by 04.04.2017 / 20:00
1
answer

UnboundLocalError, Python

Good morning, I'm doing a code, and I've come across this error in my function which belongs to the movement sense of a "car" that moves in a matrix. Therefore, if it is empty, " " , it can be moved but if it encounters a frame | it...
asked by 26.03.2017 / 17:53
0
answers

Unfulfilled dependencies with python-sphinx

Use the sudo purge python command without knowing that you were deleting important files for the ubuntu because you had some problems with the python libraries and wanted to reinstall them all from the beginning. The problem is that when...
asked by 25.05.2017 / 11:07
0
answers

OsError [Errno 22] Invalid argument

I have a problem with a web application that I am currently developing. I was developing it on another computer but I decided to finish the development on a new computer and the application works normally until I try to register a news item in t...
asked by 09.05.2017 / 22:14
0
answers

How to create the "pulse" effect of material design in PyQt?

I've been trying to integrate the effect "press" to the buttons or widgets that allow it but I have not been able to do it I started creating environments with HTML and behind python to apply all the necessary effects I understand that the...
asked by 09.05.2017 / 15:26
0
answers

Python parser error with expressions evaluator

Hello, I have been implementing several numerical methods in python for a long time, in this case I am implementing the bisection method and it works perfectly but the problem is in the expression evaluator that is giving me an error that I do n...
asked by 21.03.2017 / 14:55
0
answers

sqlalchemy pythom get sql

I am interested in knowing if there is any way to obtain the sql that is generated when an insert is made in this way, the general idea is to be able to save it in the base as a kind of log. resultado = db.session.add(addingUser)     
asked by 21.03.2017 / 20:54
1
answer

Python Pandas KMeans: clustering to a dataFrameGroupBy type

I want to pass an KMeans.fit(X) argument to dataFrameGroupBy , but I get this error: ValueError: setting an array element with a sequence. Would converting the dataFrameGroupBy into a multidimensional array be the only...
asked by 28.03.2017 / 10:31
0
answers

Error is not JSON serializable with Python and OAuth 2.0 Client ID API from Google

This is my Python code + OAuth 2.0 Client ID API: #!/usr/bin/env python from urllib import request import urllib import urllib.parse import json import requests client_id='xxxxxxx.googleusercontent.com' client_secret='xxxxxxxxxxxxxxx' query...
asked by 20.03.2017 / 19:59