Search found 3 matches

by fellows
Mon May 13, 2013 6:11 pm
Forum: Python
Topic: cannot import name urandom
Replies: 6
Views: 2700

if "import os" works, can't you do import os os.urandom(#) ? Nope, that doesn't work either. I get "AttributeError: 'module' object has no attribute 'urandom' Incidentally, if I run the following in Blender import os import inspect print inspect.getfile(os) I get /usr/lib/python2.6/os.pyc which is ...
by fellows
Sat May 11, 2013 12:52 am
Forum: Python
Topic: cannot import name urandom
Replies: 6
Views: 2700

are there two different python installations maybe? One with that module, and another without? Thanks for the quick reply. There are several versions of python on my machine, yes, and they all have the os module since it is a built-in. I don't think that's the problem, though, because Blender is ab...
by fellows
Sat May 11, 2013 12:14 am
Forum: Python
Topic: cannot import name urandom
Replies: 6
Views: 2700

cannot import name urandom

from within Blender (2.49b), when I try to run a Python script containing the line: "from os import urandom" I get the error: "ImportError: cannot import name urandom" My setup: Ubuntu 12.04 LTS, 64-bit version Blender 2.49b (blender-2.49b-linux-glibc236-py26-x86_64) Python2.6.8 from within stand-al...