Questions tagged as 'python'

1
answer

Read serial port values using Pyserial

I created a plugin to monitor an Arduino presence sensor for Nagios. The plugin read serial port values in Arduino. The problem is that Nagios does not let the plugin running, it performs takes the values and shuts down. That way it does n...
asked by 26.11.2014 / 14:23
0
answers

How to draw a line using turtle geometry?

I'm trying to complement my answer to a circumference intersection question . In this answer, at a given moment, I get an equation of the line through the coefficients a,b,c : r: a*x + b*y + c = 0 I would like to represent this line...
asked by 06.12.2017 / 03:59
1
answer

Creating and communicating with daemon

I have a Python application where I need to keep it online all the time. The application has its own console, which is where I make the communication and step parameters. I understand that I can create the Daemon to leave it online all the...
asked by 18.02.2015 / 15:32
1
answer

How to Force End a Thread in Python?

How to force Thread completion in Python? Example: import threading def funcao(): print("Função executando em tarefa paralela.") print("Função executando em tarefa paralela.") print("Existem outras threads dela mas só essa tem...
asked by 23.06.2018 / 08:45
0
answers

Mock a raw_input

I have the following functions with raw input, which should receive a list [x, y] def input_origem(): origem = raw_input("Entre com o valor de x: ") origem = eval(origem) return origem def input_saida(): destino = raw_input("E...
asked by 22.12.2016 / 00:26
2
answers

How to execute a Python command with JS?

I have a button and when I click it I want js to execute a .py command on the server side. How do I do this?     
asked by 17.07.2017 / 14:52
1
answer

Web Scraping Selenium + Python in site with dynamic generation via JS = difficulty to map elements

Good afternoon. I'm developing a script that: access a system; Within the environment, you find certain information; generates a kind of report; creates a spreadsheet with the data. My problem is still before parse. I can access the...
asked by 28.06.2017 / 21:23
3
answers

How to get the mime of a file through Python?

How can I get Mimetype from a file via Python? I'm not just talking about getting through the extension, but also reading the file metadata. How can I do this? Note : I tried to use python-magic on Windows but it did not work....
asked by 27.06.2017 / 15:05
0
answers

How to load Flaskbb with Nginx?

I followed the documentation and installed everything without problems, but Nginx only shows the default page of it warning that it is running. The flaskbb forum never loads. I tried to remove the import from the Nginx default configuratio...
asked by 19.09.2016 / 02:50
0
answers

Error: The manifest file does not exist

I'm having this error when compiling my crosswalk app with the command python make_apk.py , after this command I also pass the values as --package , --manifest , but only the manifest is not working. I think there must be a fol...
asked by 10.06.2015 / 01:29