On Jun 17, 6:28 pm, Dmitry Dulepov <dmitry.dule...@gmail.com> wrote:
> Hi!
>
> Radhakrishna wrote:
> > I have deployed my django project to Apache using mod_wsgi. In urls.py
> > I am mapping "gateway/" to gateway.py which imports 'pyamf' module.
> > The problem is, even though pyamf module is in python path, its not
> > able to find it. I can import it from command line and when in django
> > development server.
>
> Have a look to Python path (I shortened it for you):
>
> > Python Path:       [ ... 'D:\\Python2.6\\Lib\\site-
> > packages\\pyamf']
>
> Pythin will be looking for D:\\Python2.6\\Lib\\site-packages\\pyamf\\pyamf.
> Does this directory exist?
>
> Normally, your 'site-packed' should in Python path, not its subdirectories.

Your last comment is generally correct, but the search path also
listed:

  'D:\\Python2.6\\lib\\site-packages'

Although 'lib' is in lower case, that shouldn't usually matter on
Windows.

>From the command line Python they should go:

  import pyamf
  print pyamf.__file__

to find out where it is being imported from and post that.

They should also check the permissions on directory pyamf is in in
case it has restrictive permissions of user that user that Apache runs
as cant read.

Graham

Graham

-- 
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 at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to