Questions tagged as 'python'

1
answer

Tweak selenium python download name

I'm downloading a pdf through the automatic navigation through the site, so I deactivated the pdf preview of chrome and activated to download the pdf automatically, how would I change the name of this pdf file by code? There are 64 files, I thou...
asked by 22.10.2018 / 21:58
1
answer

Error 'BotFalante' object is not callable

I'm creating a 'virtual assistant' in Python, but with some difficulties. Here is the code: #-*- coding: utf-8 -*- from chatterbot.trainers import ListTrainer from chatterbot import ChatBot import pyttsx3 import speech_recognition as sr...
asked by 30.10.2018 / 20:47
1
answer

RabbitMq running on an external server

I have a Django web application that uses celery for asynchronous tasks and RabbitMQ for broker management. When both are running on the same machine, the tasks run smoothly, however the application will run via the internet and is installed on...
asked by 26.10.2018 / 16:29
1
answer

Requests not being sent with payload in Python - Moodle

Good afternoon, I have a problem that is already giving a certain headache. The blessed payload of the request is not being sent to the webservice, only to the url. My code looks like this: class Curso: '''Resgata todas as disciplinas mo...
asked by 27.10.2018 / 22:18
0
answers

Error installing mysqlclient on MacOS with python 3

Error installing on macOs with python 3 pip3 install mysqlclient on MacOS iMac-de-Qcx:~ gabrielveigalima$ pip3 install mysqlclient Collecting mysqlclient Using cached https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f734...
asked by 05.11.2018 / 18:15
0
answers

Error closing Lib ()

I'm doing an implementation of lib pjsua to work with VoIP using python. from datetime import datetime from time import sleep from sys import exit from pysip.callbacks import AbstractCallCallback, AbstractAccountCallback from pysip.states imp...
asked by 20.10.2018 / 05:23
1
answer

Disconnect another django user

Good Morning I made a control of user sessions through login and logout: In login before logging it does an insert in my table: cursor.execute("INSERT INTO usuarios_sessoes (usuario, datahorainicio) VALUES ('%s', '%s')" % (str(username),timezo...
asked by 23.10.2018 / 15:09
1
answer

Monte Carlo Simulation

Good morning, I came across the following terms: Monte Carlo simulation of first order and second order. I've been working with MMC for some time but I'm not familiar with these terms and I have not found any material on that. Can someone please...
asked by 23.10.2018 / 15:06
1
answer

Program crash when executing the function. Tkinter + Python3

This is the following I created a simple program to break numeric md5, but the same hangs when I click on descrypter and it only works again when it finds the hash, but it gets stuck until it finds and has hash like hash md5 of '81748856' which...
asked by 18.10.2018 / 18:18
1
answer

Python - scroll through a list - replace word within word (.docx)

Good morning! I need some help ... I have a word file named ' test.docx '. I would like to replace each term within it with strings that are in a list. See example. The problem that is occurring is that the change is not looping. Can...
asked by 23.10.2018 / 16:00