Discussion:
Help with a strange error: ImportError No module named pwd
medhat
2006-12-29 00:14:28 UTC
Permalink
Hi,

I have been using django with sqlite and the development server on
windows for sometime now. Today was the first time that I moved to
mysql, apache, mod_python on gentoo linux.

In my templates I use restructured text. And it is giving me the
following error:

--------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/template/__init__.py" in
render_node
712. result = node.render(context)
File "/usr/lib/python2.4/site-packages/django/template/__init__.py" in
render
762. output = self.filter_expression.resolve(context)
File "/usr/lib/python2.4/site-packages/django/template/__init__.py" in
resolve
571. obj = func(obj, *arg_vals)
File
"/usr/lib/python2.4/site-packages/django/contrib/markup/templatetags/markup.py"
in restructuredtext
51. parts = publish_parts(source=value, writer_name="html4css1",
settings_overrides=docutils_settings)
File "/usr/lib/python2.4/site-packages/docutils/core.py" in
publish_parts
407. enable_exit_status=enable_exit_status)
File "/usr/lib/python2.4/site-packages/docutils/core.py" in
publish_programmatically
512. pub.process_programmatic_settings(
File "/usr/lib/python2.4/site-packages/docutils/core.py" in
process_programmatic_settings
128. config_section=config_section,
File "/usr/lib/python2.4/site-packages/docutils/core.py" in
get_settings
115. option_parser = self.setup_option_parser(
File "/usr/lib/python2.4/site-packages/docutils/core.py" in
setup_option_parser
103. usage=usage, description=description)
File "/usr/lib/python2.4/site-packages/docutils/frontend.py" in
__init__
492. config_settings = self.get_standard_config_settings()
File "/usr/lib/python2.4/site-packages/docutils/frontend.py" in
get_standard_config_settings
538. for filename in self.get_standard_config_files():
File "/usr/lib/python2.4/site-packages/docutils/frontend.py" in
get_standard_config_files
534. return [os.path.expanduser(f) for f in config_files if
f.strip()]
File "/usr/lib/python2.4/posixpath.py" in expanduser
320. import pwd

ImportError at /articles/1/
No module named pwd
--------

As far as I can tell pwd is a builtin module. And I have no problem
importing it when I run python from the command line. Any ideas what
could be the problem? My experience has been that when moving from
windows to linux it is usually a permissions problem, but I am really
clueless about this one!

Any help would be greatly appreciated.
--
Thanks,
Medhat


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Pythoni
2006-12-29 12:35:09 UTC
Permalink
Check permissions on your Linux box
L.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
medhat
2006-12-29 17:34:19 UTC
Permalink
Permissions for what exactly? That's what I can't figure out!
If pwd is a builtin module, shouldn't this problem affect other builtin
modules too?! But it doesn't
--
Thanks,
Medhat


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
medhat
2006-12-30 06:30:34 UTC
Permalink
Well, re-emerging mod_python fixed the problem!
--
Medhat


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