Re: [Tutor] pytsk

2016-04-29 Thread SM
I often refer to the same blog (hacking exposed), and find many of the links broken, even though there is a lot of very useful information there. I use pytsk on Linux and always build it from source from here: https://github.com/py4n6/pytsk/releases/download/<>/pytsk-<>.tgz e.g:

[Tutor] Question on os.popen

2014-01-19 Thread SM
: snip return I am not sure where I am going wrong. Isn't the way I am reading the popen's output correct? But if so, why does it work for the first few iterations? Any tips appreciated. Thanks, in advance. -SM ___ Tutor maillist - Tutor

Re: [Tutor] Question on os.popen

2014-01-19 Thread SM
to be working. Does that mean this is one of the limitations of os.popen? I am not sure. Sorry for not giving details on the OS and python version I am using: Ubuntu and Python3. Thanks, SM On Sun, Jan 19, 2014 at 8:20 PM, Alan Gauld alan.ga...@btinternet.comwrote: On 19/01/14 23:36, SM wrote: I read

Re: [Tutor] Question on os.popen

2014-01-19 Thread SM
Eryksun: Thanks for your reply. Yes, as I mentioned in my reply to Allen, I used subprocess.check_output and it worked for me. -SM On Sun, Jan 19, 2014 at 11:33 PM, eryksun eryk...@gmail.com wrote: On Sun, Jan 19, 2014 at 6:36 PM, SM sunith...@gmail.com wrote: This time it probably ran

Re: [Tutor] Question on os.popen

2014-01-19 Thread SM
In the upper left corner of that page is a dropdown you can use to get to 3.3 for example. Thanks for that info. On Sun, Jan 19, 2014 at 11:42 PM, Dave Angel da...@davea.name wrote: SM sunith...@gmail.com Wrote in message: Sorry for not giving details on the OS and python version I am

Re: [Tutor] Pretty printing XML using LXML on Python3

2013-11-29 Thread SM
Thank you, eryksun. using tounicode seems to work on this small piece of code. It still has issues with my code which is generating a big XML code. I will figure out why. -SM On Thu, Nov 28, 2013 at 2:45 PM, eryksun eryk...@gmail.com wrote: On Thu, Nov 28, 2013 at 2:12 PM, SM sunith

[Tutor] Pretty printing XML using LXML on Python3

2013-11-28 Thread SM
text/child\n/root\n' $ Thanks in advance. -SM ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] UnicodeDecodeError while parsing a .csv file.

2013-10-28 Thread SM
not able to figure out the cause of this error. Any clues as to why I am seeing this error, are appreciated. Thanks, -SM ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] UnicodeDecodeError while parsing a .csv file.

2013-10-28 Thread SM
gailer bgai...@gmail.com wrote: On 10/28/2013 6:13 PM, SM wrote: Hello, Hi welcome to the Tutor list I have an extremely simple piece of code which could be even simpler - see my comments below which reads a .csv file, which has 1000 lines of fixed fields, one line at a time

Re: [Tutor] UnicodeDecodeError while parsing a .csv file.

2013-10-28 Thread SM
, SM wrote: Hello, I have an extremely simple piece of code which reads a .csv file, which has 1000 lines of fixed fields, one line at a time, and tries to print some values. 1 #!/usr/bin/python3 2 # 3 import sys, time, re, os 4 5 if __name__==__main__: 6 7

Re: [Tutor] UnicodeDecodeError while parsing a .csv file.

2013-10-28 Thread SM
Thanks to all, for so much information. I just checked that the encoding is Latin-1 and it works when I use it in the file open call. (instead of ignoring it). On Mon, Oct 28, 2013 at 7:54 PM, Danny Yoo d...@hashcollision.org wrote: Hi Sm, Note: if possible, I would strongly suggest reusing

Re: [Tutor] How to Terminate a Popen call?

2013-10-23 Thread SM
Hello eryksun, Thanks, very much, for the very quick and helpful reply. It fixed my problem. -Sm On Tue, Oct 22, 2013 at 10:33 PM, eryksun eryk...@gmail.com wrote: On Tue, Oct 22, 2013 at 9:04 PM, SM sunith...@gmail.com wrote: def run(self): (process, err) = Popen(self.fwcmd

[Tutor] How to Terminate a Popen call?

2013-10-22 Thread SM
any help. Thanks! -Sm ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to access a method defined in one class from another class (which is a thread) in Python3?

2013-08-12 Thread SM
ok. Some responses in line at [SM] On Sun, Aug 11, 2013 at 12:05 PM, Alan Gauld alan.ga...@btinternet.comwrote: On 09/08/13 16:50, SM wrote: Sorry I only just picked this up. (ex: self.tab_fw = QtGui.QWidget(), self.tab_ann = QtGui.QWidget(), etc), its own textEdit window and its own

Re: [Tutor] How to access a method defined in one class from another class (which is a thread) in Python3?

2013-08-09 Thread SM
On Fri, Aug 9, 2013 at 4:01 AM, Alan Gauld alan.ga...@btinternet.comwrote: On 09/08/13 02:52, SM wrote: OP is me? Not sure what it stands for, but I am a 'she' :) Oops. my bad. Stereotyping is a bad habit. [SM]: Not your fault. My bad too. Dog's face tells little about the owner... I

[Tutor] How to access a method defined in one class from another class (which is a thread) in Python3?

2013-08-08 Thread SM
as to what is the correct way to do something like this? Thanks in advance. -SM ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to access a method defined in one class from another class (which is a thread) in Python3?

2013-08-08 Thread SM
an attribute in Ui_MainWindow() class: self.textEdit_fwcmdlineoutput = QtGui.QTextEdit(self.tab_fw) This is what is making me get confused as to why it complains that there is no attribute. Thanks, -SM On Thu, Aug 8, 2013 at 1:17 PM, Prasad, Ramit ramit.pra...@jpmorgan.comwrote: SM wrote: I am

Re: [Tutor] How to access a method defined in one class from another class (which is a thread) in Python3?

2013-08-08 Thread SM
' Wonder why it says the class/object has no attribute. Thanks, -SM On Thu, Aug 8, 2013 at 1:22 PM, Alan Gauld alan.ga...@btinternet.comwrote: On 08/08/13 17:23, SM wrote: I am defining multiple classes (some of them are threads) I have been writing Python programs for a few months

Re: [Tutor] How to access a method defined in one class from another class (which is a thread) in Python3?

2013-08-08 Thread SM
] self.textEdit_fwcmdlineoutput = QtGui.QTextEdit(self.tab_fw) self.textEdit_fwcmdlineoutput.setObjectName(_fromUtf8(textEdit_fwcmdlineoutput)) self.gridLayout.addWidget(self.textEdit_fwcmdlineoutput, 6, 0, 1, 3) Thanks, -SM On Thu, Aug 8, 2013 at 4:41 PM, Prasad, Ramit ramit.pra...@jpmorgan.comwrote

Re: [Tutor] How to access a method defined in one class from another class (which is a thread) in Python3?

2013-08-08 Thread SM
On 08/08/13 21:24, SM wrote: example, I ended up doing exactly what you suggested. I am sure I am missing something, as it is giving the same error: Here is what I am doing based on your suggestion: class bcThread(threading.Thread): def h(self, y

Re: [Tutor] How to access a method defined in one class from another class (which is a thread) in Python3?

2013-08-08 Thread SM
! (I am yet to see why and where it crashed) I am not sure I know what the problem or the solution is. Hence the email Thanks for all your time, suggestions and help. Thanks, -SM On Thu, Aug 8, 2013 at 6:30 PM, Alan Gauld alan.ga...@btinternet.comwrote: On 08/08/13 23:02, eryksun wrote: You

[Tutor] Implementing Copy/Cut/Paste menu actions using MainWindow/PyQT4

2013-08-01 Thread SM
do it? Thanks! SM ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to redirect console output to a TextEdit box on a QT Python Gui ?

2013-06-20 Thread SM
Thanks, much, Ramit. On Wed, Jun 19, 2013 at 4:44 PM, Prasad, Ramit ramit.pra...@jpmorgan.comwrote: SM wrote: Hello Chris, Thanks for your response. I have a follow-up question, if you don't mind, to understand your answer better. I am running a python3 script. So first part of your

Re: [Tutor] How to redirect console output to a TextEdit box on a QT Python Gui ?

2013-06-19 Thread SM
of setText, I am a bit confused as to how I can redirect multiple print statements to the setText call. Can you please clarify? Thanks! Sm On Sun, Jun 16, 2013 at 2:02 PM, Chris “Kwpolska” Warrick kwpol...@gmail.com wrote: On Sun, Jun 16, 2013 at 7:15 PM, SM sunith...@gmail.com wrote: Hi

[Tutor] How to redirect console output to a TextEdit box on a QT Python Gui ?

2013-06-16 Thread SM
am trying to use, appreciate that as well. Thanks, -SM ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Fwd: QT Python: How to re-use the return value of fileDialog.openFileName() ?

2013-05-27 Thread SM
Thanks! I defined a function, as you suggested, to call when the button was clicked. But then I also had to use self.fileDialog from within the function. Not sure how I could avoid using fileDialog. I also defined global variable (under the class) and assigned it to the filename, so I could

Re: [Tutor] Fwd: QT Python: How to re-use the return value of fileDialog.openFileName() ?

2013-05-27 Thread SM
Yes, the following works. path = QtGui.QFileDialog.getOpenFileName() Thanks! On Mon, May 27, 2013 at 9:45 AM, Matthew Ngaha chigga...@gmail.com wrote: On Mon, May 27, 2013 at 2:14 PM, SM sunith...@gmail.com wrote: But then I also had to use self.fileDialog from within the function

Re: [Tutor] Fwd: QT Python: How to re-use the return value of fileDialog.openFileName() ?

2013-05-27 Thread SM
Thank you, for the details. On Mon, May 27, 2013 at 10:13 AM, eryksun eryk...@gmail.com wrote: On Mon, May 27, 2013 at 9:45 AM, Matthew Ngaha chigga...@gmail.com wrote: On Mon, May 27, 2013 at 2:14 PM, SM sunith...@gmail.com wrote: But then I also had to use self.fileDialog from within