Re: OOP for System Administrator

2015-04-06 Thread pankaj sharma
Yes Michael, your guess is right. I once was a Java Programmer :) Thanks for the advice and link. Regards, -- https://mail.python.org/mailman/listinfo/python-list

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

Re: Is it possible to deliver different source distributions for different Python versions?

2015-04-06 Thread Dylan Evans
> I would like to distribute a python package with different code for  > Python 2.* than for Python 3.*. (Mostly this is because of different  > unicode string handling).  > There is nothing in to setuptools or PyPi that directly supports  > this scenario.  The 2to3 utility will handle the unicode

Re: Is it possible to deliver different source distributions for different Python versions?

2015-04-06 Thread Steven D'Aprano
On Mon, 6 Apr 2015 09:23 pm, Dylan Evans wrote: [content snipped] Hi Dylan, and welcome! If you're going to post in response to people's questions, would you please disable HTML email and trim your responses? This mailing list is mirrored on Usenet, as comp.lang.python, where HTML is against th

Re: implementing pyshark

2015-04-06 Thread Steven D'Aprano
On 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 Python compile

Re: implementing pyshark

2015-04-06 Thread Peter Otten
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) >capture > i have tried also to run it through interpreter yet, i got this erro

Re: Is it possible to deliver different source distributions for different Python versions?

2015-04-06 Thread Ian Kelly
On Mon, Apr 6, 2015 at 5:52 AM, Steven D'Aprano wrote: > To the rest of the list... didn't somebody write up a wiki post on how to > convince Gmail to be less unreasonable about top posting, quoting, etc? > Does anyone still have the link? There is https://wiki.python.org/moin/GoogleGroupsPython

Re: Is it possible to deliver different source distributions for different Python versions?

2015-04-06 Thread Chris Angelico
On Tue, Apr 7, 2015 at 12:05 AM, Ian Kelly wrote: > There is https://wiki.python.org/moin/GoogleGroupsPython about posting > from Google Groups, but I'm not aware of a similar resource for Gmail, > which has far fewer issues. As long as you compose your email in plain > text mode and remember to m

Re: implementing pyshark

2015-04-06 Thread Michael S.
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 are quite precise in terms of OS development. On 04/06/2015 03:05 PM, Steven D'Aprano wrote: On Mon, 6 Apr 2015 06:

Re: implementing pyshark

2015-04-06 Thread Michael S.
import gevent ---> successful import gevent._threading ---> fails output : In [2]: import gevent._threading --- ImportError Traceback (most recent call last) in () > 1 import gevent._thread

Re: implementing pyshark

2015-04-06 Thread Peter Otten
Michael S. wrote: [Please don't top-post. Thank you] > import gevent ---> successful > import gevent._threading ---> fails > output : > In [2]: import gevent._threading > --- > ImportError Tr

Re: implementing pyshark

2015-04-06 Thread Terry Reedy
On 4/6/2015 8:05 AM, Steven D'Aprano wrote: On 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. Apparen

Re: Python-list Digest, Vol 139, Issue 7

2015-04-06 Thread Dylan Evans
On Mon, Apr 6, 2015 at 5:52 AM, Steven D’Aprano wrote: > I understand that Gmail is a pig about these sorts of things, and makes it > really hard to avoid breaking list etiquette. We appreciate whatever you > can do, and while a few of us may bark occasionally, we don't bite. Oh my days, I’m real

Python library - WMI.py RegistryValueChangeEvent

2015-04-06 Thread Khyati
I have a question about RegistryValueChangeEvent that I have not been able to find an answer to on the internet so far. I would appreciate any help since I have already spent a lot of time finding any material that explains this: What I am trying to do: - create an event when a value for a regi

pypi submission?

2015-04-06 Thread Benjamin Schollnick
Folks, I’m having issues with submitting to pypi. I can register and upload my package. nerv:~ Benjamin$ pip search directory_caching Directory_Caching - A Caching library for Directories & Files nerv:~ Benjamin$ but, if you try to install it using pip: pip install directory_caching R

Re: Python library - WMI.py RegistryValueChangeEvent

2015-04-06 Thread Chris Angelico
On Tue, Apr 7, 2015 at 8:02 AM, Khyati wrote: > I have a question about RegistryValueChangeEvent that I have not been able to > find an answer to on the internet so far. I would appreciate any help since I > have already spent a lot of time finding any material that explains this: > > What I am

Re: Is it possible to deliver different source distributions for different Python versions?

2015-04-06 Thread Dave Hein
On Sunday, April 5, 2015 at 10:28:55 PM UTC-5, Mark Lawrence wrote: > On 05/04/2015 21:38, Dave Hein wrote: > > I would like to distribute a python package with different code for > > Python 2.* than for Python 3.*. (Mostly this is because of different > > unicode string handling). > > > > There is

Re: Is it possible to deliver different source distributions for different Python versions?

2015-04-06 Thread Dave Hein
On Monday, April 6, 2015 at 12:47:05 AM UTC-5, Stefan Behnel wrote: > Dave Hein schrieb am 05.04.2015 um 22:38: > > I would like to distribute a python package with different code for > > Python 2.* than for Python 3.*. (Mostly this is because of different > > unicode string handling). > > > > The

Re: implementing pyshark

2015-04-06 Thread Steven D'Aprano
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 are quite precise in terms > of OS development. What happens if yo

Re: Is it possible to deliver different source distributions for different Python versions?

2015-04-06 Thread Steven D'Aprano
On Tue, 7 Apr 2015 12:05 am, Ian Kelly wrote: > On Mon, Apr 6, 2015 at 5:52 AM, Steven D'Aprano > wrote: >> To the rest of the list... didn't somebody write up a wiki post on how to >> convince Gmail to be less unreasonable about top posting, quoting, etc? >> Does anyone still have the link? > >

Re: Is it possible to deliver different source distributions for different Python versions?

2015-04-06 Thread Dave Hein
On Sunday, April 5, 2015 at 8:01:22 PM UTC-5, Steven D'Aprano wrote: > On Mon, 6 Apr 2015 06:38 am, Dave Hein wrote: > > > I would like to distribute a python package with different code for > > Python 2.* than for Python 3.*. (Mostly this is because of different > > unicode string handling). > >

Re: pypi submission?

2015-04-06 Thread Dave Hein
On Monday, April 6, 2015 at 5:19:29 PM UTC-5, Benjamin Schollnick wrote: > Folks, > > > I'm having issues with submitting to pypi. > > > I can register and upload my package. > > > > nerv:~ Benjamin$ pip search directory_caching > Directory_Caching - A Caching library for Directories

Intsalling wxPython

2015-04-06 Thread Sepi
Hi, I installed wxpython through command line but when I want to use it, python gives me an error: File "/Users/sepidehghanavati/Desktop/test.py", line 1, in import wx ImportError: No module named 'wx' When I check my python path it is version 3.3 (/Library/Frameworks/Python.framework/Ve

Re: Intsalling wxPython

2015-04-06 Thread Sepi Gh
On Monday, 6 April 2015 22:54:26 UTC-4, Sepi wrote: > Hi, > > I installed wxpython through command line but when I want to use it, python > gives me an error: File "/Users/sepidehghanavati/Desktop/test.py", line 1, > in > import wx > ImportError: No module named 'wx' > > When I check my

Re: Intsalling wxPython

2015-04-06 Thread Sepi Gh
On Monday, 6 April 2015 23:27:54 UTC-4, Sepi Gh wrote: > On Monday, 6 April 2015 22:54:26 UTC-4, Sepi wrote: > > Hi, > > > > I installed wxpython through command line but when I want to use it, python > > gives me an error: File "/Users//Desktop/test.py", line 1, in > > import wx > > Impo

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 are quite precise in

Intstalling wxPything

2015-04-06 Thread Sepi
Hi, I installed wxpython through command line but when I want to use it, python gives me an error: File "/Users//Desktop/test.py", line 1, in import wx ImportError: No module named 'wx' When I check my python path it is version 3.3 (/Library/Frameworks/Python.framework/Versions/3.3/

Re: Help with pipes, buffering and pseudoterminals

2015-04-06 Thread Daniel Ellis
Wow, thank you for the long and detailed reply. As for the question ptys and C, no, I have no experience in that area. I've read a bit on the master/slave stuff, but I'm still finding it confusing. The manpage for pty states that it creates a "pair" of virtual devices, one master and one slave.

Re: Intsalling wxPython

2015-04-06 Thread Michael Torrie
On 04/06/2015 09:29 PM, Sepi Gh wrote: >> I got the answer! Just using python 3 instead of python in the command line > > But I get this error now: File > "/Users//Library/Python/3.3/lib/python/site-packages/wx_py/PyWrap.py", line 27 > print "Please specify a module name." >

Re: Intsalling wxPython

2015-04-06 Thread Ian Kelly
On Apr 6, 2015 9:31 PM, "Sepi Gh" wrote: > > On Monday, 6 April 2015 23:27:54 UTC-4, Sepi Gh wrote: > > On Monday, 6 April 2015 22:54:26 UTC-4, Sepi wrote: > > > Hi, > > > > > > I installed wxpython through command line but when I want to use it, python gives me an error: File "/Users//Desktop/

webware for python 3

2015-04-06 Thread rahulmr
I have an old project which uses web ware, where i want to convert to latest version 3.4 I am wondering whether any webware is available for python version 3.4. What I am seeing is the webware version 1.1.1 which is old and seems like it is not supporting the version 3.4 as I could see the pr

Re: webware for python 3

2015-04-06 Thread prennix
https://docs.python.org/2/library/2to3.html > So how should i approach converting this project which is based on python > 2.2.1 ? -- https://mail.python.org/mailman/listinfo/python-list

Re: webware for python 3

2015-04-06 Thread Novocastrian_Nomad
On Monday, April 6, 2015 at 11:26:15 PM UTC-6, rah...@gmail.com wrote: > I have an old project which uses web ware, where i want to convert to latest > version 3.4 > > I am wondering whether any webware is available for python version 3.4. What > I am seeing is the webware version 1.1.1 which is

Re: Help with pipes, buffering and pseudoterminals

2015-04-06 Thread Cameron Simpson
On 06Apr2015 21:13, Daniel Ellis wrote: Wow, thank you for the long and detailed reply. As for the question ptys and C, no, I have no experience in that area. No worries. The use is the same in Python. BTW, you may want a fixed width font; there are some ASCII diagrams in this message. I