Re: subprocess.Popen does not launch audacity

2025-01-10 Thread Tim Johnson via Python-list
On 1/10/25 12:53, Thomas Passin via Python-list wrote: On 1/10/2025 4:00 PM, Tim Johnson via Python-list wrote: On 1/10/25 11:32, MRAB via Python-list wrote: ,,, snipped Below is the pertinent code:    Popen(choice, stdout=PIPE, stderr=PIPE,     stdin=PIPE, close_fds=True

Re: subprocess.Popen does not launch audacity

2025-01-10 Thread Tim Johnson via Python-list
On 1/10/25 11:32, MRAB via Python-list wrote: ,,, snipped Below is the pertinent code:    Popen(choice, stdout=PIPE, stderr=PIPE,     stdin=PIPE, close_fds=True) My guess is my argument list is either insufficient or an argument is causing the problem, but am unsure of which

subprocess.Popen does not launch audacity

2025-01-10 Thread Tim Johnson via Python-list
Using Python 3.12.3 on Ubuntu 24.04 I've converted a legacy python2 script to python3. All went well. However, a glitch from python2 remains. The script uses dmenu to create menus to pick applications. Applications are then invoked from python using subprocess.Popen(). I have never been abl

Re: No module name mutagen

2025-01-01 Thread Tim Johnson via Python-list
On 12/31/24 15:00, Tim Johnson wrote: . Snipped I resolved this by extrapolating known paths of other non-distro pipx installs, and am back in business now. I'm taking lots of notes. For some reason, even after running updatedb, I had no luck finding with locate. I was not

No module name mutagen

2024-12-31 Thread Tim Johnson via Python-list
Please let me grumble for a minute : I've been using python since before 1. 5, when I could email Guido van Rossum directly with questions and on  at least one occasion we swapped stories about our cats. I put six kids though college writing python, and now after being retired for ten years,

Re: ModuleNotFoundError for youtube_dl

2024-12-09 Thread Tim Johnson via Python-list
On 12/9/24 14:59, Tim Johnson wrote: Recently did a refresh of ubuntu 24.04 With no code changes am now getting a *ModuleNotFoundError *for youtube_dl Relevant code is import sys sys.path.append("/home/tim/.local/share/pipx/venvs/youtube-dl/lib/python3.12/site-packages/youtube_dl"

ModuleNotFoundError for youtube_dl

2024-12-09 Thread Tim Johnson via Python-list
Recently did a refresh of ubuntu 24.04 With no code changes am now getting a *ModuleNotFoundError *for youtube_dl Relevant code is import sys sys.path.append("/home/tim/.local/share/pipx/venvs/youtube-dl/lib/python3.12/site-packages/youtube_dl") import youtube_dl ' Navigating to /home/tim/.l

Re: Correct module for site customization of path

2024-11-01 Thread Tim Johnson via Python-list
On 11/1/24 08:32, dieter.mau...@online.de wrote: ... After the recent upgrades I had to install youtube_dl with pipx for the new python version. When I ran the script which imported youtube_dl, I got an import error as it appears the path to the module was not in sys.path I see at several op

Correct module for site customization of path

2024-10-31 Thread Tim Johnson via Python-list
FYI: I am retired programmer using a recent upgrade to ubuntu 24.04 and python 3.12 My needs are that of a hobbyist at this time. I am on a single user home desktop with root privileges available. After the recent upgrades I had to install youtube_dl with pipx for the new python version. When

Re: Pips for python2 and python3

2021-03-22 Thread Tim Johnson
On 3/21/21 5:44 PM, Dan Stromberg wrote: python3 -m pip install Got it. Thanks a lot. -- Tim tj49.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Pips for python2 and python3

2021-03-21 Thread Tim Johnson
On 3/21/21 5:14 PM, MRAB wrote: Tn 2021-03-21 23:13, Tim Johnson wrote: Using ubuntu 20.04 as a recent install with python3 (3.8.5) which was installed as part of the original distribution install and python2 (2.7.18) that has been installed using apt. I have a large amount of utilities

Pips for python2 and python3

2021-03-21 Thread Tim Johnson
Using ubuntu 20.04 as a recent install with python3 (3.8.5) which was installed as part of the original distribution install and python2 (2.7.18) that has been installed using apt. I have a large amount of utilities written in python2 which I need to maintain until I convert that code to python

Re: ModuleNotFoundError with click module

2019-12-02 Thread Tim Johnson
On 12/1/19 11:46 PM, Peter Otten wrote: Tim Johnson wrote: OK. Now I have /usr/local/lib/python3.7/site-packages/Click-7.0.dist-info/ which holds the following files: INSTALLER LICENSE.txt METADATA RECORD top_level.txt WHEEL I haven't a clue as to how to proceed! Never seen

Re: ModuleNotFoundError with click module

2019-12-01 Thread Tim Johnson
On 12/1/19 3:41 PM, Tim Johnson wrote: On 12/1/19 12:26 AM, Peter Otten wrote: Tim Johnson wrote: Using linux ubuntu 16.04 with bash shell. Am retired python programmer, but not terribly current. I have moderate bash experience. When trying to install pgadmin4 via apt I get the following

Re: ModuleNotFoundError with click module

2019-12-01 Thread Tim Johnson
On 12/1/19 12:26 AM, Peter Otten wrote: Tim Johnson wrote: Using linux ubuntu 16.04 with bash shell. Am retired python programmer, but not terribly current. I have moderate bash experience. When trying to install pgadmin4 via apt I get the following error traceback when pgadmin4 is invoked

Re: ModuleNotFoundError with click module

2019-12-01 Thread Tim Johnson
On 12/1/19 12:26 AM, Peter Otten wrote: Tim Johnson wrote: Using linux ubuntu 16.04 with bash shell. Am retired python programmer, but not terribly current. I have moderate bash experience. When trying to install pgadmin4 via apt I get the following error traceback when pgadmin4 is invoked

ModuleNotFoundError with click module

2019-11-30 Thread Tim Johnson
Using linux ubuntu 16.04 with bash shell. Am retired python programmer, but not terribly current. I have moderate bash experience. When trying to install pgadmin4 via apt I get the following error traceback when pgadmin4 is invoked: Traceback (most recent call last):   File "setup.py", line 17,

Re: Your IDE's?

2019-03-26 Thread Tim Johnson
rther customized with plenty of my own elisp code. They won't take any of that away unless they pry it from my cold, dead fingers, but that's just me. :) I wouldn't wish emacs or vim on anyone who didn't feel that the learning curve was worth it. MTCW --

Re: Managing pipenv virtualenvs

2019-03-26 Thread Tim Johnson
thanks again, Test Bot ... > On Wed, Mar 27, 2019, 4:21 AM Tim Johnson wrote: > > > * Test Bot [190326 14:18]: > > > Nothing much i think. If you are properly managing dependencies for each > > > venv, then each new venv should have the same state as the previ

Re: Managing pipenv virtualenvs

2019-03-26 Thread Tim Johnson
apter files. I guess I will find out why ... thank you > On a personal note it sounds strange why the author wants to have different > venv's for each chapter. > > On Wed, Mar 27, 2019, 3:30 AM Tim Johnson wrote: > > > I'm on ubuntu 16.04 > > &g

Managing pipenv virtualenvs

2019-03-26 Thread Tim Johnson
tring. examples helloworld-_e28Oloi pages-Du4qJjUr What would happen if I deleted the first folder, which was created in a previous chapter? ... trying to minimize my SSD real estate. thanks -- Tim Johnson http://www.tj49.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Determining latest stable version for download

2019-03-23 Thread Tim Johnson
* Tim Johnson [190320 10:46]: > Some time in the near future I will want to install the latest > current stable version of python on a remote server. I anticipate > that I will either use wget from the server shell or download to my > workstation and transfer via FTP. I will ne

Re: Determining latest stable version for download

2019-03-21 Thread Tim Johnson
* Michael Torrie [190320 19:22]: > On 03/20/2019 07:10 PM, Tim Johnson wrote: > > * Ian Kelly [190320 12:00]: > >> 1) https://www.python.org/downloads/ has release information. Based on that > >> you would currently want 3.7.2. Make sure you actually download

Re: Determining latest stable version for download

2019-03-21 Thread Tim Johnson
* Michael Torrie [190320 19:22]: > On 03/20/2019 07:10 PM, Tim Johnson wrote: > > * Ian Kelly [190320 12:00]: > >> 1) https://www.python.org/downloads/ has release information. Based on that > >> you would currently want 3.7.2. Make sure you actually download

Re: Determining latest stable version for download

2019-03-20 Thread Tim Johnson
pecific. For Linux there are really only > two options: Python-3.7.2.tar.xz and Python-3.7.2.tgz. The only difference > is that one is compressed with xz and the other is compressed with gzip. > Pick the .xz unless you're unable to decompress it. > On Wed, Mar 20, 2019 at 12:43 PM Ti

Determining latest stable version for download

2019-03-20 Thread Tim Johnson
://www.python.org/ftp/python/. How do I determine the following? 1) Latest current stable version of python 3* 2) Correct tarfile for linux - at this time I assume it will be linux centOS TIA -- Tim Johnson http://www.tj49.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip Version Confusion

2018-03-24 Thread Tim Johnson
* Tim Johnson [180324 10:32]: > * Steven D'Aprano [180324 08:29]: > > On Sat, 24 Mar 2018 07:40:17 -0800, Tim Johnson wrote: > > > > > I'm on Ubuntu 16.04. > > > > > > I'm getting the following message from pip: > > > > &g

Re: Pip Version Confusion

2018-03-24 Thread Tim Johnson
* Steven D'Aprano [180324 08:29]: > On Sat, 24 Mar 2018 07:40:17 -0800, Tim Johnson wrote: > > > I'm on Ubuntu 16.04. > > > > I'm getting the following message from pip: > > > > You are using pip version 8.1.1, however version 9.0.3 is availa

Pip Version Confusion

2018-03-24 Thread Tim Johnson
I'm on Ubuntu 16.04. I'm getting the following message from pip: You are using pip version 8.1.1, however version 9.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. # But then I get this : tim@linus:~/Downloads$ which pip /home/tim/.local/bin/pip # an

Re: Restore via pip to new OS

2018-03-14 Thread Tim Johnson
* Paul Moore [180314 15:42]: > Use pip freeze rather than pip list. That will give you the > information in "requirements file" format that pip install -r can > read. > > On 14 March 2018 at 23:20, Tim Johnson wrote: <...> > > Can I duplicate the same

Restore via pip to new OS

2018-03-14 Thread Tim Johnson
I'm currently running both python and python3 on ubuntu 14.04. Plan is to do a complete re-install of ubuntu 16.04 on a fresh hard drive. I've accumulated a list of pip-install packages via pip list > piplist.txt. Can I duplicate the same packages on the new OS by pip -r piplist.txt? thanks --

Re: Import name conflicts

2017-04-18 Thread Tim Johnson
* Steve D'Aprano [170418 16:08]: > On Wed, 19 Apr 2017 04:28 am, Tim Johnson wrote: > > > Using python 2.7~ > > > > For testing and edification purposes: > > > > I have a project which has a controllers package at the directory > > level just b

Re: Import name conflicts

2017-04-18 Thread Tim Johnson
* Ben Finney [170418 14:58]: > Tim Johnson writes: > > > Using python 2.7~ > > In Python 2, you should turn on the “default import is absolute” by > issuing the statement:: > > from __future__ import absolute_import > > as one of the first statements in e

Import name conflicts

2017-04-18 Thread Tim Johnson
Using python 2.7~ For testing and edification purposes: I have a project which has a controllers package at the directory level just below the root. >From the top-level (root) of the project, I start my python interpreter. The packages is called 'controllers' and has a submodule named 'imp' I

Re: Choosing a Python IDE. what is your Pythonish recommendation? I

2017-01-06 Thread Tim Johnson
* Paul Rudin [170103 23:17]: > Tim Johnson writes: > > > * Antonio Caminero Garcia [170102 20:56]: > >> Guys really thank you for your answers. Basically now I am more > >> emphasizing in learning in depth a tool and get stick to it so I > >> can get a fas

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-04 Thread Tim Johnson
* Paul Rudin [170103 23:17]: > Tim Johnson writes: > > > * Antonio Caminero Garcia [170102 20:56]: > >> Guys really thank you for your answers. Basically now I am more > >> emphasizing in learning in depth a tool and get stick to it so I > >> can get a

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-03 Thread Tim Johnson
* Antonio Caminero Garcia [170102 20:56]: > Guys really thank you for your answers. Basically now I am more > emphasizing in learning in depth a tool and get stick to it so I > can get a fast workflow. Eventually I will learn Vim and its > python developing setup, I know people who have been progr

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Tim Johnson
* Antonio Caminero Garcia [170102 02:50]: <> > Now, I am thinking about giving a try to Visual Studio Code > Edition (take a look, it sounds good > https://marketplace.visualstudio.com/items?itemName=donjayamanne.python). > I need an editor for professional software development. What would >

Re: What is currently the recommended way to work with a distutils-based setup.py that requires compilation?

2016-11-08 Thread Tim Johnson
* Ivan Pozdeev via Python-list [161106 17:28]: > https://wiki.python.org/moin/WindowsCompilers has now completely replaced > instructions for `distutils`-based packages (starting with `from > distutils.core import setup`) with ones for `setuptools`-based ones > (starting with `from setuptools impo

Re: Idiomatic code validator?

2016-09-20 Thread Tim Johnson
* Steve D'Aprano [160920 16:29]: > On Wed, 21 Sep 2016 01:41 am, Tim Johnson wrote: > > > Not to confuse idiomatic code validation with pep8 validation (I use > > elpy on emacs) > > > > Is there such a thing as a validator for _idiomatic_ code? > >

Re: Idiomatic code validator?

2016-09-20 Thread Tim Johnson
* Steve D'Aprano [160920 16:29]: > On Wed, 21 Sep 2016 01:41 am, Tim Johnson wrote: > > > Not to confuse idiomatic code validation with pep8 validation (I use > > elpy on emacs) > > > > Is there such a thing as a validator for _idiomatic_ code? > >

Re: Idiomatic code validator?

2016-09-20 Thread Tim Johnson
* Terry Reedy [160920 11:48]: > On 9/20/2016 11:41 AM, Tim Johnson wrote: > > Not to confuse idiomatic code validation with pep8 validation > > Strictly speaking, there cannot be a mechanical PEP 8 validator, as any > mechanical checker violates the admonitions of the

Idiomatic code validator?

2016-09-20 Thread Tim Johnson
Not to confuse idiomatic code validation with pep8 validation (I use elpy on emacs) Is there such a thing as a validator for _idiomatic_ code? I have Knupp's "Writing Idiomatic Python" and have bookmarked some advisory websites that illustrate idiomatic style. thanks -- Tim http://www.akwebsof

Re: Importing two modules of same name

2016-02-10 Thread Tim Johnson
* dieter [160209 23:03]: > Carl Meyer writes: > > ... > > If you omit the future-import in Python 2.7, `import config` will import > > the neighboring app/config.py by default, and there is no way to import > > the top-level config.py. > > There is the "__import__" builtin function which allows

Re: Importing two modules of same name

2016-02-09 Thread Tim Johnson
* Carl Meyer [160209 15:28]: > Hi Tim, <...> > The proper way to do this in Python 2.7 is to place `from __future__ > import absolute_import` at the top of flask/app/__init__.py (maybe best > at the top of every Python file in your project, to keep the behavior > consistent). Once you have that f

Importing two modules of same name

2016-02-09 Thread Tim Johnson
Before proceding, let me state that this is to satisfy my curiousity, not to solve any problem I am having. Scenario : Web application developed at /some/dir/sites/flask/ If I have a package - let us call it app and in my /some/dir/sites/flask/app/__init__.py is the following: from config import

Re: Using subprocess to capture a progress line

2015-11-11 Thread Tim Johnson
* Chris Warrick [15 07:54]: > On 11 November 2015 at 17:16, Tim Johnson wrote: > >> (2) [don’t do it] do you need to intercept the lines? If you don’t set > >> stderr= and stdout=, things will print just fine. > > Got to try that before using the module, just for

Re: Using subprocess to capture a progress line

2015-11-11 Thread Tim Johnson
* Chris Warrick [15 00:55]: > On 10 November 2015 at 23:47, Tim Johnson wrote: > > Using python 2.7.6 on ubuntu 14.04 <..> > There is no \n character at the end — which means that > p.stdout.readline() cannot return. In fact, if you printed repr() of > the line you

Re: Using subprocess to capture a progress line

2015-11-10 Thread Tim Johnson
* Tim Johnson [151110 14:55]: > * Chris Angelico [151110 14:35]: > > On Wed, Nov 11, 2015 at 9:47 AM, Tim Johnson wrote: > > > I've written a command-line "wrapper" for youtube-dl, executing > > is implemented in Python, you might find it easier to "p

Re: Using subprocess to capture a progress line

2015-11-10 Thread Tim Johnson
* Tim Johnson [151110 14:55]: > * Chris Angelico [151110 14:35]: > > On Wed, Nov 11, 2015 at 9:47 AM, Tim Johnson wrote: > > > I've written a command-line "wrapper" for youtube-dl, executing

Re: Using subprocess to capture a progress line

2015-11-10 Thread Tim Johnson
* Chris Angelico [151110 14:35]: > On Wed, Nov 11, 2015 at 9:47 AM, Tim Johnson wrote: > > I've written a command-line "wrapper" for youtube-dl, executing > > youtube-dl as a subprocess. > > > >

Using subprocess to capture a progress line

2015-11-10 Thread Tim Johnson
Using python 2.7.6 on ubuntu 14.04 The application in question is run with bash and gnome-terminal : I've written a command-line "wrapper" for youtube-dl, executing youtube-dl as a subprocess. -- youtube-dl reports download progress

testing, please disregard

2015-08-18 Thread Tim Johnson
I have had some problems with another python.org ML. I am sending this to see if it is received. Please disregard. thanks -- Tim http://www.akwebsoft.com, http://www.tj49.com -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT]Royal pardon for codebreaker Turing

2013-12-25 Thread Tim Johnson
* Steven D'Aprano [131224 16:19]: > Tim Johnson wrote: > > > * Steven D'Aprano [131224 07:05]: > >> On Tue, 24 Dec 2013 00:32:31 +, Mark Lawrence wrote: > >> > >> > Maybe of interest to some of you > >> > http://www.bbc.co

Re: [OT]Royal pardon for codebreaker Turing

2013-12-24 Thread Tim Johnson
* Steven D'Aprano [131224 07:05]: > On Tue, 24 Dec 2013 00:32:31 +, Mark Lawrence wrote: > > > Maybe of interest to some of you > > http://www.bbc.co.uk/news/technology-25495315 > > While I'm happy for Alan Turing, may he rest in peace, I think the > thousands of other homosexuals who have

Re: [OT]Royal pardon for codebreaker Turing

2013-12-23 Thread Tim Johnson
* Mark Lawrence [131223 15:39]: > Maybe of interest to some of you > http://www.bbc.co.uk/news/technology-25495315 I note the following """ "Dr Alan Turing was an exceptional man with a brilliant mind," said Mr Grayling. He said the research Turing carried out during the war at Blet

Re: ogg2mp3 utility?

2013-11-14 Thread Tim Johnson
* Tim Johnson [131113 17:06]: > I've written an application that does some audio file conversions. > > I use mutagen for some of the mp3 file manipulation, but to convert > ogg files to mp3 format I've been using subprocess to run the > ogg2mp3 perl utili

ogg2mp3 utility?

2013-11-13 Thread Tim Johnson
I've written an application that does some audio file conversions. I use mutagen for some of the mp3 file manipulation, but to convert ogg files to mp3 format I've been using subprocess to run the ogg2mp3 perl utility. (available from http://marginalhacks.com/) by David Madison. It's a "spot on"

Re: subprocess.Popen instance hangs

2013-08-30 Thread Tim Johnson
* Jerry Hill [130830 07:48]: > On Fri, Aug 30, 2013 at 11:32 AM, Tim Johnson wrote: > > The objective is to display all output, but to also separate error > > messages from normal output. > > I still think you want to use communicate(). Like this: > > p = s

Re: subprocess.Popen instance hangs

2013-08-30 Thread Tim Johnson
* Nobody [130830 06:55]: > On Thu, 29 Aug 2013 17:00:21 -0800, Tim Johnson wrote: > > > ## This appears to be what works. > > def __exec(self,args) : > > """Run the process with arguments""" > >p = > >s

Re: subprocess.Popen instance hangs

2013-08-29 Thread Tim Johnson
* Tim Johnson [130829 10:51]: > using Python 2.7.1 on OS X 10.7.5 > > I'm managing a process of drush using an instance of subprocess.Popen <...> ## This appears to be what works. def __exec(self,args) : """Run the process with arguments"&q

Re: subprocess.Popen instance hangs

2013-08-29 Thread Tim Johnson
* MRAB [130829 11:04]: > On 29/08/2013 19:34, Tim Johnson wrote: > >could use some examples. > > > The subprocess will terminate when it has finished writing its output, > but because you're not consuming any of the output (you're waiting for > it to finish),

subprocess.Popen instance hangs

2013-08-29 Thread Tim Johnson
using Python 2.7.1 on OS X 10.7.5 I'm managing a process of drush using an instance of subprocess.Popen The process has a '--verbose' option. When that option is passed as part of the initializer `args' argument, the process will hang. It should be no surprise as drush output with the --verbose

Re: Why is Ruby on Rails more popular than Django?

2013-03-08 Thread Tim Johnson
* rh [130307 20:21]: > On Wed, 6 Mar 2013 17:55:12 -0900 > Tim Johnson wrote: > > > > > I believe that indifference on the part of Python to fastcgi is a > > self-inflicted wound. I don't believe that there is any good > > excuse for such indiffere

Re: Why is Ruby on Rails more popular than Django?

2013-03-06 Thread Tim Johnson
* Albert Hopkins [130306 17:14]: > > > On Wed, Mar 6, 2013, at 02:16 PM, Tim Johnson wrote: > > > I had problems getting django to work on my hostmonster account > > which is shared hosting and supports fast_cgi but not wsgi. I put > > that effort on hold f

Re: Why is Ruby on Rails more popular than Django?

2013-03-06 Thread Tim Johnson
* mar...@python.net [130306 09:31]: > > > > > My questions: > > 1. Why is Ruby on Rails much more popular than Django? > If you already know/work with Python than I would go the Django route. > RoR and Django are not that much different nowadays as far as > methodologies. The main difference

Re: Good Python IDE

2013-01-06 Thread Tim Johnson
* Tetsuya [130106 14:43]: > On 01/06/2013 11:13 PM, Tim Johnson wrote: > > Now I use vim for all of my work. I pretty-much hand-rolled my own > > IDE, which is typical of vimmers. > > I did like you, too. > I use vim for everything: coding in python, django, js, ht

Re: Good Python IDE

2013-01-06 Thread Tim Johnson
* Sourabh Mhaisekar [130106 07:11]: > Hello All, > I am recently started couple of projects in Python, one in Python GTK and one > in Python Qt. I want a good IDE (For Windows ) for Python which gives support > for Python as well as PyGtk and PyQt. > > Features I am looking for > * Support f

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-29 Thread Tim Johnson
* Grant Edwards [121229 10:02]: > On 2012-12-27, mogul wrote: > > > I'm new to python, got 10-20 years perl and C experience, all gained > > on unix alike machines hacking happily in vi, and later on in vim. > > > > Now it's python, and currently mainly on my kubuntu desktop. > > > > Do I really

Re: popen4 - get exit status

2012-08-28 Thread Tim Johnson
* Dennis Lee Bieber [120828 07:11]: > On Mon, 27 Aug 2012 15:43:59 -0800, Tim Johnson > declaimed the following in gmane.comp.python.general: > > > * Benjamin Kaplan [120827 15:20]: > > > The popen* functions are deprecated. You should use the subprocess module >

Re: popen4 - get exit status

2012-08-27 Thread Tim Johnson
* Dave Angel [120827 15:20]: > On 08/27/2012 06:39 PM, Tim Johnson wrote: > > In bash I do the following: > > linus:journal tim$ /home/AKMLS/cgi-bin/perl/processJournal-Photo.pl hiccup > > -bash: /home/AKMLS/cgi-bin/perl/processJournal-Photo.pl: No such file or > >

Re: popen4 - get exit status

2012-08-27 Thread Tim Johnson
* Benjamin Kaplan [120827 15:20]: > The popen* functions are deprecated. You should use the subprocess module > instead. No, I'm stuck with py 2.4 on one of the servers I'm using and there will not be an upgrade for a few months. I'm really trying to set up something portable between linux->

popen4 - get exit status

2012-08-27 Thread Tim Johnson
In bash I do the following: linus:journal tim$ /home/AKMLS/cgi-bin/perl/processJournal-Photo.pl hiccup -bash: /home/AKMLS/cgi-bin/perl/processJournal-Photo.pl: No such file or directory linus:journal tim$ echo $? 127 In python, use os.popen4 I do the following: >>> fin,fout = os.popen4('/home/AKM

Re: which one do you prefer? python with C# or java?

2012-06-12 Thread Tim Johnson
* Tomasz Rola [120611 11:18]: > On Sat, 9 Jun 2012, Yesterday Paid wrote: > > > I'm planning to learn one more language with my python. > > Someone recommended to do Lisp or Clojure, but I don't think it's a > > good idea(do you?) > > So, I consider C# with ironpython or Java with Jython. > > It'

Re: which one do you prefer? python with C# or java?

2012-06-09 Thread Tim Johnson
* Yesterday Paid [120609 14:52]: > I'm planning to learn one more language with my python. > Someone recommended to do Lisp or Clojure, but I don't think it's a > good idea(do you?) > So, I consider C# with ironpython or Java with Jython. > It's a hard choice...I like Visual studio(because my firs

Re: Installing MySQLdb via FTP?

2012-06-09 Thread Tim Johnson
* Tim Johnson [120609 07:30]: > > > > http://mysql-python.hg.sourceforge.net/hgweb/mysql-python/MySQLdb-2.0/file/566baac88764/src > > > > It definitely is. The C extension part is the '_mysql' module, here it > > is /usr/lib64/python2.7/site-packages/_mys

Re: Installing MySQLdb via FTP?

2012-06-09 Thread Tim Johnson
* Corey Richardson [120608 11:39]: > On Fri, 8 Jun 2012 09:55:23 -0800 > Tim Johnson wrote: > > > See the thread titled "Python libraries portable?" you will note > > that Corey Richardson makes the statement that MySQLdb is a C > > extension. I acce

Re: Installing MySQLdb via FTP?

2012-06-08 Thread Tim Johnson
* Prasad, Ramit [120608 09:38]: > > Is it possible to install MySQLdb via FTP? > > > > 1)I have a hostmonster account with SSH. I have been able to log in > > and install MySQLdb from the shell. Works fine. > > > > 2)Now I have a client who wants to have a hostmonster account and we > > will nee

Re: Python libraries portable?

2012-06-07 Thread Tim Johnson
* Corey Richardson [120607 17:01]: > On Thu, 7 Jun 2012 16:43:26 -0800 > Tim Johnson wrote: > > > So what to do if I can't install from the command line? > > I could use python's external command tools like > > subprocess.call(), but am not sure what

Re: Python libraries portable?

2012-06-07 Thread Tim Johnson
* Corey Richardson [120607 15:20]: > On Thu, 7 Jun 2012 15:09:36 -0800 > Tim Johnson wrote: > > > Does this mean that I could copy my MySQLdb module directly from > > my workstation via ftp to a server, and have it work, given that > > sys.path conta

Re: Python libraries portable?

2012-06-07 Thread Tim Johnson
* Corey Richardson [120607 14:19]: > On Thu, 07 Jun 2012 20:20:47 GMT > jkells wrote: > > > We are new to developing applications with Python. A question came > > up concerning Python libraries being portable between > > Architectures.More specifically, can we take a python library > > tha

Installing MySQLdb via FTP?

2012-06-07 Thread Tim Johnson
Is it possible to install MySQLdb via FTP? 1)I have a hostmonster account with SSH. I have been able to log in and install MySQLdb from the shell. Works fine. 2)Now I have a client who wants to have a hostmonster account and we will need MySQLdb. I *will not* have SSH access since (as I understan

Decouplable CMS in python?

2011-11-08 Thread Tim Johnson
:)I'm sure decouplable is a word. If not it should be. I have written my own framework. This has been a work in progress as a consequence of projects that I have done over the last 10 years. I need a CMS that sits "on top of" the framework. One of the starting points that I have considered is find

Re: MySQLdb on Mac Lion

2011-10-13 Thread Tim Johnson
* Ned Deily [111012 18:12]: > In article <20111013005244.gk6...@johnsons-web.com>, > Tim Johnson wrote: > > I'm most experienced with MySQLdb on ubuntu, which is installed via > > apt-get or synaptic. > > > > I am setting up a mac mini with osX 10.7 (L

MySQLdb on Mac Lion

2011-10-12 Thread Tim Johnson
I'm most experienced with MySQLdb on ubuntu, which is installed via apt-get or synaptic. I am setting up a mac mini with osX 10.7 (Lion). Macports makes py27-mysql 1.2.2 available, but are there any .dmg packages available? thanks -- Tim tim at tee jay forty nine dot com or akwebsoft dot com ht

Re: Suggested coding style

2011-09-28 Thread Tim Johnson
* DevPlayer [110928 04:31]: > On Sep 27, 10:25 pm, alex23 wrote: > > rantingrick wrote: > > > Since, like the bible > > > the zen is self contradicting, any argument utilizing the zen can be > > > defeated utilizing the zen. > > > > And like the Bible, the Zen was created by humans as a joke. If

Re: Suggested coding style

2011-09-25 Thread Tim Johnson
* Chris Angelico [110925 13:50]: > On Mon, Sep 26, 2011 at 4:54 AM, Petite Abeille > wrote: > > > > On Sep 25, 2011, at 8:46 PM, Tim Johnson wrote: > > > >>  Why does it suck? And why do people say 'suck' so much, especially in > >>

Re: Suggested coding style

2011-09-25 Thread Tim Johnson
* Devin Jeanpierre [110925 16:37]: > > Why does it suck? > > The gist of what I was saying is that it's possible to define > functions that do this "generically" so that one implementation of > zfill can work with multiple implementations of strings. That is kind of 'spot on' for me. Before

Re: Suggested coding style

2011-09-25 Thread Tim Johnson
* Devin Jeanpierre [110924 19:07]: > > Padding numbers with leading zeroes is very common. I'm surprised that > > more languages don't make it a string method. > > By making it a string method, instead of a function, we force all > implementations of strings to implement that method. That sort of

Re: Suggested coding style

2011-09-24 Thread Tim Johnson
* Arnaud Delobelle [110924 12:04]: > On 24 September 2011 20:34, MRAB wrote: > > >>> In my brief coding experience I have stumbled upon Python zfill(width) > >>> method, > [...] > >>   It could be some sort of legacy. I imagine we will hear from some > >>   more senior pythonists on this matter.

Re: Suggested coding style

2011-09-24 Thread Tim Johnson
* Passiday [110924 09:47]: <...> > I have been coding in many other languages, most of the time it was > Java and C#. I don't like the function mess of PHP (ie, loads and > loads of functions without any namespaces etc), but I'd like to think > that Python is different. It is ... > In my brief

Re: Reconciling os.path.getmtime vs ftp.sendcmd('MDTM filename')

2011-09-15 Thread Tim Johnson
* Tim Johnson [110914 18:18]: > * Chris Rebert [110914 16:46]: > > On Wed, Sep 14, 2011 at 12:50 PM, Tim Johnson wrote: > > > I have written a class that uses ftplib.FTP as the parent. > > > I need to reconcile the modified time of a workstation file with > >

Re: Reconciling os.path.getmtime vs ftp.sendcmd('MDTM filename')

2011-09-14 Thread Tim Johnson
* Chris Rebert [110914 16:46]: > On Wed, Sep 14, 2011 at 12:50 PM, Tim Johnson wrote: > > I have written a class that uses ftplib.FTP as the parent. > > I need to reconcile the modified time of a workstation file with > > that same filename on a remote server. > > Let&

Reconciling os.path.getmtime vs ftp.sendcmd('MDTM filename')

2011-09-14 Thread Tim Johnson
I have written a class that uses ftplib.FTP as the parent. I need to reconcile the modified time of a workstation file with that same filename on a remote server. Let's say we have a file called '400.shtml'. I get the mtime on my workstation by >> os.path.getmtime('400.shtml') 1311648420.0 And I us

Thoughts about documentation for non-python resource files

2011-08-22 Thread Tim Johnson
I'm looking for comments and/or URLs to discussions on this topic. I use my own MVC system. A component of this system generates documentation from python docstrings. Of course this system also comprises many non-python filetypes : css, html, txt, js, xml etc. Views, which are txt or html files ca

Re: what is the advantage of Django when comparing with LAMP and J2EE platform?

2011-08-02 Thread Tim Johnson
* smith jack [110802 11:37]: > There are so many choice to do the same thing, so is there any special > advantage Django brings to user? Django is a python framework, J2EE is a java platform (my apologies if I use 'framework' incorrectly). Our customers want PHP,perl or python, not java. The de

Re: Hostmonster : Installing MySQLdb at a specific location

2011-08-01 Thread Tim Johnson
* Tim Johnson [110731 11:47]: > I don't want to discourage any further input, but I'm looking at > https://my.hostmonster.com/cgi/help/000531?step=000531 > regarding installing django and I think the instructions can be > extrapolated for MySQLdb. I will report what hap

Re: Hostmonster : Installing MySQLdb at a specific location

2011-07-31 Thread Tim Johnson
* Tim Johnson [110731 11:01]: > I've using MySQLdb for years, but always on servers where I had > system-wide access. > > I have an account on Hostmonster and would like to do some > development there, but although python2.6 is available, MySQLdb is > not installed. I do

Hostmonster : Installing MySQLdb at a specific location

2011-07-31 Thread Tim Johnson
I've using MySQLdb for years, but always on servers where I had system-wide access. I have an account on Hostmonster and would like to do some development there, but although python2.6 is available, MySQLdb is not installed. I do not believe there is a system-wide access, nor do I expect sysadmins

Re: Function docstring as a local variable

2011-07-10 Thread Tim Johnson
* Chris Rebert [110710 16:14]: > > > >  Where is general documentation on the subject of variables > >  beginning with 2 underscores? > > I've never heard that phrase used to describe __doc__ or its friends. :) That why I wasn't satified with my search results. > Look in the "underscore" sectio

  1   2   >