Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 June 23, 2010 19:00:26

Jagdeep S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

import django : error


$import django
error :
import: unable to open X server `' @ import.c/ImportImageCommand/361.

i am working on ubuntu 10.04 server version

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 June 23, 2010 19:26:20

Jagdeep S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

import django : error


On Jun 23, 11:00 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com>
wrote:
> $import django
> error :
> import: unable to open X server `' @ import.c/ImportImageCommand/361.
>
> i am working on ubuntu 10.04 server  version

And
./manage.py runserver

Error: No module named messages

how handle this error ???

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 June 23, 2010 20:26:33

Karen T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

import django : error


On Wed, Jun 23, 2010 at 2:26 PM, Jagdeep Singh Malhi <
singh.malh...@gmail.com> wrote:

>
>
> On Jun 23, 11:00 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com>
> wrote:
> > $import django
> > error :
> > import: unable to open X server `' @ import.c/ImportImageCommand/361.
> >
> > i am working on ubuntu 10.04 server version
>
> And
> ./manage.py runserver
>
> Error: No module named messages
>
> how handle this error ???
>

For the first I have no idea, never seen it.

The "No module named messages" error happens when you have a Django project
settings file that was created with Django 1.2 but the Django your
PYTHONPATH is pointing to is 1.1.X or lower. Fix is to fix up your
PYTHONPATH to point to a 1.2 level of Django.

Karen
--http://tracey.org/kmt/--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 June 24, 2010 05:43:31

Jagdeep S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

import django : error


On Jun 24, 12:26 am, Karen Tracey <kmtra...@gmail.com> wrote:
> On Wed, Jun 23, 2010 at 2:26 PM, Jagdeep Singh Malhi <
>
>
>
> singh.malh...@gmail.com> wrote:
>
> > On Jun 23, 11:00 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com>
> > wrote:
> > > $import django
> > > error :
> > > import: unable to open X server `' @ import.c/ImportImageCommand/361.
>
> > > i am working on ubuntu 10.04 server  version
>
> > And
> > ./manage.py runserver
>
> > Error: No module named messages
>
> > how handle this error ???
>
> For the first I have no idea, never seen it.
>
> The "No module named messages" error happens when you have a Django project
> settings file that was created with Django 1.2 but the Django your
> PYTHONPATH is pointing to is 1.1.X or lower. Fix is to fix up your
> PYTHONPATH to point to a 1.2 level of Django.
>
where i check my PYTHONPATH is pointing to 1.2.or lower ??

And i never use Django 1.1 version , i only install 1.2 version with
python 2.6
> Karen
>  --http://tracey.org/kmt/--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#5 June 24, 2010 07:32:56

Kenneth G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

import django : error


On Wednesday 23 June 2010 23:30:14 Jagdeep Singh Malhi wrote:
> $import django
> error :
> import: unable to open X server `' @ import.c/ImportImageCommand/361.
>
> i am working on ubuntu 10.04 server version
>

you are trying to import from the bash shell - please open a python shell and
try the import
--
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#6 June 24, 2010 07:59:44

Teemu P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

import django : error


Hi$import django
error :
import: unable to open X server `' @ import.c/ImportImageCommand/361.

i am working on ubuntu 10.04 server versioyou're using shell command import, which is for capturing X-windows toimages. You should start python shell first, with python command:$python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>>

Best,
Teemu

--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 15th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support