nope...never got this resolved. same issue for me, just havent had time to get back and resolve it as its not a vital issue for us right now
On Thu, Feb 11, 2016 at 2:25 PM, Antonio Govela <[email protected]> wrote: > Hey Justin, was this resolved? I have a similar issue with Python2.7 , P4 > python and Maya 2016. > I can import P4 just fine through a python shell, but not through Maya, > I've added the path to my PYTHONPATH env variable with no luck. > It seems to import P4.py and then in line 410 "import P4API" i get the DLL > load failed, cant find the specified file. Maybe it's compiled for the > wrong version? but how come I can run it through shell? > > Also how could I make P4Python accessible throughout the network to deploy > tools like animation exporters with P4 checkout options to other > workstations.. > > I also tried something like this: > import sys > path = "C:\\Python27\\Lib\\site-packages" > if path not in sys.path: > sys.path.append(path) > import P4 > > and I get this: > > # File "<maya console>", line 9, in <module> > > # File "C:\Python27\Lib\site-packages\P4.py", line 410, in <module> > > # import P4API > > # ImportError: DLL load failed: The specified module could not be found. // > > but I can see the "P4API.pyd" in the folder .. :/ > > Thanks! > > # File > "\\newcastle\Tools\SDK\Maya\Tools\Python27\Lib\site-packages\P4.py", line > 410, in <module> > > # import P4API > > # ImportError: DLL load failed: The specified module could not be found. // > > > On Wednesday, January 6, 2016 at 4:28:25 PM UTC-8, Justin Israel wrote: >> >> Should be 64-bit for any of the recent versions of Maya. What should >> actually matter is that it is build with the matching compiler for the >> particular Maya version. >> >> On Thu, Jan 7, 2016 at 1:03 PM Todd Widup <[email protected]> wrote: >> >>> hmm...ok, discussing with our engineers...is Maya's Python 32 or 64 bit? >>> >>> On Wed, Jan 6, 2016 at 3:51 PM, Todd Widup <[email protected]> wrote: >>> >>>> ok.. will get our engineers to recompile the perforce tools >>>> >>>> On Wed, Jan 6, 2016 at 3:41 PM, Justin Israel <[email protected]> >>>> wrote: >>>> >>>>> I'm not sure how Maya picks up external environments on Windows. But >>>>> you do have to expand its PYTHOPATH by some means to point at external >>>>> locations. >>>>> >>>>> As for your perforce module... compiled extensions have to be compiled >>>>> to match Maya. So you may have to rebuild it against Maya's own python. >>>>> >>>>> >>>>> On Thu, Jan 7, 2016 at 12:10 PM Todd Widup <[email protected]> wrote: >>>>> >>>>>> so I have to set the lib/site-package path then.... would be nice if >>>>>> there was an easier way, lol. >>>>>> >>>>>> ok..now to figure out why standalong works fine for P4Python and why >>>>>> Maya Python wont load it due to some DLL error :( >>>>>> >>>>>> >>>>>> On Wed, Jan 6, 2016 at 3:06 PM, Justin Israel <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Did you update your Maya.env or your userSetup.py to include extra >>>>>>> paths? >>>>>>> >>>>>>> On Thu, Jan 7, 2016 at 12:05 PM Todd Widup <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> so Pip and P4python are already installed on my Python 27 install.. >>>>>>>> my dirs for Python27 and Python27/Scripts are already in my path. >>>>>>>> both of >>>>>>>> course load and work fine in a standalone Python, but not in Maya..Maya >>>>>>>> does not see them..this is a more accurate question. >>>>>>>> >>>>>>>> How do you get Maya Python to see/use modules that are installed to >>>>>>>> teh lib/site-package director of a python 27 install. >>>>>>>> >>>>>>>> On Wed, Jan 6, 2016 at 1:55 PM, Todd Widup <[email protected]> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> ok, was hoping that would work for those..though there seems to be >>>>>>>>> an issue with the P4 one I got >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Jan 6, 2016 at 1:50 PM, Justin Israel <[email protected] >>>>>>>>> > wrote: >>>>>>>>> >>>>>>>>>> Just add extra paths to your PYTHONPATH in the Maya.env or >>>>>>>>>> sys.path in userSetup.py? >>>>>>>>>> >>>>>>>>>> On Thu, Jan 7, 2016 at 10:44 AM Todd Widup <[email protected]> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> so...how do I get site packages, like Pip and P4Python installed >>>>>>>>>>> correctly for Maya Py to see and use? >>>>>>>>>>> can they just sit in the local system install and scripts >>>>>>>>>>> directory (the default Python27 install that is) or do they have to >>>>>>>>>>> be in >>>>>>>>>>> the Maya python dir int eh maya install dir? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Todd Widup >>>>>>>>>>> Creature TD / Technical Artist >>>>>>>>>>> [email protected] >>>>>>>>>>> [email protected] >>>>>>>>>>> www.toddwidup.com >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> 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/CABBPk37YMT6%3Dq2L68zrhuWhnsPjTj3xC2C_zO45%2BunFF_d0Eyg%40mail.gmail.com >>>>>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk37YMT6%3Dq2L68zrhuWhnsPjTj3xC2C_zO45%2BunFF_d0Eyg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>>>>>>> . >>>>>>>>>>> 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/CAPGFgA3Du0%2BiT7D-CoJ4wR1rkdo-66Oe-eugU8SZG8FuoQO3LA%40mail.gmail.com >>>>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3Du0%2BiT7D-CoJ4wR1rkdo-66Oe-eugU8SZG8FuoQO3LA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>>>>>> . >>>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Todd Widup >>>>>>>>> Creature TD / Technical Artist >>>>>>>>> [email protected] >>>>>>>>> [email protected] >>>>>>>>> www.toddwidup.com >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Todd Widup >>>>>>>> Creature TD / Technical Artist >>>>>>>> [email protected] >>>>>>>> [email protected] >>>>>>>> www.toddwidup.com >>>>>>>> >>>>>>>> -- >>>>>>>> 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/CABBPk36P9aX_wMQictarYtzw9i8dePgbYWdyUbS8GG4yiTYpBQ%40mail.gmail.com >>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk36P9aX_wMQictarYtzw9i8dePgbYWdyUbS8GG4yiTYpBQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>>>> . >>>>>>>> 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/CAPGFgA30fOMw88WP7r3BbRozdVmfG-CECeZB1d%2B6ZBJddPwYyQ%40mail.gmail.com >>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA30fOMw88WP7r3BbRozdVmfG-CECeZB1d%2B6ZBJddPwYyQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>> >>>>>> >>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Todd Widup >>>>>> Creature TD / Technical Artist >>>>>> [email protected] >>>>>> [email protected] >>>>>> www.toddwidup.com >>>>>> >>>>>> -- >>>>>> 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/CABBPk37Pd%2BXmdR2t7XOfmqtrsr4dAGQDLqy%2B-tDi7nnzu_G6og%40mail.gmail.com >>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk37Pd%2BXmdR2t7XOfmqtrsr4dAGQDLqy%2B-tDi7nnzu_G6og%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> 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/CAPGFgA0Nz%2BkF9uDREm0epE9uL8MW17T3GKoiTFWm0siwWfj02g%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0Nz%2BkF9uDREm0epE9uL8MW17T3GKoiTFWm0siwWfj02g%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Todd Widup >>>> Creature TD / Technical Artist >>>> [email protected] >>>> [email protected] >>>> www.toddwidup.com >>>> >>> >>> >>> >>> -- >>> Todd Widup >>> Creature TD / Technical Artist >>> [email protected] >>> [email protected] >>> www.toddwidup.com >>> >>> -- >>> 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/CABBPk35iLojyZkqoPuj6xQ59qVb4%2BQjUqWMm7_zQzamPhv9zag%40mail.gmail.com >>> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk35iLojyZkqoPuj6xQ59qVb4%2BQjUqWMm7_zQzamPhv9zag%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> 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/28c59eef-d11f-4d68-aad6-4c233ef69c5d%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/28c59eef-d11f-4d68-aad6-4c233ef69c5d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Todd Widup Creature TD / Technical Artist [email protected] [email protected] www.toddwidup.com -- 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/CABBPk36rZju3Y14RbyLGu5Nud2uvzoxKCoM9mz-9pw6g2q4K4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
