Tim, Thanks for taking a look. Still feeling my way on what I need to post to be most helpful.
The OS is Ubuntu 7.04 (Feisty). Here's the full traceback: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ decorators.py" in _checklogin 55. return view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/django/views/decorators/ cache.py" in _wrapped_view_func 39. response = view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ main.py" in change_stage 329. new_object = manipulator.save(new_data) File "/usr/lib/python2.5/site-packages/django/db/models/ manipulators.py" in save 108. new_object.save() File "/home/mwaite/django-projects/data/app/models.py" in save 170. api = twitter.Api() File "build/bdist.linux-i686/egg/twitter.py" in __init__ 900. self._cache = _FileCache() File "build/bdist.linux-i686/egg/twitter.py" in __init__ 1451. self._InitializeRootDirectory(root_directory) File "build/bdist.linux-i686/egg/twitter.py" in _InitializeRootDirectory 1508. root_directory = self._GetTmpCachePath() File "build/bdist.linux-i686/egg/twitter.py" in _GetTmpCachePath 1502. username = self._GetUsername() File "build/bdist.linux-i686/egg/twitter.py" in _GetUsername 1498. os.getlogin() or \ OSError at /url/of/record/in/admin/ [Errno 25] Inappropriate ioctl for device Here's where I expose my rank noobishness: I'm not sure what user the python process is running as. It's a local install, running on Apache/ mod_python so I'm guessing that it's running as me. Tell me how I can figure it out and I'll tell you for sure. As for executing on the python prompt: os.getlogin() gets my login. The twitter._GetUsername() doesn't work however: >>> twitter._GetUsername() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute '_GetUsername' Again, thank you for taking a look at this. Matt Waite On Sep 18, 12:10 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > However, when I save the record in the Django admin, I get this: > > > [Errno 25] Inappropriate ioctl for device > > > Exception Location: build/bdist.linux-i686/egg/twitter.py in > > _GetUsername, line 1498 > > A couple pieces of information would be helpful: > > Which OS? > > Could you provide the full traceback (redacted for > usernames/passwords if needed, but at least the full callstack)? > > As which user is the python process running, and how is it > running (dev server, apache, fast-cgi)? > > If you pull up a raw python prompt and execute the following two > lines, what do you get: > > >>> import os > >>> os.getlogin() > > Also at the raw python prompt, what happens if you do > > >>> import twitter > >>> twitter._GetUsername() > > That should provide enough information to at least try and > replicate the problem, and get things a step closer to finding an > answer. > > -tim --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---