Questions tagged as 'python'

0
answers

Thread problem with Django and Celery Eventlet

I have a problem with an idea that I have in mind but to achieve it I need a lot of machine resources. The idea is this: Create a web system, with django, in which there are several users (suppose there are many); each user can create one or...
asked by 13.03.2018 / 01:01
1
answer

Modify Excel file with Python without losing Data Validation

I want to open with Python an .xlsx file that has several columns with Data Validation activated, change a few cells of columns without that attribute and save the file again (or copy it to another) keeping the Data Validation functionality as i...
asked by 13.02.2018 / 19:46
2
answers

Use end within a function

I can not use end within the print function. I'm using version 2.7 of python. Example: for i in range(10): print("el numero es " + str(i), end=" ") I need you not to make the line break and print it on the same line     
asked by 14.02.2018 / 00:14
1
answer

The best book to learn Python [closed]

What is the best book to learn Python and where can I download it for free in pdf or epub ?     
asked by 17.02.2018 / 20:18
1
answer

Python - Pop up window with wait message. Qt, Pyside

I have a program with an interface made with Qt, Pyside. After completing the fields of the interface the program performs actions that take a while. What I would like is to put a pop-up window with a message and that does not let the user...
asked by 15.02.2018 / 07:53
0
answers

Use Py2Exe with PyQt?

I intend to transcribe a C ++ program that uses Qt, to Python, since it was time to update it from the old version 3 of Qt. However, when trying to recompile using the new Qt5, I find that half of the code must be rewritten again. Then it occurr...
asked by 13.02.2018 / 15:01
1
answer

'_io.BufferedReader' object has no attribute 'size'

In my web application about Django I have this code: docPDF = open('publicaciones/Dictamen-'+nombreRevista+'.pdf','rb') dictamen.fileEsp.save(name=final_name,content= docPDF) However, the last line gives me an error:    '_ io.BufferedRea...
asked by 13.02.2018 / 14:34
1
answer

Doubt in odoo to make unique a field without using sql sentence

The issue is that some time ago I did a odoo test, in which I was asked to have a field in a table I know that with sql it would be something like that _sql_constraints = [('def_identification_unique', 'unique(blablabla)', 'blablabla mus...
asked by 20.02.2018 / 21:28
1
answer

Do not insert records in mysql database

I have a problem with inserting records in MySQL database with python, using the code shown below I try to insert the values that I show and they do not appear in the DB. I made a query and if it is done correctly, I checked the parameters and a...
asked by 20.02.2018 / 21:35
0
answers

Python 3: import dll with ctypes or numpy.ctypeslib

I want to work with the Autodesk Robot Structural Analysis API to extract information. With IronPython I import the references from a library dll in the following way: import clr clr.AddReferenceToFileAndPath(‘midirectorio\Intero...
asked by 13.02.2018 / 11:13