Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/5/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > This is drifting waaay off topic but here's the short answer :) > http://wiki.opendarwin.org/index.php/DarwinPorts:Getting_Started#Adding_DarwinPorts_to_your_Terminal.27s_path > http://wiki.opendarwin.org/index.php/DarwinPorts:manually_setting_shell And one more: Unix Power Tools (explains path and loads more.) http://www.amazon.com/gp/product/0596003307 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/5/06, jbrewer <[EMAIL PROTECTED]> wrote: > > How do I get things "on my path"? Where is the file that points all > this stuff together? This is drifting waaay off topic but here's the short answer :) http://wiki.opendarwin.org/index.php/DarwinPorts:Getting_Started#Adding_DarwinPorts_to_your_Terminal.27s_path http://wiki.opendarwin.org/index.php/DarwinPorts:manually_setting_shell Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
How do I get things "on my path"? Where is the file that points all this stuff together? Thanks for all the help guys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/4/06, jbrewer <[EMAIL PROTECTED]> wrote: > > I have tried to install the MySQLdb and keep getting this error: > > error: command 'gcc' failed with exit status 1 > > at the end of a bunch of stuff. Yeah, that "bunch of stuff" just might be important. ya know. Keep in mind you also would need MySQL installed, and that mysql_config must be on your default PATH before building MySQLdb. Once you do that, it seems to build correctly on Mac OS X. -- The Pythonic Principle: Python works the way it does because if it didn't, it wouldn't be Python. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/5/06, jbrewer <[EMAIL PROTECTED]> wrote: > > If I just run "port install py-sqlite" I get a -bash: port - command > not found. But if I use PortAuthority (GUI) then it does it. > > I am wondering if the darwin port folder is located in /opt/local/bin > and the other stuff (svn, fcgi) is in /usr/local/bin how are these guys > talking to eachother? Yes, but I wouldn't stress about the details. darwinports keeps stuff in /opt/local/bin so it doesn't clash with the existing system. port didn't work because it's probably not on your path. The install instructions for darwinports tell you how to fix that, but if you are more comforatble with PortAuthority than with the terminal, I'd just stick with PortAuthority. Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
If I just run "port install py-sqlite" I get a -bash: port - command not found. But if I use PortAuthority (GUI) then it does it. I am wondering if the darwin port folder is located in /opt/local/bin and the other stuff (svn, fcgi) is in /usr/local/bin how are these guys talking to eachother? Help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/5/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > > On Fri, May 05, 2006 at 06:23:48PM -, jbrewer wrote: > > But when I used DarwinPorts of SQLite it installed Python 2.4 here: > > > > /opt/local/bin - and located here also is sqlite3 > > Remember, I said to look at ALL of the comments from > http://www.djangoproject.com/documentation/install/ > > which includes: > > "Additional note on pysqlite 2.1.3 on Mac OSX. If you installed the > newest sqlite3 via darwin ports, your header files and libraries are > in /opt/local/include and /opt/local/lib respectively. Before you > build/install pysqlite manually, you need to modify pysqlite's > setup.cfg accordingly so that it will pick up on the new library > instead of OSX's default sqlite 3.1.3 installation." I just installed pysqlite via darwinports and it works fine. I don't see any reason to build it from source unless you absolutely have to. port install py-sqlite Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On Fri, May 05, 2006 at 06:23:48PM -, jbrewer wrote: > But when I used DarwinPorts of SQLite it installed Python 2.4 here: > > /opt/local/bin - and located here also is sqlite3 Remember, I said to look at ALL of the comments from http://www.djangoproject.com/documentation/install/ which includes: "Additional note on pysqlite 2.1.3 on Mac OSX. If you installed the newest sqlite3 via darwin ports, your header files and libraries are in /opt/local/include and /opt/local/lib respectively. Before you build/install pysqlite manually, you need to modify pysqlite's setup.cfg accordingly so that it will pick up on the new library instead of OSX's default sqlite 3.1.3 installation." There are other comments about Mac OS X, and darwin ports of sqllite... etc. Have you tried everything noted in all of those comments? p.s. This shows that a Mac OS X install section would sure be nice... -- Glenn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/5/06, Steven Armstrong <[EMAIL PROTECTED]> wrote: > > How do I remap this? As well as Steven's suggestions, Learning Python covers module pathing issues nicely. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 05/05/06 20:23, jbrewer wrote: > Okay when I am looking at the sitepath I have all my python stuff > coming from here: > > /System/Library/Frameworks/Python.framework/... > > But when I used DarwinPorts of SQLite it installed Python 2.4 here: > > /opt/local/bin - and located here also is sqlite3 > > How do I remap this? > The file /opt/local/bin/sqlite3 is probably just the command line client, not the library. Try searching your filesystem for a folder named 'pysqlite2'. e.g. find / -type d -name pysqlite2 Then create a path file in the systems python installation that points to your sqlite3 installation. e.g. create a file: /System/Library/Frameworks/Python.framework/pysqlite2.pth which contains a line that points to the folder you found before. e.g.: /path/to/folder/pysqlite2 hth Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
Okay when I am looking at the sitepath I have all my python stuff coming from here: /System/Library/Frameworks/Python.framework/... But when I used DarwinPorts of SQLite it installed Python 2.4 here: /opt/local/bin - and located here also is sqlite3 How do I remap this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On Fri, 2006-05-05 at 02:03 +, jbrewer wrote: > Used DarwinPorts to get sqlite3 and py-sqlite and I still am getting > the same error as above. I know it "just worked" for Glenn, but I am > all screwed up. > > I am on Mac OS X 10.4.6 and have all the normal set up, except for the > above and svn, and django which I installed yesterday. > > I am a bit over my head as I only dabble in the command line from time > to time. > > Any help would really be appreciated. > > Here is the results from trying to run "python manage.py runserver" [...] > Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? > Available options are: %s" % \ > django.core.exceptions.ImproperlyConfigured: Could not load database > backend: No module named pysqlite2. Is your DATABASE_ENGINE setting > (currently, 'sqlite3') spelled correctly? Available options are: > 'ado_mssql', 'mysql', 'postgresql', 'sqlite3' Well, as before with your MySQL attempts, Django is not able to import the Python database wrapper (in this case pysqlite2). It will be easiest to try and debug this at the python interactive prompt. Essentially, you want this sort of thing to work (I'm on Linux, not a Mac, but the principle is the same): .-([EMAIL PROTECTED] 12:08:38) ~ `--> python Python 2.4.2 (#1, Feb 12 2006, 03:45:41) [GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pysqlite2 >>> Now, that will fail for you. So how to debug it? Well, one approach is to find out where Python is looking for the module: where it expects it to be. Then you can try to correlate that with where it actually is installed. Again, at the interactive prompt, try this: >>> import sys >>> sys.path I have not included the huge list I get in the result (wow that's a long list! I need to clean my PYTHONPATH...), but what you would hope to see is the directory where the pysqlite2 module is installed (usually it will be something like /python2.4/site-packages/ ). As I said, I am unfamiliar with how Python on a Mac is installed, others might be able to tell you what to expect here. But examining sys.path should give you some clues about where you and Python are disagreeing. Regards, Malcolm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
Used DarwinPorts to get sqlite3 and py-sqlite and I still am getting the same error as above. I know it "just worked" for Glenn, but I am all screwed up. I am on Mac OS X 10.4.6 and have all the normal set up, except for the above and svn, and django which I installed yesterday. I am a bit over my head as I only dabble in the command line from time to time. Any help would really be appreciated. Here is the results from trying to run "python manage.py runserver" Validating models... Unhandled exception in thread started by Traceback (most recent call last): File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 757, in inner_run validate() File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 741, in validate num_errors = get_validation_errors(outfile) File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 634, in get_validation_errors import django.models File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/models/__init__.py", line 1, in ? from django.core import meta File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/meta/__init__.py", line 3, in ? from django.core import db File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/db/__init__.py", line 23, in ? raise ImproperlyConfigured, "Could not load database backend: %s. Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? Available options are: %s" % \ django.core.exceptions.ImproperlyConfigured: Could not load database backend: No module named pysqlite2. Is your DATABASE_ENGINE setting (currently, 'sqlite3') spelled correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql', 'sqlite3' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
Thanks Glenn. I will try SQlLite and see if that clears it up. You guys rock. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On Fri, May 05, 2006 at 12:32:23AM -, jbrewer wrote: > I have tried to install the MySQLdb and keep getting this error: > > error: command 'gcc' failed with exit status 1 1. Read http://www.djangoproject.com/documentation/install/ 2. Follow all of the comments talking about Mac OS X (this is the key -- you've got to read the comments on that page!!!) 3. Use SQLlite I did and it just worked... very easily... no pain... -- Glenn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/4/06, jbrewer <[EMAIL PROTECTED]> wrote: > > I have tried to install the MySQLdb and keep getting this error: > > error: command 'gcc' failed with exit status 1 > > at the end of a bunch of stuff. > > When I do a "locate MySQLdb" command nothing comes back, so I am > assuming it isn't installed. Correct? > > Any help would be much appreciated. I don't use MySQL so I'm not that familiar with it. I know a lot of people have had problems getting MySQLdb to compile though. I'd try searching the django-users google group for clues, and if you're running debian, ubuntu, gentoo, etc. install it via their package management system (apt-get, emerge, etc.) rather than trying to install it from source. If you're on a mac, use darwinports... it will make your life a lot easier. Someone else may be able to help you if you post your platform details. Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
I have tried to install the MySQLdb and keep getting this error: error: command 'gcc' failed with exit status 1 at the end of a bunch of stuff. When I do a "locate MySQLdb" command nothing comes back, so I am assuming it isn't installed. Correct? Any help would be much appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/4/06, jbrewer <[EMAIL PROTECTED]> wrote: > > raise ImproperlyConfigured, "Could not load database backend: %s. > Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? > Available options are: %s" % \ > django.core.exceptions.ImproperlyConfigured: Could not load database > backend: No module named MySQLdb. Is your DATABASE_ENGINE setting > (currently, 'mysql') spelled correctly? Available options are: > 'ado_mssql', 'mysql', 'postgresql', 'sqlite3' This means you either don't have the MySQLdb module installed, or it is not on your PYTHONPATH. Have you installed one of the supported database modules yet? http://www.djangoproject.com/documentation/install/#get-your-database-running Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
Okay I got it fixed and created my site, but no when I try this command: python manage.py runserver this is what come up: Validating models... Unhandled exception in thread started by Traceback (most recent call last): File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 757, in inner_run validate() File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 741, in validate num_errors = get_validation_errors(outfile) File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 634, in get_validation_errors import django.models File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/models/__init__.py", line 1, in ? from django.core import meta File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/meta/__init__.py", line 3, in ? from django.core import db File "/Library/Python/2.3/site-packages/Django-0.91-py2.3.egg/django/core/db/__init__.py", line 23, in ? raise ImproperlyConfigured, "Could not load database backend: %s. Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? Available options are: %s" % \ django.core.exceptions.ImproperlyConfigured: Could not load database backend: No module named MySQLdb. Is your DATABASE_ENGINE setting (currently, 'mysql') spelled correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql', 'sqlite3' Then if you try to type anything in, nothing happens. And if I edit the file (which I did) to use 'mysql' it still throws the error. Please help - we are so close. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/4/06, jbrewer <[EMAIL PROTECTED]> wrote: > > I cd into the directory that I want to install the new project and then > type this: > > django-admin.py startproject mydjangotest It sounds like "." is not on your path, or like you don't have read permissions on the file. Try this: chown $USER django-admin.py chmod 755 django-admin.py ./django-admin.py startproject mydjangotest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
I cd into the directory that I want to install the new project and then type this: django-admin.py startproject mydjangotest and then I get this: python: can't open file 'django-admin.py' I have followed the install instructions on the Django page and get stuck here every time. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Install woes: error "python: can't open file 'django-admin.py' "
On 5/4/06, jbrewer <[EMAIL PROTECTED]> wrote: > I attempted to install on my PowerBook G4 for testing purposes, but > can't get past this error: What is the exact command you're typing? -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Install woes: error "python: can't open file 'django-admin.py' "
I am a web designer looking for something that I can customize for a few projects (other blog CMS wont do) and found Django and was quite impressed. I attempted to install on my PowerBook G4 for testing purposes, but can't get past this error: python: can't open file 'django-admin.py' So I can't even begin to work with it. Any one have any thoughts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---