Python error (Creating rig for komodo dragon)


#1

Hi all,

I have been following a procedural rigging course on Pluralsight (komodo Dragon). In order to follow the course in parellel, I have installed Eclipse IDE.

Here is my code:

import sys

for p in sys.path:
print p

rigDir = ‘C:/Users/Gavin/Documents/Libraries/code/python’

if not rigDir in sys.path:
sys.path.append(rigDir)

import rigLib

c = rigLib.base.control.Control() ## causing an error

I’m getting this error:
# Error: line 1: AttributeError: file line 1: ‘module’ object has no attribute ‘base’ #

I’m trying to access the Control() class and the project setup is like this:

C:\Users\Gavin\Documents\Libraries\code\python\rigLib

The rigLib has subfolders with ‘base’ being one of them and that’s the one that has the Control () class which I’m trying to access but unfortunately unable to, due to the error.

I would be really grateful if someone could reach out with some ideas of how to sort out this error.

Many thanks
Gavin