Questions tagged as 'python-3.x'

0
answers

This windows version does not support the required bluetooth api

I have a question, I package my files using cx_Frezee in python 3.6.2, and PyQt5.9 However, when executing the .exe file on another machine, I get the following error: Try repacking the file but now on the machine where I got the err...
asked by 15.08.2018 / 08:01
0
answers

How can I make my entrypoint.sh not add any errors once I have generated the logs command in dockers?

**    I'm having problems directly with the entrypoint, it does not let me access the link . Once it looks for the entrypoint, this error occurs:   users_1 | sh: /usr/src/app/entrypoint.sh: not found   I'm working on Windows. When I run...
asked by 16.08.2018 / 01:19
0
answers

How can I create an executable of PYTHON 3 and work on any platform?

I have a project in python3 with Tkinter library and I want to make executable of this project, use this tool pyinstaller yourprogram.py but when I try it on other platforms it does not open anything. Does anyone know if there is any other tool...
asked by 17.08.2018 / 03:03
0
answers

Error: print image_to_string (image)

I am implementing an image recognition algorithm with pytesseract import pytesseract import sys import argparse try: import Image except ImportError: from PIL import Image from subprocess import check_output path = "captcha.png" def r...
asked by 14.08.2018 / 21:25
0
answers

how to print a .docx file from python to a usb printer

Good morning I would like to know how I can send a .docx file to a USB printer connected to the PC. This is an example I found on the web: winword.exe /p "c:\marta.doc" /mFilePrintDefault /mFileExit but it did not work for me this is...
asked by 18.08.2018 / 18:56
0
answers

How to define an attribute of type DateTime in python

I would like to know how to set attributes in python within a class. And tried the following code: def __init__(self): self.fecha_Y_Hs = datetime.datetime.now() self.decripcion = '' I am new in this language and I would like to know...
asked by 09.08.2018 / 22:56
0
answers

Problem "Multiprocessing"

A moment ago I started watching videos to use in a "practical" way Python in everyday life and I have a problem. My intention is to make a program in which I "predict" the curve in the bag that I could catch. Well my problem is that when I use t...
asked by 22.08.2018 / 04:10
0
answers

I want to separate the attributes of a txt

I have a question as to how many attributes a file has for example then I have part of my code where I recognize that there are 2 tables in this file but what I want to do is determine the number of attributes in each table for example in...
asked by 22.08.2018 / 04:04
0
answers

how to run a function at a specific time in python

How can I execute a function of a python script every certain hour? This is what I have so far: import sched import time def saludar(): print("hola") programador = sched.scheduler() programador.enterabs(time, 1, saludar()) programador.ru...
asked by 10.08.2018 / 04:50
0
answers

escpos AttributeError: function 'usb_detach_kernel_driver_np' not found

I just want to print a ticket using escpos in windows but it throws me the following error: AttributeError: function 'usb_detach_kernel_driver_np' not found this is the code: from escpos.printer import Usb p = Usb(0x1A86,0x7584,0,0x82,0...
asked by 05.08.2018 / 23:25