Re: Promiscuous ports under Linux

2017-05-04 Thread Peter Pearson
On Thu, 4 May 2017 18:04:02 + (UTC), Grant Edwards wrote: > On 2017-05-04, Peter Pearson wrote: > >> I'm curious to survey all my LAN traffic in various ways, and it seems >> likely that I will see phenomena that I don't understand, and focussing >> in on those phenomena is likely to require

Re: Elegant way to merge dicts without overwriting keys?

2017-05-04 Thread Peter Otten
Malcolm Greene wrote: > I have a bunch of pickled dicts I would like to merge. I only want to > merge unique keys but I want to track the keys that are duplicated > across dicts. Is there a newer dict-like data structure that is fine > tuned to that use case? > Short of an optimized data structure

Re: Python 2.7 on Windows: Copy&Paste install

2017-05-04 Thread eryk sun
On Thu, May 4, 2017 at 8:27 PM, jeff saremi wrote: > I have scoured the net for any hints on this. We have some prod machines > where we're not able to run MSI installations. > Is it possible to copy Python2.7 from say c:\Python2.7 from one machine to > another? > What other steps do we need bey

Re: Python 2.7: no such module pip

2017-05-04 Thread eryk sun
On Thu, May 4, 2017 at 8:24 PM, jeff saremi wrote: > Did a fresh install of python-2.7.amd64.msi on windows 10. > > The install finishes with success. Python runs. No pip when the following is > run: > > C:\> python -m pip install elastalert > C:\Python27\python.exe: No module named pip Maybe yo

Python 2.7: no such module pip

2017-05-04 Thread jeff saremi
Did a fresh install of python-2.7.amd64.msi on windows 10. The install finishes with success. Python runs. No pip when the following is run: C:\> python -m pip install elastalert C:\Python27\python.exe: No module named pip -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7 on Windows: Copy&Paste install

2017-05-04 Thread MRAB
On 2017-05-04 21:27, jeff saremi wrote: I have scoured the net for any hints on this. We have some prod machines where we're not able to run MSI installations. Is it possible to copy Python2.7 from say c:\Python2.7 from one machine to another? What other steps do we need beyond the following si

Re: os.getlogin() Error

2017-05-04 Thread Cameron Simpson
On 04May2017 20:42, Wildman wrote: On Fri, 05 May 2017 09:00:58 +1000, Cameron Simpson wrote: On 04May2017 15:03, Wildman wrote: The program installs using the Debian package system (.deb) and an entry is created in the Applications Menu. The strange thing is that the crash only occurs when

bugs.python.org registration never completes

2017-05-04 Thread jeff saremi
i've been waiting for my confirmation email. Never received it Someone should look into the registration. And there is no admin emails where you could send your issue to! thanks Jeff -- https://mail.python.org/mailman/listinfo/python-list

Python 2.7 on Windows: Copy&Paste install

2017-05-04 Thread jeff saremi
I have scoured the net for any hints on this. We have some prod machines where we're not able to run MSI installations. Is it possible to copy Python2.7 from say c:\Python2.7 from one machine to another? What other steps do we need beyond the following since these DONT work: 1. Copy all files 2.

Re: Elegant way to merge dicts without overwriting keys?

2017-05-04 Thread MRAB
On 2017-05-05 02:23, Malcolm Greene wrote: I have a bunch of pickled dicts I would like to merge. I only want to merge unique keys but I want to track the keys that are duplicated across dicts. Is there a newer dict-like data structure that is fine tuned to that use case? Short of an optimized da

Re: os.getlogin() Error

2017-05-04 Thread Chris Angelico
On Fri, May 5, 2017 at 12:05 PM, Wildman via Python-list wrote: > On Fri, 05 May 2017 09:58:02 +1000, Chris Angelico wrote: > >> On Fri, May 5, 2017 at 9:50 AM, Wildman via Python-list >> wrote: >>> I'm afraid that won't work. The user environment is different >>> than root. A different set of

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 09:58:02 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 9:50 AM, Wildman via Python-list > wrote: >> I'm afraid that won't work. The user environment is different >> than root. A different set of variables. However you have >> given me a possible workaround. You can

Re: Elegant way to merge dicts without overwriting keys?

2017-05-04 Thread Skip Montanaro
On Thu, May 4, 2017 at 8:23 PM, Malcolm Greene wrote: > I have a bunch of pickled dicts I would like to merge. I only want to > merge unique keys but I want to track the keys that are duplicated > across dicts. Is there a newer dict-like data structure that is fine > tuned to that use case? There

Best practice tips for sizing thread/process pools and concurrent futures max_workers?

2017-05-04 Thread Malcolm Greene
Looking for best practice tips on how to size thread/process pools or max workers with the concurrent futures module. Are there specific heuristics that can be applied or is this more a manual tuning process based on the run time behavior of a script and the nuances of one's environment? Are there

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 09:00:58 +1000, Cameron Simpson wrote: > On 04May2017 15:03, Wildman wrote: > >>The program installs using the Debian package system (.deb) and an >>entry is created in the Applications Menu. The strange thing is >>that the crash only occurs when the program is run from the

Elegant way to merge dicts without overwriting keys?

2017-05-04 Thread Malcolm Greene
I have a bunch of pickled dicts I would like to merge. I only want to merge unique keys but I want to track the keys that are duplicated across dicts. Is there a newer dict-like data structure that is fine tuned to that use case? Short of an optimized data structure, my plan is to convert dict keys

Re: os.getlogin() Error

2017-05-04 Thread Chris Angelico
On Fri, May 5, 2017 at 9:50 AM, Wildman via Python-list wrote: > I'm afraid that won't work. The user environment is different > than root. A different set of variables. However you have > given me a possible workaround. You can't create a variable > for root unless you are root so that approa

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 08:31:15 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 8:18 AM, Wildman via Python-list > wrote: >> I am using pkexec to restart so $SUDO_USER is not set. For some >> reason sudo, su and su-to-root will freeze the first instance of >> the program and not let it close

Re: os.getlogin() Error

2017-05-04 Thread Cameron Simpson
On 04May2017 15:03, Wildman wrote: I tried testing on Mint and Ubuntu and the program would crash. The GUI would appear briefly and disappear. On Ubuntu a crash report was created so I was able to figure out what was going on. It had the traceback and showed that os.getlogin threw an error.

Re: os.getlogin() Error

2017-05-04 Thread Chris Angelico
On Fri, May 5, 2017 at 8:18 AM, Wildman via Python-list wrote: > I am using pkexec to restart so $SUDO_USER is not set. For some > reason sudo, su and su-to-root will freeze the first instance of > the program and not let it close until the second instance closes. > I have tried every method I ca

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 07:46:32 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 6:03 AM, Wildman via Python-list > wrote: >> I will try to explain... >> The program reports system information based on the user's name. >> Things such as passwd, groups and shadow info. However, the >> program m

Re: os.getlogin() Error

2017-05-04 Thread Chris Angelico
On Fri, May 5, 2017 at 6:03 AM, Wildman via Python-list wrote: > I will try to explain... > The program reports system information based on the user's name. > Things such as passwd, groups and shadow info. However, the > program must have elevated privileges to get the shadow info so > the progra

os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
I wrote a Linux only GUI program using Tk that reports various system information using a tabbed Notebook. I have tested the program on Debian, SoldyX and MX-15 and the program runs perfectly. I tried testing on Mint and Ubuntu and the program would crash. The GUI would appear briefly and disapp

Re: Promiscuous ports under Linux

2017-05-04 Thread Grant Edwards
On 2017-05-04, Peter Pearson wrote: > I'm curious to survey all my LAN traffic in various ways, and it seems > likely that I will see phenomena that I don't understand, and focussing > in on those phenomena is likely to require more flexible filtering > than Wireshark can provide. I expect to le

Re: Promiscuous ports under Linux

2017-05-04 Thread Peter Pearson
On Thu, 04 May 2017 10:26:45 GMT, alister wrote: > On Wed, 03 May 2017 23:57:49 +, Peter Pearson wrote: > >> Cobbling together a minimalist ethernet-sniffing program, I was hoping >> to use this simple mechanism for setting the socket to "promiscuous >> mode" (to see all traffic going past, in

Re: __getattribute__'s error is not available in __getattr__

2017-05-04 Thread Jason Maldonis
Thank you Ethan and Chris for the tips. I may be able to adapt that decorator for my use cases -- I hadn't thought of using something like that. Ethan, I'll drop a note over at Python Ideas too with some details about this. Thanks for your help, Jason On Tue, May 2, 2017 at 9:47 PM, Chris Angel

Re: Problems

2017-05-04 Thread justin walters
On Thu, May 4, 2017 at 4:42 AM, aohK euqsarraT wrote: > I have been using pycharm + python 3.6 for a year and then i updated > pycharm, that was when things became a super buggy mess. I tried to > reinstall everything from scratch but the python installation keeps having > the previous wrong path

Re: TypeVar single constraint not allowed, why?

2017-05-04 Thread oliver
On Wed, 3 May 2017 at 18:36 Gregory Ewing wrote: > Ned Batchelder wrote: > > Couldn't you simply annotate it as ": type", without using a TypeVar? > > Not if you want to constrain two types to be the same type. > > Exactly! It would be a lot more expressive to write something like (with Type assu

Re: Python package to accept payments in Internet

2017-05-04 Thread Victor Porton
Gregory Ewing wrote: > Victor Porton wrote: >> You carp with words, finding a problem where there is no real problem, >> just words (I mean the word "hack") which sound like a problem. > > Words are important. The very fact that it sounds like a > problem *is* a problem if you're trying to persua

Problems

2017-05-04 Thread aohK euqsarraT
I have been using pycharm + python 3.6 for a year and then i updated pycharm, that was when things became a super buggy mess. I tried to reinstall everything from scratch but the python installation keeps having the previous wrong paths that pycharm and python 3.6 are not connected, how do i make m

Re: Promiscuous ports under Linux

2017-05-04 Thread alister
On Thu, 04 May 2017 14:11:04 +0300, Marko Rauhamaa wrote: > alister : > >> On Wed, 03 May 2017 23:57:49 +, Peter Pearson wrote: >> >>> Cobbling together a minimalist ethernet-sniffing program, I was hoping >>> to use this simple mechanism for setting the socket to "promiscuous >>> mode" (to s

Need SpiffWorkflow el6 rpm file.

2017-05-04 Thread santosh . yelamarthi
Hi, I am trying to find SpiffWorkflow compatible to el6 rpm file. Please suggest me where am I get this. @Thanks in advance -- https://mail.python.org/mailman/listinfo/python-list

Re: Promiscuous ports under Linux

2017-05-04 Thread Marko Rauhamaa
alister : > On Wed, 03 May 2017 23:57:49 +, Peter Pearson wrote: > >> Cobbling together a minimalist ethernet-sniffing program, I was >> hoping to use this simple mechanism for setting the socket to >> "promiscuous mode" (to see all traffic going past, instead of just >> traffic addressed to m

Re: Promiscuous ports under Linux

2017-05-04 Thread alister
On Wed, 03 May 2017 23:57:49 +, Peter Pearson wrote: > Cobbling together a minimalist ethernet-sniffing program, I was hoping > to use this simple mechanism for setting the socket to "promiscuous > mode" (to see all traffic going past, instead of just traffic addressed > to my machine): > >