Re: Django, Eclipse, Pydev, Ant (was: Ant and Eclipse (build.xml by Steven Armstrong))

2006-03-17 Thread Todd O'Bryan

As you suspected, running helloworld.py from build.xml didn't work,  
either. No useful errors, just the following:
--
Buildfile: /Users/tobryan1/Documents/eclipse/workspace/pytest/build.xml
hello-world:

BUILD FAILED
/Users/tobryan1/Documents/eclipse/workspace/pytest/build.xml:10:  
Error executing task

Total time: 486 milliseconds
--
Running the script by right-clicking and choosing "Run As... Python  
Run" does work, however.

I suspect I'm in the midst of configuration headaches.


Todd


On Mar 16, 2006, at 3:05 PM, Steven Armstrong wrote:

> Hi Todd
>
> Looks like it'ld be good to verify that you have everything setup  
> correctly.
> You can use the attached files (helloworld.py, build.xml) to test your
> dev env.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Django, Eclipse, Pydev, Ant (was: Ant and Eclipse (build.xml by Steven Armstrong))

2006-03-16 Thread Steven Armstrong
On 03/16/06 12:53, Todd O'Bryan wrote:
 > OK. I replaced 'cmd' with 'command' (which, I discovered was an
 > argument to ps, not its own command) and didn't get the error about
 > cmd not being found, but the task still died. The whole error message
 > is below. As you can see, it doesn't really give much information,
 > but the line where it dies is the place where django-admin.py is
 > supposed to be executed.
 >
 > I realize this is rather specific and probably not of general
 > interest, but as I explained yesterday, I teach high school and my
 > students can't access the command line (because of network security
 > permissions I have no control over). So if I can't figure out how to
 > run the scripts I need for Django to work its magic, the whole
 > enterprise is a non-starter.
 >
 > Todd
 >
 > Buildfile: /Users/tobryan1/Documents/eclipse/workspace/django-
 > projects/build.xml
 > settings:
 >   [echo] workspace_loc=/Users/tobryan1/Documents/eclipse/workspace
 >   [echo] pythonpath=/Users/tobryan1/Documents/eclipse/workspace/
 > django:/Users/tobryan1/Documents/eclipse/workspace/django-projects:/
 > Users/tobryan1/Documents/eclipse/workspace
 >   [echo] django.dir=/Users/tobryan1/Documents/eclipse/workspace/
 > django
 >   [echo] bin.dir=/Users/tobryan1/Documents/eclipse/workspace/
 > django/django/bin
 >   [echo] project.dir=/Users/tobryan1/Documents/eclipse/workspace/
 > django-projects
 >   [echo] django-admin=/Users/tobryan1/Documents/eclipse/workspace/
 > django/django/bin/django-admin.py
 >   [echo] django-server-ip=127.0.0.1:8000
 >   [echo] django-settings=--settings=django-projects.settings
 >   [echo] django_project=django-projects
 >   [echo] django_app=build.xml
 > server-stop:
 > [shellscript] killing processes:
 > server-run:
 > setPythonpath() Setting python path: /Users/tobryan1/Documents/
 > eclipse/workspace/django:/Users/tobryan1/Documents/eclipse/workspace/
 > django-projects:/Users/tobryan1/Documents/eclipse/workspace
 >
 > BUILD FAILED
 > /Users/tobryan1/Documents/eclipse/workspace/django-projects/build.xml:
 > 177: Error executing task
 >
 > Total time: 1 second
 >

Hi Todd

Looks like it'ld be good to verify that you have everything setup correctly.
You can use the attached files (helloworld.py, build.xml) to test your 
dev env.

Put them in a eclipse project directory, select the build.xml in the 
Navigator view, right click and execute 'Run as > Ant Build'.

This should give you the following output in the console view.

Buildfile: /tmp/test/build.xml
hello-world:
[py-run] Hello World
BUILD SUCCESSFUL
Total time: 357 milliseconds


Can you try this and then post again?

cheers
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
-~--~~~~--~~--~--~---


	
	

	
		
		
	



print "Hello World"