an0malaus opened this issue on Nov 25, 2011 ยท 8 posts
an0malaus posted Fri, 25 November 2011 at 8:23 AM
I'm running Mac OS X 10.7.2 and Poser Pro 2012 and have run into some problems with BagginsBill's parmatic and matmatic scripts in the form of python "No module named
Searching the Python 2.7 documentations informs me that modules can either acquire their name from a filename, e.g. parmatic.py or from a directory name. In this case the final directory of the "/Users/Shared/Poser Pro 2012 Content/Runtime/Python/parmatic" path. Python modules can also be part of a package, which may be referred to as simply a named directory in which other python modules reside. But Poser's python can't seem to find the parmatic module. There is no parmatic.py (or parmatic.pyc) file in the parmatic directory. The file that contains the parmatic module is called init.py which implies to me that parmatic is a python package as opposed to just a simple module as far as python's concerned (please correct me if this is wrong). The other piece of information which seems almost, but not quite sufficient in this situation, is that the directory in which a python script is contained is automatically added to the path when that script is executed manually (or in this case, via a Poser python script button). We can see that this is the case by looking at the sys.path, which does include /Users/.../parmatic as shown in the screenshot. Yet python still can't find the parmatic module.
Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.