pexpect with kadmin

2020-12-22 Thread Joseph L. Casale
Anyone ever used pexpect with tooling like kadmin and have insight into how to manage interacting with it? After setting up debug logging, I was able to adjust the expect usage to get the input and output logs to at least appear correct when setting a password for a principal, however even with a

sqlalchemy blows up and puts in addresses instead of data when mixing fields from different dataframes

2020-12-22 Thread Rhett Prince
sqlalchemy blows up and puts in addresses instead of data when mixing fields from different dataframes when composing a class derived from model, populating fields from different dataframes blows up.fields from one data frame are corrupted after session add and session commit fields from

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Mirko via Python-list
On 22.12.2020 at 20:24 Chris Green wrote: > Yes, I do have the Python source. The only thing I don't have the > source for is a .so file and that's why I can't simply migrate the > program(s) from Python 2 to Python 3. > If it's just one .so and that library is compatible with basic libs such a

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Grant Edwards
On 2020-12-22, Chris Green wrote: > Grant Edwards wrote: > >> I should have mentioned that bundlers like cx_freeze require that you >> have the Python source for the main app. I don't remember if you >> mentioned source or not... > > Yes, I do have the Python source. The only thing I don't have

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Chris Green
Grant Edwards wrote: > On 2020-12-22, Chris Green wrote: > > Grant Edwards wrote: > >> On 2020-12-22, Chris Green wrote: > >> > [...] > >> > > >> > How realistic/possible would it be to run the utility in a separate > >> > environment with its own copies of Python2 and any modules and > >> > li

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Grant Edwards
On 2020-12-22, Chris Green wrote: > Grant Edwards wrote: >> On 2020-12-22, Chris Green wrote: >> > [...] >> > >> > How realistic/possible would it be to run the utility in a separate >> > environment with its own copies of Python2 and any modules and >> > libraries needed? I would install these

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Chris Green
Grant Edwards wrote: > On 2020-12-22, Chris Green wrote: > > [...] > > > > How realistic/possible would it be to run the utility in a separate > > environment with its own copies of Python2 and any modules and > > libraries needed? I would install these 'by hand', i.e. not using > > 'apt' so the

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Chris Angelico
On Wed, Dec 23, 2020 at 2:21 AM Chris Green wrote: > > I have (as discussed here) a printer utility that uses Python 2 and I > can't update it to Python 3 because it has a .so library file which is > compiled for Python 2. I think I have exhausted all the possibilities > for converting it to Pyth

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Grant Edwards
On 2020-12-22, Chris Green wrote: > [...] > > How realistic/possible would it be to run the utility in a separate > environment with its own copies of Python2 and any modules and > libraries needed? I would install these 'by hand', i.e. not using > 'apt' so they would stay as installed even as my

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Michael Torrie
On 12/22/20 9:44 AM, Chris Green wrote: > I have it running on 20.04 (with a couple of compatibility packages > from a PPA) but I know I start hitting problems as soon as I move to > 20.10. So that does sound like an excellent idea. Where can I find > information about building container type thi

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Chris Green
Michael Torrie wrote: > On 12/22/20 8:10 AM, Chris Green wrote: > > I have (as discussed here) a printer utility that uses Python 2 and I > > can't update it to Python 3 because it has a .so library file which is > > compiled for Python 2. I think I have exhausted all the possibilities > > for co

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Grant Edwards
On 2020-12-22, Chris Green wrote: > I have (as discussed here) a printer utility that uses Python 2 and I > can't update it to Python 3 because it has a .so library file which is > compiled for Python 2. I think I have exhausted all the possibilities > for converting it to Python 3 so now I'm loo

Re: Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Michael Torrie
On 12/22/20 8:10 AM, Chris Green wrote: > I have (as discussed here) a printer utility that uses Python 2 and I > can't update it to Python 3 because it has a .so library file which is > compiled for Python 2. I think I have exhausted all the possibilities > for converting it to Python 3 so now I'

Installing Python (2.7) 'by hand' on Ubuntu - possible?

2020-12-22 Thread Chris Green
I have (as discussed here) a printer utility that uses Python 2 and I can't update it to Python 3 because it has a .so library file which is compiled for Python 2. I think I have exhausted all the possibilities for converting it to Python 3 so now I'm looking at how to keep it working on my [x]ubu

Re: Use dot notation to call a function without using parentheses

2020-12-22 Thread MRAB
On 2020-12-22 11:16, Walk More wrote: I am trying to use dot notation to call a function without using parentheses, see code section with *** I have looked into SimpleNamespace, namedTuple, dataclass... but no luck. Below is my sample code to date. Any suggestions? class MyTest: def __in

Re: Use dot notation to call a function without using parentheses

2020-12-22 Thread Walk More
On Tuesday, December 22, 2020 at 6:31:08 AM UTC-5, Python wrote: > Walk More wrote: > > I am trying to use dot notation to call a function without using > > parentheses, see code section with *** > > I have looked into SimpleNamespace, namedTuple, dataclass... but no luck. > > Below is my sampl

Use dot notation to call a function without using parentheses

2020-12-22 Thread Walk More
I am trying to use dot notation to call a function without using parentheses, see code section with *** I have looked into SimpleNamespace, namedTuple, dataclass... but no luck. Below is my sample code to date. Any suggestions? class MyTest: def __init__(self): self.page1 = Page()