Re: Problem while building Python 3.6 from source.

2017-01-15 Thread Michael S
Sat, Jan 14, 2017 at 5:00 AM, Michael S wrote: >> Hello, >> I am new to this mailing-list and I really don't know whether this >> mail should belong to python-dev. Please tell me, if so. > > Hi and welcome! This kind of thing is best on this list initially. > >> Unfo

Problem while building Python 3.6 from source.

2017-01-13 Thread Michael S
Hello, I am new to this mailing-list and I really don't know whether this mail should belong to python-dev. Please tell me, if so. Unfortunately, I have got the following problem: I wanted to build and install Python 3.6 from source but did not succeed. To clarify my situation, I got as an operat

Re: implementing pyshark

2015-04-06 Thread Michael S.
On 04/07/2015 03:55 AM, Steven D'Aprano wrote: On Mon, 6 Apr 2015 10:45 pm, Michael S. wrote: I am using kali-linux(debian based). i have installed all from repository. i haven't tried yet to use the source but i don't think it was compiled incorrectly. Kali's developers

Re: implementing pyshark

2015-04-06 Thread Michael S.
module named gevent_threading On 04/06/2015 03:11 PM, Peter Otten wrote: Michael S. wrote: Hi everyone. while trying to implement pyshark, i am getting this error: import pyshark capture = pyshark.LiveCapture(interface='wlan0') capture.sniff(timeout=50)

Re: implementing pyshark

2015-04-06 Thread Michael S.
n Mon, 6 Apr 2015 06:40 pm, Michael S. wrote: Hi everyone. while trying to implement pyshark, i am getting this error: [...] ImportError: No module named _threading Well that's awesome. I don't think I've seen that in Python 2.7 before. Apparently, you are using a version of

implementing pyshark

2015-04-06 Thread Michael S.
Hi everyone. while trying to implement pyshark, i am getting this error: import pyshark capture = pyshark.LiveCapture(interface='wlan0') capture.sniff(timeout=50) capture i have tried also to run it through interpreter yet, i got this error: import pyshark

wxpython on FreeBSD 6.2 broken

2007-08-26 Thread Michael S
Good day all, I was wondering if anyone was using the latest wxpython on FreeBSD 6. I just installed it yesterday as well as wxGlade. wxGlade doesn't function properly - it does not display any controls. I then tried some simple examples from the web and half of them don't work. Anyone aware of t

Re: Python for web development ...

2007-08-22 Thread Michael S
Check out http://www.modpython.org/, you can also use python with CGI http://docs.python.org/lib/module-cgi.html or fastcgi http://www.fastcgi.com/ --- [EMAIL PROTECTED] wrote: > > Hi everyone, > > I have to do a web based application for my final > year project. Since, > i am only familiar wi

python & MS Office

2007-08-14 Thread Michael S
http://msherman77.blogspot.com/2007/08/python-com.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance doesn't work

2006-12-04 Thread Michael S
How about calling base class __init__ and then the pass statement? --- zefciu <[EMAIL PROTECTED]> wrote: > I have a problem with inheritance under python. The > class definition is > longer, but the troublesome thing is: > > from PIL import Image > class MandelbrotImage (Image): > pass

Re: PythonWin And Excel Problem

2006-12-01 Thread Michael S
Andrea, Also, could it be that when you do the following: sheet.Range("A1:A10").Value = therand you actually initialize all 10 cells to the first element of the array? Try to iterate and initialize every cell separately. Michael --- Andrea Gavana <[EMAIL PROTECTED]> wrote: > Hi All, > > I

Re: PythonWin And Excel Problem

2006-12-01 Thread Michael S
First of all you should call the random.seed() function. That was at least what I´ve always done. seed([x]) Initialize the basic random number generator. Second of all, calling random.random() will give you this: random() Return the next random floating point number in the range [0.0, 1.0

Re: is mod_python borked?

2006-11-02 Thread Michael S
I used it for various projects. It's alright. The only problem I had, was that I was unable to get mod_python and pysqlite to work together. Other than that it was pretty good. --- walterbyrd <[EMAIL PROTECTED]> wrote: > I am considering python, instead of php, for > web-application > development

Re: report progress from C function

2006-11-01 Thread Michael S
What if it doesn't do exactly what you need to? How do you debug through that code? --- Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Michael S wrote: > > > My assembler is very basic, so it wouldn't help, > while > > my C is OK, well sort of. > > &g

Re: report progress from C function

2006-11-01 Thread Michael S
My assembler is very basic, so it wouldn't help, while my C is OK, well sort of. BTW. Neither have I looked at the machine code that the assembler produces. --- Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Michael S wrote: > > > I downloaded Pyrex and ran it through the

Re: report progress from C function

2006-11-01 Thread Michael S
I downloaded Pyrex and ran it through their own example. The code looks quite messy, and I even saw a few "goto"s. I think I will stick with my own code for now. Thanks in any case. --- John Machin <[EMAIL PROTECTED]> wrote: > Michael S wrote: > > Good day all. >

Re: report progress from C function

2006-10-31 Thread Michael S
> BTW, why did you rewrite in C rarher than using > Pyrex? I was not aware of pyrex. I didn't really mind doing some C, it made me remember the syntax. Thanks a lot. I did think that I could pack a function address as a parameter. --- John Machin <[EMAIL PROTECTED]> wrote:

report progress from C function

2006-10-31 Thread Michael S
Good day all. I rewrote part of my program in C, it's a usually a long task. I wanted to be able to report the progress back to my python program. In my module (in addition to the function that performs the above-mentioned task) there is a function that returns the variable, indicating the progre

Re: best way to check if a file exists?

2006-10-31 Thread Michael S
If you want to open the file for writing just open it with append mode. open(¨filename", "a"). If it doesn't exist - it'll create it, and if it does it'll start appending to the file For reading - os.path.exists("filename"). Or (doesn't make much sense, but still) try to open it for reading and p

Re: looping through two list simultenously

2006-10-29 Thread Michael S
What if you do it in 2 separate threads? --- CSUIDL PROGRAMMEr <[EMAIL PROTECTED]> wrote: > folks > I have two lists > > i am trying to loop thorough them simultenously. > > Here is the code i am using > > f1 = os.popen('ls chatlog*.out') > data1=f1.readlines() > f1.close() > > data1=[x.str

Re: cleaner way to write this?

2006-10-25 Thread Michael S
How about this? def create_db_name(self): dlg = wx.TextEntryDialog(self.frame, 'Enter a database name:', 'Create New Database') db_name = None #or db_name = "" if dlg.ShowModal() == wx.ID_OK: db_name = dlg.GetValue()

Re: [wxPython-users] Re:

2006-10-25 Thread Michael S
--- Josiah Carlson <[EMAIL PROTECTED]> wrote: > > Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > At Tuesday 24/10/2006 23:25, Michael S wrote: > > > > >I extended part of my program in C, since that > part > > >was too involved for Python. Now whe

Re:

2006-10-25 Thread Michael S
oking. --- Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Tuesday 24/10/2006 23:25, Michael S wrote: > > >I extended part of my program in C, since that part > >was too involved for Python. Now when I import the > >module I created and call its functions

[no subject]

2006-10-24 Thread Michael S
Good day all. I extended part of my program in C, since that part was too involved for Python. Now when I import the module I created and call its functions, I am trying to feedback some information bac to my wxPython program. The function runs for a while and I wanted to update a progress bar, bu

python plotting with greek symbols within labels recommendations?

2005-10-04 Thread michael . s . gilbert
hello all, this message is geared toward those of you in the scientific community. i'm looking for a python plotting library that can support rendering greek symbols and other various characters on plot axes labels, etc. I would prefer something that adheres to tex formatting (as implemented in la