Questions tagged as 'python'

0
answers

Android app with python

I'm having trouble, the python program runs perfectly on the computer, but the same does not happen on the phone. It opens the application, loads and closes. I use the kivy interface and generate the apk through the buildozer. This problem occur...
asked by 06.11.2018 / 17:09
0
answers

How to add external training in chatterbot

I created a very simple bot to learn how to use chatterbot. This library already comes with a training, but I wanted to put an extra training with the import of a corpus in Portuguese that I found in github. from chatterbot import ChatBot bot...
asked by 06.11.2018 / 11:46
1
answer

Python Telnetlib connect the port other than 23

Hello; I'm trying to make a python script to connect to port 12612 of localhost. Running the telnet command in linux, manually, it executes. However, in my python script, using the telnetlib library, it apparently is not connecting. I need to...
asked by 03.11.2018 / 21:17
0
answers

Error in deploy pythonanyhere flask

I wish someone could give me a light or the best way to do it. I have an application that shows data collected from an API of a finished game. in my localhost it works perfect, most when it runs on the pythonanywhere server ( link ) it's error....
asked by 03.11.2018 / 21:25
1
answer

How to make server threads in Python?

Hello, I'm a beginner in Python and I'm creating a simple server but I can not create independent threads. When the client connects to the server it calls the worker function that waits for a client message to send a response. It turns out that...
asked by 04.11.2018 / 22:53
0
answers

NetworkX and Matplotlib - Python

Hello, I have a problem when I finish my code. Despite detecting communities, I can not "draw" a line between the elements that are part of the same community. I tried with Matplotlib and Networkx and I could not. # classify community = dict(...
asked by 04.11.2018 / 15:41
1
answer

How to test if all elements are tuples of 2 elements [duplicate]

I am solving an exercise that first of all I have to test if the argument received is a tuple. If yes, I have to test if all its elements are tuples of 2 elements, where the 1st is a string, and the 2nd is an integer. I know that to test if...
asked by 09.11.2018 / 03:00
1
answer

Reorder elements of an on-screen search

I have an application in django and need to reorder the elements of the screen when the user decides to sort by date, popularity, etc. I would not like to submit a new search every time the user selects a filter, I believe the best way would...
asked by 31.10.2018 / 16:02
0
answers

Problem collecting links from a site

Expensive, good morning! I'm writing a program in Python to collect links from a website. The part of the code that collects the links is: links = driver.find_elements_by_xpath('//*[@href]') for link in links: print(link.get_attribute('hre...
asked by 31.10.2018 / 13:48
0
answers

Receive a keyboard URL and ping it in Python [duplicate]

Receive a typed URL via keyboard Pings its URL Returns the ip (if any) of the URL you typed Eg: Enter a URL: www.google.com Pinging www.google.com [172.217.162.164] with 32 bytes of data:  Reply from 172.217.162.164: bytes = 32 time...
asked by 09.11.2018 / 13:09