problem installing a module

2011-03-22 Thread luca72
Hello i try to install pyvisa under winxp sp3 i get this error: home_dir =os.environ['HOME'] return self.data[key.upper()] key error : 'HOME' i have installed a lot of tyme pyvisa and this is the first time that i get this error. Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

invio di una stringa

2011-03-30 Thread luca72
ciao a tutti sniffando i dati del protocollo irc con wireshark noto che a un certo punto per il resume di un trasferimento un noto programma manda questa stringa: PRIVMSG Ex|testtrasf|001 :\001DCC RESUME prova_trasferimento.pdf 58772 5016204\001 a questo punto il server risponde. Utilizzando i soc

Signal on qt

2011-04-12 Thread luca72
hello i have this: def mytest(self): for a in xrange(self.tableWidget.rowCount()): self.combo_test = QtGui.QComboBox() self.connect(self.combo_test, QtCore.SIGNAL("currentIndexChanged(int)"), self.metto_test) self.combo_test.addItems(self.lista_def)

file deleted

2011-04-13 Thread luca72
hello i'm working with eric, running a program eric crash and when i try to open my project again with eric i see that myproject.py is deleted, but my project is still running there is a way to find myprogram.py file aving it in execution? -- http://mail.python.org/mailman/listinfo/python-list

pyc to py

2011-04-13 Thread luca72
I have pyc file written with python 2.6.5 and i need to return to py file, can you give me some ideas tools script etc. Luca -- http://mail.python.org/mailman/listinfo/python-list

write file to a server

2015-01-28 Thread luca72
Hello i'm under windows, i have to write a file from my computer to a local server like taht "\\DOCUMENTALE\my_folder\". How i have to proceed ? Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: write file to a server

2015-01-28 Thread luca72
thanks for the reply i have resolve with the r'.' i have another question on linux i write cp -Ruv source destination There is one way to do it in python? with shutil there is copythree but if the dest dir exist he give back an error. Can you give me some ideas Thanks Luca -- https://ma

matplotlib on osx 10.6

2011-10-07 Thread luca72
hello i try to install matplotlib on osx 10.6 , i have also installed freetype libpng and numpy but i get this error: BUILDING MATPLOTLIB matplotlib: 1.1.0 python: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)]

installeventfilter

2011-10-11 Thread luca72
helo i have this form how i can install the event filter: Class Form(QWidget, Ui_Form): """ Class documentation goes here. """ def __init__(self, parent = None): """ Constructor """ QWidget.__init__(self, parent) self.setupUi(self) Thanks --

matplotlib real time grap.

2006-11-16 Thread luca72
Hello at all. I need to do a real time plot where on the frame i have this like limit line: import math dati = [] for freq in range(int(freqiniziale), (int(freqfinale )+ 1)): forza = float(massa) * ((2*math.pi*freq)**2)/10 dati.append(forza) a

Pycrypto

2006-06-16 Thread luca72
Hello I have to make an easy operation but reading the pycrypto doc. a never see AES example I have to cript this key 'ea523a664dabaa4476d31226a1e3bab0' with the AES. Can you help me for make it with pycrypto Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycrypto

2006-06-16 Thread luca72
Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycrypto

2006-06-16 Thread luca72
Excuse me again, If the string is not a sting but hex number how i have to proced : look this page: http://www.cs.eku.edu/faculty/styer/460/Encrypt/JS-AES.html Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycrypto

2006-06-16 Thread luca72
Hello again i have solve doing this: from Crypto.Cipher import AES stri=(chr(int('9b',16))+chr(int('d3',16))+chr(int('2d',16))+chr(int('24',16))+chr(int('af',16))+chr(int('c9',16))+chr(int('e9',16))+chr(int('d7',16))+chr(int('46',16))+chr(int('69',16))+chr(int('71',16))+chr(int('32',16))+chr(int(

Re: Pycrypto

2006-06-16 Thread luca72
> In [26]:import binascii > > In [27]:binascii.unhexlify('ea523a664dabaa4476d31226a1e3bab0') > Out[27]:'\xeaR:fM\xab\xaaDv\xd3\x12&\xa1\xe3\xba\xb0' > > Ciao, > Marc 'BlackJack' Rintsch Ciao Marc Grazie Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycrypto

2006-06-26 Thread luca72
Hello again You know if is possible save all the encryption process in a text file and not only the result? This will be wery helpful for compare the pycrypto step by step operation, with the hand made operation and see where hand made make a mistake -- http://mail.python.org/mailman/listinfo/p

Pyserial never read

2006-02-16 Thread luca72
Hello at all sorry for my english but i'm Italian. I use pyserial to communicate via rs232 with an extarnal device called smartmouse. I write the exact line that i want , but when i read i read only the echo ond not the other bytes. When i meke the same project with delphi i solve this problem with

Re: Pyserial never read

2006-02-17 Thread luca72
Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyserial never read

2006-02-18 Thread luca72
Thanks for your help, but it don't solve the problem. I receive only the echo and full stop. Many Thanks Best Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyserial never read

2006-02-22 Thread luca72
Thanks to all for the help, here you find the code, pls note if i use handshaking = 1 the application don't start. in the delphi configuratio of com port if i use or not handshaking the application work. Best Regards at all Luca import serial import win32file port = 2 ba

Re: Pyserial never read

2006-02-23 Thread luca72
Hello ALSO... YOU NEVER SPECIFY A VARIABLE TO RECEIVE THE DATA -- ANYTHING YOU DO READ IS BEING DUMPED ON THE FLOOR! I see the read data with a sniffer. with the same serial caracteristic in delphi i obtain the right answer. I use serial writestr and serial readstr. If the serial package is

chrtohex

2006-02-24 Thread luca72
Hello again my friends here's my new problem. How i can translate chr in to hex or int to integer value? Best Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyserial never read

2006-03-02 Thread luca72
Hello i how can set with pyserial the following data? > byte delay= 4 > serial control line: > dtr = high > rts= low Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Pyserial again

2006-03-06 Thread luca72
Hello I have solve the problem of configuration with pyserial but i have another question. The serial port close every time i make the read and re-open when i do i new write. In my script there is not write close , why it close ? Thaks Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyserial again

2006-03-06 Thread luca72
Hello here is a part of code, the values for settings comes from combo box: here i take the ATR of the smartcard inserted in the reader, and than i store the read data in a textctrl. Sniffing the data with serial port monitor i see that the answer is ok but after the answer the port close, why? An

qpushbutton

2007-06-06 Thread luca72
hello again i have another stupid question. How i can set a qpushbutton invisible? thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

qt4 setFlags

2007-06-14 Thread luca72
Hello I make this code: row = self.tableWidget.rowCount() for a in range(row): self.tableWidget.item(row, 0).setFlags(Qt.IsSelectable) i have this erroror : global name Qt is not definied Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

ni pci-6010 Analog Input Multifunction DAQ

2007-06-19 Thread luca72
Hello there is someone that have experience with the ni-pci-6010 Analog Input Multifunction DAQ and python? -- http://mail.python.org/mailman/listinfo/python-list

QPainter

2007-06-20 Thread luca72
Hello using qt3 i do the follow for paint some line in a frame gr = QPainter(self.frame3) gr drawLine(30,10,30,490) and the line is draw. Whit qt4 : gr = QtGui.QPainter(self.frame3) #gr.setPen(QtGui.QPen(QtCore.Qt.black, 1, QtCore.Qt.SolidLine)) gr.drawLine(30,10,30,490) and nothing is draw bu

unify els database

2007-07-02 Thread luca72
Hello How i can use to connect to a unify els database with python Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: unify els database

2007-07-03 Thread luca72
Hello and thanks for your answer, the unify db is on unix-sco and i need to connect with linux machine with python Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: unify els database

2007-07-08 Thread luca72
Many thanks I will try with Jython Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

qt doevent

2007-05-31 Thread luca72
Hello at all I try to use qt , but i have problem, i don't find the command like wx.Yield() in wx or doevent in vb. Can you tell me the same command in qt Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

csv module

2007-08-24 Thread luca72
Hello at all i have a problem with the csv module, really i don't undestud the writerows: if i have to write only one row i do as follow: def scrivo_csv(self): import csv q_righe = self.tableWidget.rowCount() for row in range(q_righe) : e_vuota = self.tableWidge

Sip4.7

2007-09-06 Thread luca72
Hello i have python2.5 with sip4.6 installed on a linux machine, i need to install sip4.7 but i get a lot of error like this: sip.h:525: error: expected specifier-qualifier-list before 'PyMethodDef' sip.h:609: error: expected specifier-qualifier-list before 'sipForceConvertToFunc' sip.h:666: error

file resume

2007-04-16 Thread luca72
Hello at all: if i have one file written in binary mode, how can i append others binary data to this file after the its closure. ex my_file = open('blabal', 'wb') then i write something and then my_file.close() now if i need to open it again and append other binary data how can i proceed? Regards

QPicture and Qpainter PyQt4

2007-09-17 Thread luca72
Hello at all I have made this small tests: this is the form implementation: # -*- coding: utf-8 -*- """ Module implementing Form. """ from PyQt4.QtGui import QWidget from PyQt4.QtCore import pyqtSignature from PyQt4 import * from disegni import PictureFrame from Ui_form import Ui_Form class F

cxfreeze

2007-10-11 Thread luca72
Hello i use under linux cx-freeze My python program import a small module were i set the encoding to iso 8859-1. When i make the executable with cxfreeze and i run it i get this error: Traceback (most recent call last): File "/home/luca72/Desktop/Luca/python/cx_Freeze-3.0.3/initsc

PyQt ProgressBar

2007-10-15 Thread luca72
Hello i have made anly one test like this: from time import sleep barra = QtGui.QProgressBar() barra.setMinimum(0) barra.setMaximum(10) for a in range(10): sleep(1) barra.setValue(a) app.processEvents() But the bar remain fix to 0% don't increase. can you tell me how t

Re: PyQt ProgressBar

2007-10-15 Thread luca72
No one can help pls Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

pyuno and calc

2007-11-06 Thread luca72
Hello Can you tell me where i can find some example that's show how to open an existing oocalc document and get some data from it? Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Direct acces to db unify on unix sco

2006-04-27 Thread luca72
Is it possible or i must use odbc? Rergards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Direct acces to db unify on unix sco

2006-04-28 Thread luca72
Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

encoding

2008-11-25 Thread luca72
hello i'm writing an irc client, i use for encoding the utf-8 but i never see all the typed sign in the correct way, anyone know the standard encodind for the irc channels? Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

xchat

2008-10-27 Thread luca72
Hello i have installed xchat on suse11 i see that there is the possibility to use python for make some script, i see also that the python interface is loaded, but when in python i type import xchat i get that the module don't exist. where is the module? I try also to ask in the xchat forum but i g

beutifulsoup

2008-10-29 Thread luca72
Hello I try to use beautifulsoup i have this: sito = urllib.urlopen('http://www.prova.com/') esamino = BeautifulSoup(sito) luca = esamino.findAll('tr', align='center') print luca[0] >>>href="#">#144.4MB>align="left"> Pc-prova.rar I need to get the following information: 1)Only|G|BoT|05 2)#1 3)4

Ascii codec can't encode

2008-10-30 Thread luca72
hello i have this problem: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 8: ordinal not in range(128) Generally i solve the problem inserting : # -*- coding: ISO-8859-1 -*- at the top of the file but now he don't work can you help me thanks Luca -- http://mail.pytho

Re: Ascii codec can't encode

2008-10-30 Thread luca72
On 30 Ott, 10:27, luca72 <[EMAIL PROTECTED]> wrote: > Hy the code is this: > > Pok\xe9mon > > Luca Sorry is the é -- http://mail.python.org/mailman/listinfo/python-list

Re: Ascii codec can't encode

2008-10-30 Thread luca72
Hello Again the code is this # -*- coding: ISO-8859-1 -*- from BeautifulSoup import BeautifulSoup import urllib sito = urllib.urlopen('http://text.net/') esamino = BeautifulSoup(sito) luca = esamino.findAll('tr', align='center') lunghezza = len(luca) messaggio_per_scar = open('me', 'wb') file_rice

Re: Ascii codec can't encode

2008-10-30 Thread luca72
Hy the code is this: Pok\xe9mon Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Ascii codec can't encode

2008-10-30 Thread luca72
the arror are: >>> Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/eric4/DebugClients/Python/ DebugClientBase.py", line 1006, in __unhandled_exception self.mainThread.user_exception(None, (exctype,excval,exctb), 1) File "/usr/lib/python2.5

Re: beutifulsoup

2008-10-30 Thread luca72
hello Another stupit question instead of use sito = urllib.urlopen('http://www.prova.com/') esamino = BeautifulSoup(sito) i do sito = urllib.urlopen('http://onlygame.helloweb.eu/') file_sito = open('sito.html', 'wb') for line in sito : file_sito.write(line) file_sito.close() how can i pa

cxfreeze

2008-11-04 Thread luca72
Hello i try to use cxfreeze under linux with a easy project made with qt i run this : cxfreeze --install-dir=dist main.py and i get the error ImportError: No module named PyQt4._qt so i try : cxfreeze --install-dir=dist --include-modules='PyQt4._qt' main.py but i get the same error i try also inc

Ip format

2008-11-20 Thread luca72
Hello i have this ip 1578568204 how socket function i can have the ip dotted-quad string? i have try socket.inet_aton get no error but only this ^ETB FF Thanks luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Ip format

2008-11-20 Thread luca72
Many thanks for your help I have also find the correct socket function: ip 1578568204 ip = socket.inet_aton(ip) ip_dot = socket.inet_ntoa(ip) Thanks Luca On 20 Nov, 12:36, Tim Chase <[EMAIL PROTECTED]> wrote: > > Hello i have this ip 1578568204 > > > how socket function i can have the ip dotted

c array

2009-04-29 Thread luca72
hello i'm using ctypes i have this c function PREF0 short usb_tc08_get_single ( short handle, float * temp, short * overflow_flags, short units); where : nt main(void) { short handle = 0; /* The handle to a TC-08 returned by usb_tc08_open_unit() */ char selection =

ctypes

2009-04-29 Thread luca72
can you explain how to use this function : this is the api documentation : PREF0 short usb_tc08_get_single ( short handle, float * temp, short * overflow_flags, short units); This is the sample made in c: int main(void) { short handle = 0; /* The handle to a TC-08 returned

ctypes

2009-04-29 Thread luca72
hello i have this api PREF0 short usb_tc08_get_single ( short handle, float * temp, short * overflow_flags, short units); this is a sample program made in c int main(void) { short handle = 0; /* The handle to a TC-08 returned by usb_tc08_open_unit() */ char selectio

import cherrypy2

2008-06-06 Thread luca72
Hello i can't import cherrypy2 but i don't know why this is the sys path: '', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/ setuptools-0.6c7-py2.5.egg', '/home/pirataja/opo.net/python/lib/ python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg', '/home/pirataja/ opo.net/python/lib/pyth

Re: import cherrypy2

2008-06-06 Thread luca72
On 6 Giu, 10:31, Chris <[EMAIL PROTECTED]> wrote: > On Jun 6, 10:22 am, luca72 <[EMAIL PROTECTED]> wrote: > > > > > Hello i can't import cherrypy2 but i don't know why this is the sys > > path: > > > '', '/home/pirataja/opo.

Re: import cherrypy2

2008-06-06 Thread luca72
No i haven't install lino but if frmp the python of this computer i make import cherrypy2 i import it without problem this is the python path: [EMAIL PROTECTED]:~> python Python 2.5.1 (r251:54863, Jan 10 2008, 18:00:49) [GCC 4.2.1 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "l

Re: Pyserial again

2006-03-07 Thread luca72
Here is my code ; why after the readline the port close? ser = serial.Serial(0) ser.baudrate = 9600 ser.parity = serial.PARITY_ODD ser.stopbits = serial.STOPBITS_TWO ser.bytesize =serial.EIGHTBITS ser.setRTS(level = 0) ser.setDTR(level = 0)

Re: Pyserial again

2006-03-07 Thread luca72
def OnButton1Button(self, event): ser = serial.Serial(0) > ser.baudrate = 9600 > ser.parity = serial.PARITY_ODD > ser.stopbits = serial.STOPBITS_TWO > ser.bytesize =serial.EIGHTBITS > ser.setRTS(level = 0) > ser.setDTR(level = 0) >

Re: Pyserial again

2006-03-07 Thread luca72
Hello Grant and Hello Steve. Pls. don't kill me, but if you try the code above written you see that after the read the port close. My question is only: why it close without the close command? -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyserial again

2006-03-07 Thread luca72
Ok you write that it close :Because the "ser" object is never used after that point, so it get's garbage collected and deleted. But for example if i make one button with the same caracteristic of the previous com port: def OnButton1Button(self, event): ser = serial.Serial(0) >

Re: Pyserial again

2006-03-07 Thread luca72
Peter Hansen was asking you for the code AFTER the "ser.readline()" not BEFORE!! the code you have originally posted here OK IS MY MISTAKE; EXCUSE. I have read the example but if i ask is bucause i don't or maybe i don't understand the example Regaards Luca -- http://mail.python.org/mailman/l

Re: Pyserial again

2006-03-07 Thread luca72
Dear All Thanks for your help, and patience. Now all works in the right mode. Belive me for a person of my age and my background ( i'm a physics, but at my time no computer was allowed) all that for you is simple, is not for me. So many Thanks and Regards Luca -- http://mail.python.org/mailman/

excel application

2006-03-29 Thread luca72
Hello here is the code: from win32com.client import Dispatch packing = Dispatch("Excel.Application") packing.Visible = 1 packing.Workbooks.Add() #packing.Worksheets.Add() packing.ActiveSheet.Range("A1").ColumnWidth = 8 packing.ActiveSheet.Ran

Re: excel application

2006-03-29 Thread luca72
Thanks a lot Luciano Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: excel application

2006-03-29 Thread luca72
Thanks Peter Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

wx.checklistbox

2006-03-31 Thread luca72
Hello I write one file using:...(i think that is ok for write all the lines of my list) luca = open('/tmp/luca', 'w') luca.writelines(list) when i open the application again i use: leggi = open('/tmp/luca', 'r') leggi.readlines() How can i store this line in to a wx.checkbox. Thanks Luc

Re: wx.checklistbox

2006-03-31 Thread luca72
Sorry Philippe is a Wx.checklistbox -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-03-31 Thread luca72
I have solved with appen.items() Regards Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-03-31 Thread luca72
sorry appenditems -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-04-01 Thread luca72
i have again one simple problem: the script is this: def output(self): global lista2 lista2 = open('/lista2', 'w') iteminlista2 = self.checkListBox2.GetStrings() lista2.writelines(iteminlista2) def input1(self): lista2leggi = open('/lista2', 'r')

Re: wx.checklistbox

2006-04-01 Thread luca72
Thank Fredrik I try and then i will inform you Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-04-03 Thread luca72
Hello Frefrik It works but sometimes it insert a blank row so the file is like: item1 item2 item3 item4 etc.. I don't inderstand why. But supposing that we can't solve this, is it possible to delete blanlk items in the checkListBox? -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-04-03 Thread luca72
I have solve in this way i'm sure it's not the best, but it works: lista1leggi = open('/lista1.txt', 'r') mt = lista1leggi.readlines() lunghezzamt = len(mt) lucianino = 0 while lucianino < (lunghezzamt - 1): if mt[lucianino] == '\n': del

hex int and string

2009-11-27 Thread luca72
hello i have a problem i have this str = 'D3' and i need to trasform in 0xd3 type int and not type string how i can do this? if i do hex(int(str,16) ) i obtain a string and this is not what i need. thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: hex int and string

2009-11-27 Thread luca72
i'm using pyscard and for send a command he need a list like this: cmd = [0xdd,0xff, etc] the problem is that i get a text like dd and i need to trasform it in 0xdd for the list and if i use hex i have a sting that is not what i need Luca On 27 Nov, 10:22, Ben Finney wrote: > luca72

Re: hex int and string

2009-11-27 Thread luca72
i have checked and pyscard accept also the decimal notation, Thanks Luca On 27 Nov, 10:38, Lie Ryan wrote: > On 11/27/2009 8:28 PM, luca72 wrote: > > > i'm using pyscard > > > and for send a command he need a list like this: > > > cmd = [0xdd,0xff, etc] >

dvb3

2009-11-28 Thread luca72
hello i try to use the python-dvb3 bindings, but i have some problem: fe = dvb3.frontend.Frontend(0) type = tipo_1 = fe.get_dvbtype() now i need to set the parameters parametri = dvb3.frontend.QPSKParameters(frequency=frequency, inversion=2 , symbol_rate=27500, fec_inner=9) but when i use fe.set_f

subprocess kill

2009-12-04 Thread luca72
Hello i'm using subprocess in this way: self.luca = subprocess.Popen(['/usr/bin/ dvbtune'+frase_sint],shell=True, stdout=self.f_s_l,stderr=self.f_s_e ) then i kill: self.luca.Kill() but the process is still active and the file self.f_s_l increase it size because the process is not killed. How i

Re: subprocess kill

2009-12-04 Thread luca72
On 4 Dic, 23:23, Mike Driscoll wrote: > On Dec 4, 3:50 pm, luca72 wrote: > > > Hello i'm using subprocess in this way: > > self.luca = subprocess.Popen(['/usr/bin/ > > dvbtune'+frase_sint],shell=True, stdout=self.f_s_l,stderr=self.f_s_e ) > > >

Re: subprocess kill

2009-12-04 Thread luca72
On 5 Dic, 00:03, luca72 wrote: > On 4 Dic, 23:23, Mike Driscoll wrote: > > > > > On Dec 4, 3:50 pm, luca72 wrote: > > > > Hello i'm using subprocess in this way: > > > self.luca = subprocess.Popen(['/usr/bin/ > > > dvbtune&#x

Re: subprocess kill

2009-12-04 Thread luca72
On 5 Dic, 00:14, luca72 wrote: > On 5 Dic, 00:03, luca72 wrote: > > > > > On 4 Dic, 23:23, Mike Driscoll wrote: > > > > On Dec 4, 3:50 pm, luca72 wrote: > > > > > Hello i'm using subprocess in this way: > > > > self.luca = subpro

Re: subprocess kill

2009-12-05 Thread luca72
On 5 Dic, 03:06, Carl Banks wrote: > On Dec 4, 3:44 pm, luca72 wrote: > > > > > On 5 Dic, 00:14, luca72 wrote: > > > > On 5 Dic, 00:03, luca72 wrote: > > > > > On 4 Dic, 23:23, Mike Driscoll wrote: > > > > > > On Dec 4, 3:50 pm,

read from bin file

2009-12-17 Thread luca72
I have a bin file that i read as: in_file = open('primo.ske', 'rb') leggo = luca.readlines() i get a list like : ['\x00\x80p\x8b\x00\x00\x01\x19\x9b\x11\xa1\xa1\x1f\xc9\x12\xaf\x81! \x84\x01\x00\x01\x01\x02\xff\xff\x80\x01\x03\xb0\x01\x01\x10m\x7f\n', etc...] but if i try to print luca[0] i get

pythonpath

2010-03-01 Thread luca72
Sorry for my stupid question if i have to load module from a folder i have to append it to the sys path the folder? ex: if my folder module is /home/lucak904/Scrivania/Luca/enigma2 i do this : import sys sys.path.append('/home/lucak904/Scrivania/Luca/enigma2') If this is correct why when i write:

python and enigma2

2010-04-12 Thread luca72
Hello i have a dvb decoder with enigma2 inside, The enigma2 plugin can be made with python. In my plugin i have to use pyserial, but in the decoder the python2.5 reply in this way: r...@bm750:/var/pyserial-2.5-rc2# python setup.py install Traceback (most recent call last): File "setup.py", line 8

Re: python and enigma2

2010-04-12 Thread luca72
On 12 Apr, 19:10, luca72 wrote: > Hello i have a dvb decoder with enigma2 inside, The enigma2 plugin can > be made with python. > In my plugin i have to use pyserial, but in the decoder the python2.5 > reply in this way: > r...@bm750:/var/pyserial-2.5-rc2# python setup.py inst

python glibc crypt() function

2010-04-20 Thread luca72
Hello i have to do this : glibc crypt() function, using salt $1$abcdefgh$ cryptPw = crypt(plainPw, "$1$abcdefgh$") I can do it in python, with package i need? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: python glibc crypt() function

2010-04-20 Thread luca72
On 20 Apr, 19:38, Peter Otten <__pete...@web.de> wrote: > luca72 wrote: > > Hello i have to do this : > > glibc crypt() function, using salt $1$abcdefgh$ > > > cryptPw = crypt(plainPw, "$1$abcdefgh$") Thanks The result is correct i obtain the same with cty

socked and bytes operation

2010-04-21 Thread luca72
Hello i have this question : i connect to the server in this way: sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) sock.connect(('192.168.1.11',11502)) rcv = sock.recv(8124) here i get 14 random bytes , in a string with strange chars like : ¬¨^.á‹•Ò a„ãj I think because sock.recv return a st

Re: socked and bytes operation

2010-04-21 Thread luca72
On 21 Apr, 20:42, John Nagle wrote: > luca72 wrote: > > Hello i have this question : > > i connect to the server in this way: > > sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) > > sock.connect(('192.168.1.11',11502)) > > rcv = sock.recv(8124) &

string caracters:

2010-04-22 Thread luca72
i get a string from a web server and i save it in to a file, that i open the file and i read the string: the string looks like : http://lhti.gs/JKBTYD after the read i use webbrowser open (sting), but i get the error because at the end of the string are added '%0D%0A', and if i ask for the len of t

Re: socked and bytes operation

2010-04-24 Thread luca72
i attach some part of the server so maybe you can help me to understand : Packet description (before encryption) Messages sent back and forth between newcamd and a cardserver always consist of a three byte header and (optional) data bytes. The header always starts with a command tag byte. This i

pysms

2010-05-06 Thread luca72
Hello Has anyone used pysms can you tell me with wich gsm module it works? Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

stupid question about html page

2010-07-01 Thread luca72
hello with webbrowser i open the html or php etc page, how i can save the opened page with python? Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: stupid question about html page

2010-07-01 Thread luca72
On 1 Lug, 10:16, Mithrandir wrote: > luca72 wrote in news:abfb7720-6132-4b7b-8084- > 5c1a48164...@y11g2000yqm.googlegroups.com: > > > hello > > with webbrowser i open the html or php etc page, how i can save the > > opened page with python? > > > Thanks

  1   2   >