It will be difficult to give you an exact cause without having the entire project structure and source code available. But here are some thoughts.
Do you have any circular dependencies between this module and the general one? Where are you making this function call? Is it in another function? If you print the general module and also the results of "dir(general)", are they what you would expect? Justin On Sun, 7 Aug 2016, 10:28 AM <[email protected]> wrote: > hello there, > > i have a main module which is running and at some point needs to import a > function from another module (in another folder). I have imported the > module: > > import samDev.rigging.TOPOCOAT.utility_functions.general as general > reload(general) > > and the function i need from that module gets called like this: > > general.make_maya_component(mesh,face_indexes) > > However the error that is returned is this: > > 'module' object has no attribute 'make_maya_component' > > This is weird because other functions from my 'general' module have been > called from other modules and it worked fine. Im not sure what this error > means. > > can anyone help me out, > thanks > > Sam > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/070bce17-bff6-4119-9d93-eeb728111937%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3OuY6WSjdTEFTMgTcEpBGFUTXAiXo7iT1HUcqsyvr79A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
