Duplicate Output

2016-01-27 Thread Gary Roach
Hi Debian stretch OS KDE Desktop Code written with Kate Run in command line with $python getFileNames.py Code: from os import walk import subprocess f = [] x = "" for (dirpath, dirnames, filenames) in walk('.'): print(filenames) This prints [][] What am I doing wrong or how do I remove t

Pyvenv use

2015-10-15 Thread Gary Roach
Hi all, I needed to switch a projects from python 2.7 to 3.4 and had trouble setting up the virtual environment using the virtualenvwrapper utility. It seemed to want to install python 2.7 no matter what I did. I switched to pyvenv which solved the problem. But I now need to completely clean

Re: Lesson 39 of Learning Python the Hard Way hangs (Fixed?)

2015-09-09 Thread Gary Roach
On 09/09/2015 01:45 PM, John Gordon wrote: In Gary Roach writes: Traceback (most recent call last): File "/root/mystuff/mystuff/ex39_test.py", line 6, in hashmap.set(states, 'Oregon', 'OR') File "/root/mystuff/mystuff/hashmap.py", line

Re: Lesson 39 of Learning Python the Hard Way hangs

2015-09-09 Thread Gary Roach
On 09/09/2015 01:45 PM, John Gordon wrote: In Gary Roach writes: Traceback (most recent call last): File "/root/mystuff/mystuff/ex39_test.py", line 6, in hashmap.set(states, 'Oregon', 'OR') File "/root/mystuff/mystuff/hashmap.py", line

Re: Lesson 39 of Learning Python the Hard Way hangs (Fixed?)

2015-09-09 Thread Gary Roach
On 09/09/2015 01:45 PM, John Gordon wrote: In Gary Roach writes: Traceback (most recent call last): File "/root/mystuff/mystuff/ex39_test.py", line 6, in hashmap.set(states, 'Oregon', 'OR') File "/root/mystuff/mystuff/hashmap.py", line

Lesson 39 of Learning Python the Hard Way hangs

2015-09-09 Thread Gary Roach
Hi all I am new to python but not programming (Although rusty) and am using Learning Python The Hard Way. I really like it. System: --- Debian 8 (jessie) KDE Desktop Python 2.7 (It's going to be a while before 2,7 goes away. There is just too much code out there. Ninja-IDE IDE

Re: Is Django the way to go for a newbie?

2015-08-09 Thread Gary Roach
On 08/08/2015 09:08 PM, Dwight GoldWinde wrote: I am both new to Python and I haven’t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I have read, Python and Django somewhat go together. Is that true? Or is there another devel

Re: Improper Django Project error (solved)

2015-08-01 Thread Gary Roach
On 07/30/2015 11:15 PM, dieter wrote: Gary Roach writes: Being new to Django and Python, I have two projects setup side by side, each in it's own virtualenv wrapper. The twr_project is running Django 1.7, python 2.7 and is set up to duplicate the 'Tango With Rango' tutorial

Re: Improper Django Project error (solved)

2015-07-31 Thread Gary Roach
On 07/30/2015 11:15 PM, dieter wrote: Gary Roach writes: Being new to Django and Python, I have two projects setup side by side, each in it's own virtualenv wrapper. The twr_project is running Django 1.7, python 2.7 and is set up to duplicate the 'Tango With Rango' tutorial

Improper Django Project error

2015-07-30 Thread Gary Roach
Hi all Being new to Django and Python, I have two projects setup side by side, each in it's own virtualenv wrapper. The twr_project is running Django 1.7, python 2.7 and is set up to duplicate the 'Tango With Rango' tutorial. The archivedb project is running Django 1.8, python 2.7 and is my act

Re: password authentication failed (SOLVED)

2015-07-24 Thread Gary Roach
On 07/22/2015 04:44 PM, Chris Angelico wrote: On Thu, Jul 23, 2015 at 9:35 AM, Gary Roach wrote: At this point, I'm confused about a few things. Does the postgresql server and my archivedb reside globally or are they inside my archivedb virtual environment. I think globally. Your vi

Re: password authentication failed

2015-07-23 Thread Gary Roach
On 07/16/2015 04:53 PM, Chris Angelico wrote: On Fri, Jul 17, 2015 at 9:34 AM, Gary Roach wrote: On 07/15/2015 11:25 AM, Chris Angelico wrote: You should then be able to create a regular user, and grant appropriate permissions: postgres=# create user archives password 'traded-

Re: password authentication failed

2015-07-22 Thread Gary Roach
On 07/16/2015 04:53 PM, Chris Angelico wrote: On Fri, Jul 17, 2015 at 9:34 AM, Gary Roach wrote: On 07/15/2015 11:25 AM, Chris Angelico wrote: You should then be able to create a regular user, and grant appropriate permissions: postgres=# create user archives password 'traded-

Re: password authentication failed

2015-07-16 Thread Gary Roach
On 07/15/2015 11:25 AM, Chris Angelico wrote: On Thu, Jul 16, 2015 at 3:13 AM, Gary Roach wrote: Every time I try to do a python manage.py migrate I get: django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres" FATAL: password authentication faile

password authentication failed

2015-07-15 Thread Gary Roach
Every time I try to do a python manage.py migrate I get: django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres" FATAL: password authentication failed for user "postgres" System Debian linux jessie python 2.79 Django 1.8 Postgresql 9.4.3 database Using v

Django filer plugins for django-cms installation

2014-01-01 Thread Gary Roach
I'm trying to set up a python django_cms system using: Debian OS Wheezy distribution Python 2.7.3 ` Django 1.5.5 PostgreSQL 9.1 with pip and virtualenv. The last test errored out and I traced the problem to the missing cmsplugin-filer-0.9.4.tar.gz package not

Setting up for python django development with Debian Linux

2013-10-28 Thread Gary Roach
Hi all, I have been trying to set up a python, django, mysql, virtualenvwrapper and git development project and am really confused. All of the documentation seems to ignore the apt-get installation methods used by Debian Linux and its derivatives. Does pip install the same as apt-get; I don't

Re: Removing python django projects

2013-10-27 Thread Gary Roach
On 10/27/2013 04:38 AM, rusi wrote: On Sunday, October 27, 2013 6:44:35 AM UTC+5:30, Gary Roach wrote: Hi In the process of trying to learn python, django, mysql and virtualenvwrapper, I have created two projects and a mess. How can I strip everything from a Debian, Wheezy, linux system. The

Removing python django projects

2013-10-26 Thread Gary Roach
Hi In the process of trying to learn python, django, mysql and virtualenvwrapper, I have created two projects and a mess. How can I strip everything from a Debian, Wheezy, linux system. The files are all over the place. Much of the information in this area is for Mac or Windoz systems that do

Re: django admin.py error

2013-09-19 Thread Gary Roach
On 09/19/2013 11:15 AM, John Gordon wrote: In Gary Roach writes: Installation of the django admin.py package worked fine. But. when I tried to add my database to the admin page I get the following error: ImportError at /admin/ Does /home/gary/ProgramFiles/mysite/mysite/models.py

Re: django admin.py error (solved)

2013-09-19 Thread Gary Roach
On 09/19/2013 11:56 AM, John Gordon wrote: In Gary Roach writes: On 09/19/2013 11:15 AM, John Gordon wrote: Does /home/gary/ProgramFiles/mysite/mysite/models.py define an object named 'membership'? Yes. The following is the top part of the models.py file: q class

django admin.py error

2013-09-19 Thread Gary Roach
Installation of the django admin.py package worked fine. But. when I tried to add my database to the admin page I get the following error: ImportError at /admin/ cannot import name membership Request Method: GET Request URL:http://127.0.0.1:8000/admi

MySQL data types vs Django/Python data types

2013-09-01 Thread Gary Roach
Hi all, System: Debian Wheezy Linux Python 2.7 Django 1.5 MySql 5.5 I am new to Python and Django and am having trouble matching Python data types with those of MySQL. MySQL has about 7 basic data types including Blobs, Binaries, etc. It also has a rich selectio

Re: Python and mysql 3 tier programming

2013-08-25 Thread Gary Roach
On 08/23/2013 08:38 AM, Jason Friedman wrote: System Debian Wheezy Linux Python 2.7 Mysql 5.5.31 Apache Server I am somewhat conversant with html, css, SQL, mysql, Apache and Debian Linux. Actually I have been using Debian for over 10 year. I spent over 5 year, prior to retirement, programming d

Python and mysql 3 tier programming

2013-08-21 Thread Gary Roach
Hi all, I'm now to the list so apologies if I don't always follow the local protocol. My problem is the interface between python and mysql using a three tier model. First, some background: System Debian Wheezy Linux Python 2.7 Mysql 5.5.31 Apache Server I am somewhat conversant with html, cs