Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Christopher.
On Saturday, April 2, 2016 at 7:24:20 PM UTC-4, Justin Israel wrote:
>
>
>
> On Sun, Apr 3, 2016 at 10:56 AM Christopher.  > wrote:
>
>>
>>
>> On Saturday, April 2, 2016 at 5:05:08 PM UTC-4, Justin Israel wrote:
>>
>>>
>>>
>>> On Sun, Apr 3, 2016 at 12:28 AM Christopher.  
>>> wrote:
>>>


 On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote: 

>
> I was hoping to just see the results so you could then answer if any 
> of those paths actually contain the python script you areare failing to 
> import 
>

 The results of the command show none of the paths which contain 
 strictly my Python Scripts.

>>>
>>> Something is not adding up here.
>>> When I do the following test:
>>>
>>> *scripts/userSetup.mel*
>>>
>>> python("import sys; sys.path.append('FOO/BAR')")
>>>
>>> Then I launch maya and do:   print '\n'.join(sys.path)
>>>
>>> I see all of the other Maya paths, and the last line is "FOO/BAR".
>>> If you are not seeing your path at the end of a bunch of other lines, 
>>> something is strange. Did you check the top of your script editor for 
>>> errors when Maya was first launched?
>>>
>>
>> There are no errors at the top of the script editor when Maya launches.  
>>
>> When running this command; print '\n'.join(sys.path), the last line is 
>> not my Custom Python Scripts path.
>>
>> In my system environment variable I have; MAYA_APP_DIR which points to a 
>> custom path overriding the default Maya default installation path which 
>> usually resides in MyDocuments > Maya > 201X-64. Therefore in the new 
>> MAYA_APP_DIR path, I have a Maya.env and in that Maya.env file I have the 
>> PYTHONPATH="" you most likely know this by now but I recapped for 
>> clarification.
>>
>> In my userSetup.mel file, which rests in the custom path as stated in the 
>> MAYA_APP_DIR system environment variable specifically within; 
>> customPath\customPath2\Preferences\2015-x64\scripts
>>
>
> You tend to not give accurately matching references to your pseudo-paths 
> when you provide them for reference. What is the MAYA_APP_DIR path vs the 
> path where you store your userSetup.py? Because if "Preferneces" isn't in 
> that MAYA_APP_DIR path then I seems incorrect.
>

This is the path where I have stored userSetup.mel; C:\Custom Program 
Settings\Maya_Resources\Preferences\2015-x64\scripts

And this is the path in my userSetup.mel file; C:\Custom Program 
Settings\Maya_Resources\pythonscript

There is a difference because none of my python script exist in the first 
path as I have the path just above ^ in my Maya.env file for Python scripts 
which as you know that variable name is PYTHONPATH=

 

>
> In any case, I replicated your setup. I created a location:
>
> /tmp/maya_app
>
> And set my shell env var:  MAYA_APP_DIR=/tmp/maya_app
>
> I created /tmp/maya_app/Maya.env, with PYTHONPATH=""   (for whatever 
> reason, even though it has no effect)
>
> I created /tmp/maya_app/2015-x64/scripts/userSetup.mel , containing:
>
> python("import sys; sys.path.append('/tmp/my_python_stuff')");
>
> Then I created /tmp/my_python_stuff/stuff.py 
>
> When launching maya, and printing the sys.path, I see 
> /tmp/my_python_stuff, and I am able to import the stuff module.
>
>
> Justin
>  
>
>>
>> When restarting Maya and trying to run any Python script, they don't run, 
>> so my guess is, the Python scripts can't find the Python Modules.
>>
>>  
>>
>>>
>>> Similarly, if I completely remove userSetup.py and create userSetup.py 
>>> in its place (something I actually do anyways, as I use a py instead of a 
>>> mel script), I can do this:
>>>
>>> import sys
>>> sys.path.append("FOO/BAR")
>>>
>>> And when Maya launches and I print the sys.path, I still see "FOO/BAR" 
>>> as the last line. 
>>>  
>>>
  

>
>
>> Sorry, what do you mean by sys.path, the only path in the 
>> userSetup.mel file or my system environment variable ? 
>>
>
> the result of printing that sys.path list and the thing you are 
> appending to in your userSetup.mel
>
>>
>>
> the thing is. .. this is normally a pretty straight forward problem to 
> solve. You append your custom locations to sys.path and away you go. the 
> problem may be in the ability to communicate your problem and the ability 
> to apply the suggestions you receive 
>

 If you knew the suggestions and how I explained the situation, to many 
 you'd realize the frustration.  It's similar to explaining a problem to 
 twenty different people which as I said I have, with such detail.  Anyway, 
 the only paths to which the command is spitting out is the custom default 
 maya scripts path, which is created from the MAYA_APP_DIR system 
 environment variable, as I know and was also informed by others.

>>>
>>> I can fully appreciate how frustrating this must be for you when 
>>> multiple people have given you suggestions and you cannot manage to arrive 

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Justin Israel
On Sun, Apr 3, 2016 at 10:56 AM Christopher. 
wrote:

>
>
> On Saturday, April 2, 2016 at 5:05:08 PM UTC-4, Justin Israel wrote:
>
>>
>>
>> On Sun, Apr 3, 2016 at 12:28 AM Christopher. 
>> wrote:
>>
>>>
>>>
>>> On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote:
>>>

 I was hoping to just see the results so you could then answer if any of
 those paths actually contain the python script you areare failing to import

>>>
>>> The results of the command show none of the paths which contain strictly
>>> my Python Scripts.
>>>
>>
>> Something is not adding up here.
>> When I do the following test:
>>
>> *scripts/userSetup.mel*
>>
>> python("import sys; sys.path.append('FOO/BAR')")
>>
>> Then I launch maya and do:   print '\n'.join(sys.path)
>>
>> I see all of the other Maya paths, and the last line is "FOO/BAR".
>> If you are not seeing your path at the end of a bunch of other lines,
>> something is strange. Did you check the top of your script editor for
>> errors when Maya was first launched?
>>
>
> There are no errors at the top of the script editor when Maya launches.
>
> When running this command; print '\n'.join(sys.path), the last line is not
> my Custom Python Scripts path.
>
> In my system environment variable I have; MAYA_APP_DIR which points to a
> custom path overriding the default Maya default installation path which
> usually resides in MyDocuments > Maya > 201X-64. Therefore in the new
> MAYA_APP_DIR path, I have a Maya.env and in that Maya.env file I have the
> PYTHONPATH="" you most likely know this by now but I recapped for
> clarification.
>
> In my userSetup.mel file, which rests in the custom path as stated in the
> MAYA_APP_DIR system environment variable specifically within;
> customPath\customPath2\Preferences\2015-x64\scripts
>

You tend to not give accurately matching references to your pseudo-paths
when you provide them for reference. What is the MAYA_APP_DIR path vs the
path where you store your userSetup.py? Because if "Preferneces" isn't in
that MAYA_APP_DIR path then I seems incorrect.

In any case, I replicated your setup. I created a location:

/tmp/maya_app

And set my shell env var:  MAYA_APP_DIR=/tmp/maya_app

I created /tmp/maya_app/Maya.env, with PYTHONPATH=""   (for whatever
reason, even though it has no effect)

I created /tmp/maya_app/2015-x64/scripts/userSetup.mel , containing:

python("import sys; sys.path.append('/tmp/my_python_stuff')");

Then I created /tmp/my_python_stuff/stuff.py

When launching maya, and printing the sys.path, I see /tmp/my_python_stuff,
and I am able to import the stuff module.


Justin


>
> When restarting Maya and trying to run any Python script, they don't run,
> so my guess is, the Python scripts can't find the Python Modules.
>
>
>
>>
>> Similarly, if I completely remove userSetup.py and create userSetup.py in
>> its place (something I actually do anyways, as I use a py instead of a mel
>> script), I can do this:
>>
>> import sys
>> sys.path.append("FOO/BAR")
>>
>> And when Maya launches and I print the sys.path, I still see "FOO/BAR" as
>> the last line.
>>
>>
>>>
>>>


> Sorry, what do you mean by sys.path, the only path in the
> userSetup.mel file or my system environment variable ?
>

 the result of printing that sys.path list and the thing you are
 appending to in your userSetup.mel

>
>
 the thing is. .. this is normally a pretty straight forward problem to
 solve. You append your custom locations to sys.path and away you go. the
 problem may be in the ability to communicate your problem and the ability
 to apply the suggestions you receive

>>>
>>> If you knew the suggestions and how I explained the situation, to many
>>> you'd realize the frustration.  It's similar to explaining a problem to
>>> twenty different people which as I said I have, with such detail.  Anyway,
>>> the only paths to which the command is spitting out is the custom default
>>> maya scripts path, which is created from the MAYA_APP_DIR system
>>> environment variable, as I know and was also informed by others.
>>>
>>
>> I can fully appreciate how frustrating this must be for you when multiple
>> people have given you suggestions and you cannot manage to arrive at a
>> working solution. It is also pretty challenging for the people making the
>> suggestions, when they feel they are giving a simple answer to a seemingly
>> simple problem and don't hear reasonable outcomes reported back from the
>> implementation of those suggestions.
>>
>> You made reference previously to altering your Maya.env file. Have you
>> set the value of PYTHONPATH within your Maya.env file? That is another way
>> to modify Maya's PYTHONPATH.
>>
>>
>>>
>>>


>
>
>>
>>
>>> I added the custom python scripts path to the userSetup.mel command
>>> as mentioned previously and no my scripts continue not to run. Not the
>>> custom scripts path, that is only where MEL

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Christopher.


On Saturday, April 2, 2016 at 5:05:08 PM UTC-4, Justin Israel wrote:
>
>
>
> On Sun, Apr 3, 2016 at 12:28 AM Christopher.  > wrote:
>
>>
>>
>> On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote: 
>>
>>>
>>> I was hoping to just see the results so you could then answer if any of 
>>> those paths actually contain the python script you areare failing to import 
>>>
>>
>> The results of the command show none of the paths which contain strictly 
>> my Python Scripts.
>>
>
> Something is not adding up here.
> When I do the following test:
>
> *scripts/userSetup.mel*
>
> python("import sys; sys.path.append('FOO/BAR')")
>
> Then I launch maya and do:   print '\n'.join(sys.path)
>
> I see all of the other Maya paths, and the last line is "FOO/BAR".
> If you are not seeing your path at the end of a bunch of other lines, 
> something is strange. Did you check the top of your script editor for 
> errors when Maya was first launched?
>

There are no errors at the top of the script editor when Maya launches.  

When running this command; print '\n'.join(sys.path), the last line is not 
my Custom Python Scripts path.

In my system environment variable I have; MAYA_APP_DIR which points to a 
custom path overriding the default Maya default installation path which 
usually resides in MyDocuments > Maya > 201X-64. Therefore in the new 
MAYA_APP_DIR path, I have a Maya.env and in that Maya.env file I have the 
PYTHONPATH="" you most likely know this by now but I recapped for 
clarification.

In my userSetup.mel file, which rests in the custom path as stated in the 
MAYA_APP_DIR system environment variable specifically within; 
customPath\customPath2\Preferences\2015-x64\scripts

When restarting Maya and trying to run any Python script, they don't run, 
so my guess is, the Python scripts can't find the Python Modules.

 

>
> Similarly, if I completely remove userSetup.py and create userSetup.py in 
> its place (something I actually do anyways, as I use a py instead of a mel 
> script), I can do this:
>
> import sys
> sys.path.append("FOO/BAR")
>
> And when Maya launches and I print the sys.path, I still see "FOO/BAR" as 
> the last line. 
>  
>
>>  
>>
>>>
>>>
 Sorry, what do you mean by sys.path, the only path in the userSetup.mel 
 file or my system environment variable ? 

>>>
>>> the result of printing that sys.path list and the thing you are 
>>> appending to in your userSetup.mel
>>>


>>> the thing is. .. this is normally a pretty straight forward problem to 
>>> solve. You append your custom locations to sys.path and away you go. the 
>>> problem may be in the ability to communicate your problem and the ability 
>>> to apply the suggestions you receive 
>>>
>>
>> If you knew the suggestions and how I explained the situation, to many 
>> you'd realize the frustration.  It's similar to explaining a problem to 
>> twenty different people which as I said I have, with such detail.  Anyway, 
>> the only paths to which the command is spitting out is the custom default 
>> maya scripts path, which is created from the MAYA_APP_DIR system 
>> environment variable, as I know and was also informed by others.
>>
>
> I can fully appreciate how frustrating this must be for you when multiple 
> people have given you suggestions and you cannot manage to arrive at a 
> working solution. It is also pretty challenging for the people making the 
> suggestions, when they feel they are giving a simple answer to a seemingly 
> simple problem and don't hear reasonable outcomes reported back from the 
> implementation of those suggestions.
>
> You made reference previously to altering your Maya.env file. Have you set 
> the value of PYTHONPATH within your Maya.env file? That is another way to 
> modify Maya's PYTHONPATH.
>  
>
>>  
>>
>>>
>>>
  

>
>
>> I added the custom python scripts path to the userSetup.mel command 
>> as mentioned previously and no my scripts continue not to run. Not the 
>> custom scripts path, that is only where MEL scripts reside, rather the 
>> custom Python Script path as also in my Maya.env file as PYTHONPATH = "".
>>
>
> Why are we we talking about Mel in a python question? All I I wanted 
> to know was the absolute location of the python script that fails to 
> import 
> for you, and the contents of your sys.path in Maya to see where it is 
> checking 
>
> This is like pulling teeth. 
>
>
>> On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:
>>
>>>
>>>
>>> On Sat, 2 Apr 2016 12:56 PM Crest Christopher  
>>> wrote:
>>>
 That wasn't the case when the Python Module path was in my system 
 environment variable; I didn't need to have all my Python Maya scripts 
 in 
 the Python Modules path location ?

 Here is the absolute path for all my python scripts, same absolute 
 path as listed in the Maya.env fil

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Justin Israel
On Sun, Apr 3, 2016 at 12:28 AM Christopher. 
wrote:

>
>
> On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote:
>
>>
>> I was hoping to just see the results so you could then answer if any of
>> those paths actually contain the python script you areare failing to import
>>
>
> The results of the command show none of the paths which contain strictly
> my Python Scripts.
>

Something is not adding up here.
When I do the following test:

*scripts/userSetup.mel*

python("import sys; sys.path.append('FOO/BAR')")

Then I launch maya and do:   print '\n'.join(sys.path)

I see all of the other Maya paths, and the last line is "FOO/BAR".
If you are not seeing your path at the end of a bunch of other lines,
something is strange. Did you check the top of your script editor for
errors when Maya was first launched?

Similarly, if I completely remove userSetup.py and create userSetup.py in
its place (something I actually do anyways, as I use a py instead of a mel
script), I can do this:

import sys
sys.path.append("FOO/BAR")

And when Maya launches and I print the sys.path, I still see "FOO/BAR" as
the last line.


>
>
>>
>>
>>> Sorry, what do you mean by sys.path, the only path in the userSetup.mel
>>> file or my system environment variable ?
>>>
>>
>> the result of printing that sys.path list and the thing you are appending
>> to in your userSetup.mel
>>
>>>
>>>
>> the thing is. .. this is normally a pretty straight forward problem to
>> solve. You append your custom locations to sys.path and away you go. the
>> problem may be in the ability to communicate your problem and the ability
>> to apply the suggestions you receive
>>
>
> If you knew the suggestions and how I explained the situation, to many
> you'd realize the frustration.  It's similar to explaining a problem to
> twenty different people which as I said I have, with such detail.  Anyway,
> the only paths to which the command is spitting out is the custom default
> maya scripts path, which is created from the MAYA_APP_DIR system
> environment variable, as I know and was also informed by others.
>

I can fully appreciate how frustrating this must be for you when multiple
people have given you suggestions and you cannot manage to arrive at a
working solution. It is also pretty challenging for the people making the
suggestions, when they feel they are giving a simple answer to a seemingly
simple problem and don't hear reasonable outcomes reported back from the
implementation of those suggestions.

You made reference previously to altering your Maya.env file. Have you set
the value of PYTHONPATH within your Maya.env file? That is another way to
modify Maya's PYTHONPATH.


>
>
>>
>>
>>>
>>>


> I added the custom python scripts path to the userSetup.mel command as
> mentioned previously and no my scripts continue not to run. Not the custom
> scripts path, that is only where MEL scripts reside, rather the custom
> Python Script path as also in my Maya.env file as PYTHONPATH = "".
>

 Why are we we talking about Mel in a python question? All I I wanted to
 know was the absolute location of the python script that fails to import
 for you, and the contents of your sys.path in Maya to see where it is
 checking

 This is like pulling teeth.


> On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:
>
>>
>>
>> On Sat, 2 Apr 2016 12:56 PM Crest Christopher 
>> wrote:
>>
>>> That wasn't the case when the Python Module path was in my system
>>> environment variable; I didn't need to have all my Python Maya scripts 
>>> in
>>> the Python Modules path location ?
>>>
>>> Here is the absolute path for all my python scripts, same absolute
>>> path as listed in the Maya.env file for PYTHONPATH.
>>>
>>> C:\Custom Program Settings\Maya_Resources\pythonscript
>>>
>>
>> You can either set your PYTHONPATH from the Maya.env or the
>> userSetup.mel
>> If you add your custom scripts location to the sys.path in your
>> userSetup.mel, does it then succeed in importing your script?
>>
>> If not, go into the script editor and run:
>>
>> print '\n'.join(sys.path)
>>
>> And show us the results of that
>>
>>>
>>> Justin Israel
>>> Friday, April 01, 2016 7:49 PM
>>>
>>> Yes it would work as long as your scripts are in that site packages
>>> location. What is the absolute path to your script?
>>>
>>> --
>>> You received this message because you are subscribed to a topic in
>>> the Google Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> python_inside_maya+unsubscr...@googlegroups.com.
>>>
>>> To view this discussion o

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Christopher.
Any Python script I run in Maya gives me an error; related to no Modules 
named, then whatever the script name is.  At first I though it was the fact 
that Maya couldn't find the script, after running this problem though 
almost twenty people, and realizing, it was because the Python modules for 
the System Environment variable were removed, numerous suggestions were to 
place the Python Modules path back into the System Environment Variable and 
all should work again, unfortunately not the case.

Then one of the suggestions when posting on this group was to place a 
python command it in the userSetup.mel, enter the path name to which where 
my python scripts are stored on my system restart Maya and those python 
scripts should work as they can find the Python modules, that as well is 
not the case and didn't work.



On Saturday, April 2, 2016 at 7:28:29 AM UTC-4, Christopher. wrote:
>
>
>
> On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote:
>>
>>
>>
>> On Sat, 2 Apr 2016 4:52 PM Christopher.  wrote:
>>
>>>
>>>
>>> On Friday, April 1, 2016 at 11:37:06 PM UTC-4, Justin Israel wrote:
>>>


 On Sat, 2 Apr 2016 3:50 PM Christopher.  wrote:

> There was extras related to other plug-ins I removed them and kept it 
> to the relevant information to which the command spit out; hopefully this 
> helps. 
>
> C:/Custom Program Settings/Maya_Resources/Preferences/2015-x64/scripts/
>

 You are saying that this path is the only thing in your sys.path? that 
 can't be true. 

>>>
>>> The command you told me to enter in the script editor gave me numerous 
>>> paths, mostly related to Maya plugins etc.  
>>>
>>
>> I was hoping to just see the results so you could then answer if any of 
>> those paths actually contain the python script you areare failing to import 
>>
>
> The results of the command show none of the paths which contain strictly 
> my Python Scripts.
>  
>
>>
>>
>>> Sorry, what do you mean by sys.path, the only path in the userSetup.mel 
>>> file or my system environment variable ? 
>>>
>>
>> the result of printing that sys.path list and the thing you are appending 
>> to in your userSetup.mel
>>
>>
>>> I mentioned the MEL script path, just for some understanding on the file 
>>> structure I have setup, to help understand.  
>>>
>>> As I mentioned, no one I've brought this issue to attention was able to 
>>> solve, and I'v explained the situation as deep of an explanation as 
>>> possible.  If you can solve, it would be a miracle; or anyone else for that 
>>> matter. I must be trying to cure black magic or so it feels like.
>>>
>>
>> the thing is. .. this is normally a pretty straight forward problem to 
>> solve. You append your custom locations to sys.path and away you go. the 
>> problem may be in the ability to communicate your problem and the ability 
>> to apply the suggestions you receive 
>>
>
> If you knew the suggestions and how I explained the situation, to many 
> you'd realize the frustration.  It's similar to explaining a problem to 
> twenty different people which as I said I have, with such detail.  Anyway, 
> the only paths to which the command is spitting out is the custom default 
> maya scripts path, which is created from the MAYA_APP_DIR system 
> environment variable, as I know and was also informed by others.
>  
>
>>
>>
>>>  
>>>


> I added the custom python scripts path to the userSetup.mel command as 
> mentioned previously and no my scripts continue not to run. Not the 
> custom 
> scripts path, that is only where MEL scripts reside, rather the custom 
> Python Script path as also in my Maya.env file as PYTHONPATH = "".
>

 Why are we we talking about Mel in a python question? All I I wanted to 
 know was the absolute location of the python script that fails to import 
 for you, and the contents of your sys.path in Maya to see where it is 
 checking 

 This is like pulling teeth. 


> On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:
>
>>
>>
>> On Sat, 2 Apr 2016 12:56 PM Crest Christopher  
>> wrote:
>>
>>> That wasn't the case when the Python Module path was in my system 
>>> environment variable; I didn't need to have all my Python Maya scripts 
>>> in 
>>> the Python Modules path location ?
>>>
>>> Here is the absolute path for all my python scripts, same absolute 
>>> path as listed in the Maya.env file for PYTHONPATH.
>>>
>>> C:\Custom Program Settings\Maya_Resources\pythonscript
>>>
>>
>> You can either set your PYTHONPATH from the Maya.env or the 
>> userSetup.mel 
>> If you add your custom scripts location to the sys.path in your 
>> userSetup.mel, does it then succeed in importing your script? 
>>
>> If not, go into the script editor and run:
>>
>> print '\n'.join(sys.path)
>>
>> And show us the results 

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Christopher.


On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote:
>
>
>
> On Sat, 2 Apr 2016 4:52 PM Christopher.  > wrote:
>
>>
>>
>> On Friday, April 1, 2016 at 11:37:06 PM UTC-4, Justin Israel wrote:
>>
>>>
>>>
>>> On Sat, 2 Apr 2016 3:50 PM Christopher.  wrote:
>>>
 There was extras related to other plug-ins I removed them and kept it 
 to the relevant information to which the command spit out; hopefully this 
 helps. 

 C:/Custom Program Settings/Maya_Resources/Preferences/2015-x64/scripts/

>>>
>>> You are saying that this path is the only thing in your sys.path? that 
>>> can't be true. 
>>>
>>
>> The command you told me to enter in the script editor gave me numerous 
>> paths, mostly related to Maya plugins etc.  
>>
>
> I was hoping to just see the results so you could then answer if any of 
> those paths actually contain the python script you areare failing to import 
>

The results of the command show none of the paths which contain strictly my 
Python Scripts.
 

>
>
>> Sorry, what do you mean by sys.path, the only path in the userSetup.mel 
>> file or my system environment variable ? 
>>
>
> the result of printing that sys.path list and the thing you are appending 
> to in your userSetup.mel
>
>
>> I mentioned the MEL script path, just for some understanding on the file 
>> structure I have setup, to help understand.  
>>
>> As I mentioned, no one I've brought this issue to attention was able to 
>> solve, and I'v explained the situation as deep of an explanation as 
>> possible.  If you can solve, it would be a miracle; or anyone else for that 
>> matter. I must be trying to cure black magic or so it feels like.
>>
>
> the thing is. .. this is normally a pretty straight forward problem to 
> solve. You append your custom locations to sys.path and away you go. the 
> problem may be in the ability to communicate your problem and the ability 
> to apply the suggestions you receive 
>

If you knew the suggestions and how I explained the situation, to many 
you'd realize the frustration.  It's similar to explaining a problem to 
twenty different people which as I said I have, with such detail.  Anyway, 
the only paths to which the command is spitting out is the custom default 
maya scripts path, which is created from the MAYA_APP_DIR system 
environment variable, as I know and was also informed by others.
 

>
>
>>  
>>
>>>
>>>
 I added the custom python scripts path to the userSetup.mel command as 
 mentioned previously and no my scripts continue not to run. Not the custom 
 scripts path, that is only where MEL scripts reside, rather the custom 
 Python Script path as also in my Maya.env file as PYTHONPATH = "".

>>>
>>> Why are we we talking about Mel in a python question? All I I wanted to 
>>> know was the absolute location of the python script that fails to import 
>>> for you, and the contents of your sys.path in Maya to see where it is 
>>> checking 
>>>
>>> This is like pulling teeth. 
>>>
>>>
 On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:

>
>
> On Sat, 2 Apr 2016 12:56 PM Crest Christopher  
> wrote:
>
>> That wasn't the case when the Python Module path was in my system 
>> environment variable; I didn't need to have all my Python Maya scripts 
>> in 
>> the Python Modules path location ?
>>
>> Here is the absolute path for all my python scripts, same absolute 
>> path as listed in the Maya.env file for PYTHONPATH.
>>
>> C:\Custom Program Settings\Maya_Resources\pythonscript
>>
>
> You can either set your PYTHONPATH from the Maya.env or the 
> userSetup.mel 
> If you add your custom scripts location to the sys.path in your 
> userSetup.mel, does it then succeed in importing your script? 
>
> If not, go into the script editor and run:
>
> print '\n'.join(sys.path)
>
> And show us the results of that 
>
>>
>> Justin Israel
>> Friday, April 01, 2016 7:49 PM
>>
>> Yes it would work as long as your scripts are in that site packages 
>> location. What is the absolute path to your script? 
>>
>> -- 
>> You received this message because you are subscribed to a topic in 
>> the Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> python_inside_maya+unsubscr...@googlegroups.com.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com
>>  
>> 
>> .

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Justin Israel
On Sat, 2 Apr 2016 4:52 PM Christopher.  wrote:

>
>
> On Friday, April 1, 2016 at 11:37:06 PM UTC-4, Justin Israel wrote:
>
>>
>>
>> On Sat, 2 Apr 2016 3:50 PM Christopher.  wrote:
>>
>>> There was extras related to other plug-ins I removed them and kept it to
>>> the relevant information to which the command spit out; hopefully this
>>> helps.
>>>
>>> C:/Custom Program Settings/Maya_Resources/Preferences/2015-x64/scripts/
>>>
>>
>> You are saying that this path is the only thing in your sys.path? that
>> can't be true.
>>
>
> The command you told me to enter in the script editor gave me numerous
> paths, mostly related to Maya plugins etc.
>

I was hoping to just see the results so you could then answer if any of
those paths actually contain the python script you areare failing to import


> Sorry, what do you mean by sys.path, the only path in the userSetup.mel
> file or my system environment variable ?
>

the result of printing that sys.path list and the thing you are appending
to in your userSetup.mel


> I mentioned the MEL script path, just for some understanding on the file
> structure I have setup, to help understand.
>
> As I mentioned, no one I've brought this issue to attention was able to
> solve, and I'v explained the situation as deep of an explanation as
> possible.  If you can solve, it would be a miracle; or anyone else for that
> matter. I must be trying to cure black magic or so it feels like.
>

the thing is. .. this is normally a pretty straight forward problem to
solve. You append your custom locations to sys.path and away you go. the
problem may be in the ability to communicate your problem and the ability
to apply the suggestions you receive


>
>
>>
>>
>>> I added the custom python scripts path to the userSetup.mel command as
>>> mentioned previously and no my scripts continue not to run. Not the custom
>>> scripts path, that is only where MEL scripts reside, rather the custom
>>> Python Script path as also in my Maya.env file as PYTHONPATH = "".
>>>
>>
>> Why are we we talking about Mel in a python question? All I I wanted to
>> know was the absolute location of the python script that fails to import
>> for you, and the contents of your sys.path in Maya to see where it is
>> checking
>>
>> This is like pulling teeth.
>>
>>
>>> On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:
>>>


 On Sat, 2 Apr 2016 12:56 PM Crest Christopher 
 wrote:

> That wasn't the case when the Python Module path was in my system
> environment variable; I didn't need to have all my Python Maya scripts in
> the Python Modules path location ?
>
> Here is the absolute path for all my python scripts, same absolute
> path as listed in the Maya.env file for PYTHONPATH.
>
> C:\Custom Program Settings\Maya_Resources\pythonscript
>

 You can either set your PYTHONPATH from the Maya.env or the
 userSetup.mel
 If you add your custom scripts location to the sys.path in your
 userSetup.mel, does it then succeed in importing your script?

 If not, go into the script editor and run:

 print '\n'.join(sys.path)

 And show us the results of that

>
> Justin Israel
> Friday, April 01, 2016 7:49 PM
>
> Yes it would work as long as your scripts are in that site packages
> location. What is the absolute path to your script?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com
> 
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> Crest Christopher
> Friday, April 01, 2016 6:08 PM
>
> I don't know what else to explain. Have I missed a piece of
> information you want ?
>
>
> Justin Israel
> Friday, April 01, 2016 4:26 PM
>
> Let's just cut to the chase and you tell me where your scripts *are*
> located?
> Obviously your standard environment has those locations in the
> PYTHONPATH and Maya's env does not.
>
> It isn't a complicated concept. If you add the locationa of your
> scripts and dependencies to the sys.path in Maya, then you should be able
> to import your scripts
>
> --
> You received this message because you are subscribed to a topic in the
> Goo

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Christopher.


On Friday, April 1, 2016 at 11:37:06 PM UTC-4, Justin Israel wrote:
>
>
>
> On Sat, 2 Apr 2016 3:50 PM Christopher.  > wrote:
>
>> There was extras related to other plug-ins I removed them and kept it to 
>> the relevant information to which the command spit out; hopefully this 
>> helps. 
>>
>> C:/Custom Program Settings/Maya_Resources/Preferences/2015-x64/scripts/
>>
>
> You are saying that this path is the only thing in your sys.path? that 
> can't be true. 
>

The command you told me to enter in the script editor gave me numerous 
paths, mostly related to Maya plugins etc.  

Sorry, what do you mean by sys.path, the only path in the userSetup.mel 
file or my system environment variable ? 

I mentioned the MEL script path, just for some understanding on the file 
structure I have setup, to help understand.  

As I mentioned, no one I've brought this issue to attention was able to 
solve, and I'v explained the situation as deep of an explanation as 
possible.  If you can solve, it would be a miracle; or anyone else for that 
matter. I must be trying to cure black magic or so it feels like.

 

>
>
>> I added the custom python scripts path to the userSetup.mel command as 
>> mentioned previously and no my scripts continue not to run. Not the custom 
>> scripts path, that is only where MEL scripts reside, rather the custom 
>> Python Script path as also in my Maya.env file as PYTHONPATH = "".
>>
>
> Why are we we talking about Mel in a python question? All I I wanted to 
> know was the absolute location of the python script that fails to import 
> for you, and the contents of your sys.path in Maya to see where it is 
> checking 
>
> This is like pulling teeth. 
>
>
>> On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:
>>
>>>
>>>
>>> On Sat, 2 Apr 2016 12:56 PM Crest Christopher  
>>> wrote:
>>>
 That wasn't the case when the Python Module path was in my system 
 environment variable; I didn't need to have all my Python Maya scripts in 
 the Python Modules path location ?

 Here is the absolute path for all my python scripts, same absolute path 
 as listed in the Maya.env file for PYTHONPATH.

 C:\Custom Program Settings\Maya_Resources\pythonscript

>>>
>>> You can either set your PYTHONPATH from the Maya.env or the 
>>> userSetup.mel 
>>> If you add your custom scripts location to the sys.path in your 
>>> userSetup.mel, does it then succeed in importing your script? 
>>>
>>> If not, go into the script editor and run:
>>>
>>> print '\n'.join(sys.path)
>>>
>>> And show us the results of that 
>>>

 Justin Israel
 Friday, April 01, 2016 7:49 PM

 Yes it would work as long as your scripts are in that site packages 
 location. What is the absolute path to your script? 

 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "Python Programming for Autodesk Maya" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 python_inside_maya+unsubscr...@googlegroups.com.

 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com
  
 
 .


 For more options, visit https://groups.google.com/d/optout.

 Crest Christopher
 Friday, April 01, 2016 6:08 PM

 I don't know what else to explain. Have I missed a piece of information 
 you want ? 


 Justin Israel
 Friday, April 01, 2016 4:26 PM

 Let's just cut to the chase and you tell me where your scripts *are* 
 located? 
 Obviously your standard environment has those locations in the 
 PYTHONPATH and Maya's env does not. 

 It isn't a complicated concept. If you add the locationa of your 
 scripts and dependencies to the sys.path in Maya, then you should be able 
 to import your scripts 

 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "Python Programming for Autodesk Maya" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 python_inside_maya+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com
  
 

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Justin Israel
On Sat, 2 Apr 2016 3:50 PM Christopher.  wrote:

> There was extras related to other plug-ins I removed them and kept it to
> the relevant information to which the command spit out; hopefully this
> helps.
>
> C:/Custom Program Settings/Maya_Resources/Preferences/2015-x64/scripts/
>

You are saying that this path is the only thing in your sys.path? that
can't be true.


> I added the custom python scripts path to the userSetup.mel command as
> mentioned previously and no my scripts continue not to run. Not the custom
> scripts path, that is only where MEL scripts reside, rather the custom
> Python Script path as also in my Maya.env file as PYTHONPATH = "".
>

Why are we we talking about Mel in a python question? All I I wanted to
know was the absolute location of the python script that fails to import
for you, and the contents of your sys.path in Maya to see where it is
checking

This is like pulling teeth.


> On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:
>
>>
>>
>> On Sat, 2 Apr 2016 12:56 PM Crest Christopher 
>> wrote:
>>
>>> That wasn't the case when the Python Module path was in my system
>>> environment variable; I didn't need to have all my Python Maya scripts in
>>> the Python Modules path location ?
>>>
>>> Here is the absolute path for all my python scripts, same absolute path
>>> as listed in the Maya.env file for PYTHONPATH.
>>>
>>> C:\Custom Program Settings\Maya_Resources\pythonscript
>>>
>>
>> You can either set your PYTHONPATH from the Maya.env or the userSetup.mel
>> If you add your custom scripts location to the sys.path in your
>> userSetup.mel, does it then succeed in importing your script?
>>
>> If not, go into the script editor and run:
>>
>> print '\n'.join(sys.path)
>>
>> And show us the results of that
>>
>>>
>>> Justin Israel
>>> Friday, April 01, 2016 7:49 PM
>>>
>>> Yes it would work as long as your scripts are in that site packages
>>> location. What is the absolute path to your script?
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> python_inside_maya+unsubscr...@googlegroups.com.
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com
>>> 
>>> .
>>>
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> Crest Christopher
>>> Friday, April 01, 2016 6:08 PM
>>>
>>> I don't know what else to explain. Have I missed a piece of information
>>> you want ?
>>>
>>>
>>> Justin Israel
>>> Friday, April 01, 2016 4:26 PM
>>>
>>> Let's just cut to the chase and you tell me where your scripts *are*
>>> located?
>>> Obviously your standard environment has those locations in the
>>> PYTHONPATH and Maya's env does not.
>>>
>>> It isn't a complicated concept. If you add the locationa of your scripts
>>> and dependencies to the sys.path in Maya, then you should be able to import
>>> your scripts
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>> Crest Christopher
>>> Friday, April 01, 2016 4:20 PM
>>> No.
>>>
>>> When I had a system environment variable set for Python modules, I
>>> didn't have all the Python scripts in the Python modules path and the
>>> scripts worked perfectly.
>>>
>>> Justin Israel wrote:
>>> Justin Israel
>>> Friday, April 01, 2016 3:06 PM
>>> Are you python scripts inside that location?
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discuss

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Christopher.
There was extras related to other plug-ins I removed them and kept it to 
the relevant information to which the command spit out; hopefully this 
helps. 

C:/Custom Program Settings/Maya_Resources/Preferences/2015-x64/scripts/

I added the custom python scripts path to the userSetup.mel command as 
mentioned previously and no my scripts continue not to run. Not the custom 
scripts path, that is only where MEL scripts reside, rather the custom 
Python Script path as also in my Maya.env file as PYTHONPATH = "".

On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:
>
>
>
> On Sat, 2 Apr 2016 12:56 PM Crest Christopher  > wrote:
>
>> That wasn't the case when the Python Module path was in my system 
>> environment variable; I didn't need to have all my Python Maya scripts in 
>> the Python Modules path location ?
>>
>> Here is the absolute path for all my python scripts, same absolute path 
>> as listed in the Maya.env file for PYTHONPATH.
>>
>> C:\Custom Program Settings\Maya_Resources\pythonscript
>>
>
> You can either set your PYTHONPATH from the Maya.env or the userSetup.mel 
> If you add your custom scripts location to the sys.path in your 
> userSetup.mel, does it then succeed in importing your script? 
>
> If not, go into the script editor and run:
>
> print '\n'.join(sys.path)
>
> And show us the results of that 
>
>>
>> Justin Israel 
>> Friday, April 01, 2016 7:49 PM
>>
>> Yes it would work as long as your scripts are in that site packages 
>> location. What is the absolute path to your script? 
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> python_inside_maya+unsubscr...@googlegroups.com .
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com
>>  
>> 
>> .
>>
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>> Crest Christopher 
>> Friday, April 01, 2016 6:08 PM
>>
>> I don't know what else to explain. Have I missed a piece of information 
>> you want ? 
>>
>>
>> Justin Israel 
>> Friday, April 01, 2016 4:26 PM
>>
>> Let's just cut to the chase and you tell me where your scripts *are* 
>> located? 
>> Obviously your standard environment has those locations in the PYTHONPATH 
>> and Maya's env does not. 
>>
>> It isn't a complicated concept. If you add the locationa of your scripts 
>> and dependencies to the sys.path in Maya, then you should be able to import 
>> your scripts 
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> python_inside_maya+unsubscr...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>> Crest Christopher 
>> Friday, April 01, 2016 4:20 PM
>> No. 
>>
>> When I had a system environment variable set for Python modules, I didn't 
>> have all the Python scripts in the Python modules path and the scripts 
>> worked perfectly.
>>
>> Justin Israel wrote:
>> Justin Israel 
>> Friday, April 01, 2016 3:06 PM
>> Are you python scripts inside that location?
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> python_inside_maya+unsubscr...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1N%3Dh7iG8hd6JMUosF%3DUQJruTaXQPo5LpZMhz2v6ywyNQ%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
>> You received this message because you are subscribed to 

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Justin Israel
On Sat, 2 Apr 2016 12:56 PM Crest Christopher 
wrote:

> That wasn't the case when the Python Module path was in my system
> environment variable; I didn't need to have all my Python Maya scripts in
> the Python Modules path location ?
>
> Here is the absolute path for all my python scripts, same absolute path as
> listed in the Maya.env file for PYTHONPATH.
>
> C:\Custom Program Settings\Maya_Resources\pythonscript
>

You can either set your PYTHONPATH from the Maya.env or the userSetup.mel
If you add your custom scripts location to the sys.path in your
userSetup.mel, does it then succeed in importing your script?

If not, go into the script editor and run:

print '\n'.join(sys.path)

And show us the results of that

>
> Justin Israel 
> Friday, April 01, 2016 7:49 PM
>
> Yes it would work as long as your scripts are in that site packages
> location. What is the absolute path to your script?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com
> 
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> Crest Christopher 
> Friday, April 01, 2016 6:08 PM
>
> I don't know what else to explain. Have I missed a piece of information
> you want ?
>
>
> Justin Israel 
> Friday, April 01, 2016 4:26 PM
>
> Let's just cut to the chase and you tell me where your scripts *are*
> located?
> Obviously your standard environment has those locations in the PYTHONPATH
> and Maya's env does not.
>
> It isn't a complicated concept. If you add the locationa of your scripts
> and dependencies to the sys.path in Maya, then you should be able to import
> your scripts
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
> Crest Christopher 
> Friday, April 01, 2016 4:20 PM
> No.
>
> When I had a system environment variable set for Python modules, I didn't
> have all the Python scripts in the Python modules path and the scripts
> worked perfectly.
>
> Justin Israel wrote:
> Justin Israel 
> Friday, April 01, 2016 3:06 PM
> Are you python scripts inside that location?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1N%3Dh7iG8hd6JMUosF%3DUQJruTaXQPo5LpZMhz2v6ywyNQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/56FF0A9F.20904%40gmail.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 python_inside_maya+unsubscr...@google

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Crest Christopher
That wasn't the case when the Python Module path was in my system 
environment variable; I didn't need to have all my Python Maya scripts 
in the Python Modules path location ?


Here is the absolute path for all my python scripts, same absolute path 
as listed in the Maya.env file for PYTHONPATH.


C:\Custom Program Settings\Maya_Resources\pythonscript


Justin Israel 
Friday, April 01, 2016 7:49 PM

Yes it would work as long as your scripts are in that site packages 
location. What is the absolute path to your script?



--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
python_inside_maya+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.
Crest Christopher 
Friday, April 01, 2016 6:08 PM
I don't know what else to explain. Have I missed a piece of 
information you want ?



Justin Israel 
Friday, April 01, 2016 4:26 PM

Let's just cut to the chase and you tell me where your scripts *are* 
located?
Obviously your standard environment has those locations in the 
PYTHONPATH and Maya's env does not.


It isn't a complicated concept. If you add the locationa of your 
scripts and dependencies to the sys.path in Maya, then you should be 
able to import your scripts



--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
python_inside_maya+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.
Crest Christopher 
Friday, April 01, 2016 4:20 PM
No.

When I had a system environment variable set for Python modules, I 
didn't have all the Python scripts in the Python modules path and the 
scripts worked perfectly.


Justin Israel wrote:
Justin Israel 
Friday, April 01, 2016 3:06 PM
Are you python scripts inside that location?

--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
python_inside_maya+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1N%3Dh7iG8hd6JMUosF%3DUQJruTaXQPo5LpZMhz2v6ywyNQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/56FF0A9F.20904%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Justin Israel
Yes it would work as long as your scripts are in that site packages
location. What is the absolute path to your script?

On Sat, 2 Apr 2016 11:08 AM Crest Christopher 
wrote:

> I don't know what else to explain. Have I missed a piece of information
> you want ?
>
> Justin Israel 
> Friday, April 01, 2016 4:26 PM
>
> Let's just cut to the chase and you tell me where your scripts *are*
> located?
> Obviously your standard environment has those locations in the PYTHONPATH
> and Maya's env does not.
>
> It isn't a complicated concept. If you add the locationa of your scripts
> and dependencies to the sys.path in Maya, then you should be able to import
> your scripts
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
>
>
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
>
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com
> 
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> Crest Christopher 
> Friday, April 01, 2016 4:20 PM
>
> No.
>
> When I had a system environment variable set for Python modules, I didn't
> have all the Python scripts in the Python modules path and the scripts
> worked perfectly.
>
> Justin Israel wrote:
>
> Justin Israel 
> Friday, April 01, 2016 3:06 PM
>
> Are you python scripts inside that location?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
>
>
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
>
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1N%3Dh7iG8hd6JMUosF%3DUQJruTaXQPo5LpZMhz2v6ywyNQ%40mail.gmail.com
> 
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> Christopher. 
> Friday, April 01, 2016 3:04 PM
>
> The userSetup.mel file is located in; C:\\ folder>\Preferences\2015-x64\scripts
>
> Since I never had a userSetup.mel file; the following is the only line
> within: python("import sys;sys.path.append('C:\Python27\Lib\site-packages');
>
> When restarting Maya, all Python scripts don't work, the Python modules
> continue not to be found ?
>
>
>
> On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote:
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
>
>
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
>
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/360602d4-c5b4-4273-bf75-02a6be2cb1d4%40googlegroups.com
> 
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> Christopher. 
> Wednesday, March 30, 2016 3:41 PM
> I meant, *what we all know*, in other words, if scripts can't find python
> modules, *most* of the time they won't execute.
>
>
> All python scripts are relying on Python modules, as I mentioned I had the
> Python module path in my system environment variable; but since deleted it
> from my system environment variable.  Prior to deleting the path, any and
> all Python scripts in my custom path would work, thereafter deletion of the
> path from my system environment variable, they stopped working.
>
> Geordie mentioned to put the script path as he posted, rather then in my
> system environment variable into a userSetup.mel file then those modules
> would load and hopefully all my python scripts would begin working, once
> again; up to this point, that is not the case and I'd like to know what I'm
> doing wrong or what has become tangled so to speak ?
>
> On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin Israel wrote:
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
>
>
> T

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Crest Christopher
I don't know what else to explain. Have I missed a piece of information 
you want ?



Justin Israel 
Friday, April 01, 2016 4:26 PM

Let's just cut to the chase and you tell me where your scripts *are* 
located?
Obviously your standard environment has those locations in the 
PYTHONPATH and Maya's env does not.


It isn't a complicated concept. If you add the locationa of your 
scripts and dependencies to the sys.path in Maya, then you should be 
able to import your scripts



--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
python_inside_maya+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.
Crest Christopher 
Friday, April 01, 2016 4:20 PM
No.

When I had a system environment variable set for Python modules, I 
didn't have all the Python scripts in the Python modules path and the 
scripts worked perfectly.


Justin Israel wrote:
Justin Israel 
Friday, April 01, 2016 3:06 PM
Are you python scripts inside that location?

--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
python_inside_maya+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1N%3Dh7iG8hd6JMUosF%3DUQJruTaXQPo5LpZMhz2v6ywyNQ%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.
Christopher. 
Friday, April 01, 2016 3:04 PM
The userSetup.mel file is located in; C:\\folder>\Preferences\2015-x64\scripts
Since I never had a userSetup.mel file; the following is the only line 
within: python("import 
sys;sys.path.append('C:\Python27\Lib\site-packages');


When restarting Maya, all Python scripts don't work, the Python 
modules continue not to be found ?


On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote:
--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
python_inside_maya+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/360602d4-c5b4-4273-bf75-02a6be2cb1d4%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.
Christopher. 
Wednesday, March 30, 2016 3:41 PM
I meant, /what we all know/, in other words, if scripts can't find 
python modules, /most/ of the time they won't execute.


All python scripts are relying on Python modules, as I mentioned I had 
the Python module path in my system environment variable; but since 
deleted it from my system environment variable.  Prior to deleting the 
path, any and all Python scripts in my custom path would work, 
thereafter deletion of the path from my system environment variable, 
they stopped working.


Geordie mentioned to put the script path as he posted, rather then in 
my system environment variable into a userSetup.mel file then those 
modules would load and hopefully all my python scripts would begin 
working, once again; up to this point, that is not the case and I'd 
like to know what I'm doing wrong or what has become tangled so to speak ?


On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin Israel wrote:
--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Christopher.
The PYTHONPATH environment variable is within the Maya.env file with a 
absolute path. 

python("import sys;sys.path.append('C:\Python27\Lib\site-packages');

The above line, is the only line in my userSetup.mel file, when Maya starts 
shouldn't it read that line, find the Python Modules, then I simply run any 
Python script and the script runs, it sounds that simple but it's not 
working out that simple ?

On Friday, April 1, 2016 at 4:26:19 PM UTC-4, Justin Israel wrote:
>
> Let's just cut to the chase and you tell me where your scripts *are* 
> located? 
> Obviously your standard environment has those locations in the PYTHONPATH 
> and Maya's env does not. 
>
> It isn't a complicated concept. If you add the locationa of your scripts 
> and dependencies to the sys.path in Maya, then you should be able to import 
> your scripts 
>
> On Sat, 2 Apr 2016 9:21 AM Crest Christopher  > wrote:
>
>> No. 
>>
>> When I had a system environment variable set for Python modules, I didn't 
>> have all the Python scripts in the Python modules path and the scripts 
>> worked perfectly.
>>
>> Justin Israel wrote:
>>
>>
>> Are you python scripts inside that location?
>>
>> On Sat, Apr 2, 2016 at 8:04 AM Christopher. 
>>
>>  > >> wrote:
>>
>> The userSetup.mel file is located in; C:\\> folder>\Preferences\2015-x64\scripts
>> Since I never had a userSetup.mel file; the following is the only
>> line within: python("import
>> sys;sys.path.append('C:\Python27\Lib\site-packages');
>>
>> When restarting Maya, all Python scripts don't work, the Pyth on
>> modules continue not to be found ?
>>
>>
>> On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote:
>>
>> I meant, /what we all know/, in other words, if scripts can't
>> find python modules, /most/ of the time they won't execute.
>>
>>
>>
>> All python scripts are relying on Python modules, as I
>> mentioned I had the Python module path in my system
>> environment variable; but since deleted it from my system
>> environment variable.  Prior to deleting the path, any and all
>> Python scripts in my custom path would work, thereafter
>> deletion of the path from my system environment variable, they
>> stopped working.
>>
>> Geordie mentioned to put the script path as he posted, rather
>> then in my system environment variable into a userSetup.mel
>> file then those modules would load and hopefully all my python
>> scripts would begin working, once again; up to this point,
>> that is not the case and I'd like to know what I'm doing wrong
>> or what has become tangled so to speak ?
>>
>> On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin
>> Israel wrote:
>>
>>
>>
>> O n Thu, 31 Mar 2016 8:00 AM Christopher.
>>
>>
>>  wrote:
>>
>> If you were implying that I should use the path
>> Python27/Lib/site-packages instead of
>> Python27/modules; I tried the change but the result
>> was the same.
>>
>> As I stated in my original post, I don't recall the
>> Python path which I had in my environment system path;
>> what I can recall is, whatever path is was, any and
>> all Python scripts would simply execute because as we
>> all know, the python modules were found to run the
>> scripts.
>>
>>
>> I'm having trouble following your language. I can't agree
>> with the claim of what "we we all all know" because I
>> didn't understand it.
>>
>> Where is the s cript or dependency you need, located on
>>
>>
>> your system? You are are trying to import a script in Maya
>> and something is failing. Where did you put it?
>>
>>
>>
>> On Wednesday, March 30, 2016 at 2:20:11 PM UTC-4,
>> Justin Israel wrote:
>>
>> Does your script or dependency live under
>> Python27/modules? Or does it live under
>>
>>  ;Python27/Lib/site-packages?
>>
>>
>>
>>
>> On Thu, 31 Mar 2016 1:05 AM Christopher.
>>  wrote:
>>
>> I have a custom MAYA_APP_DIR in the system
>> environment variable to which that creates a
>> custom default maya installation path, rather
>>
>>&n bsp;it being MyDocuments>Maya>etc in Windows it
>>
>>
>> defaults to the custom Maya path, which
>> contains as the default Maya path
>>
>> 2015-x64
>> - prefs
>> - presets
>>
>>&n bsp;- scripts
>>
>>
>> et

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Justin Israel
Let's just cut to the chase and you tell me where your scripts *are*
located?
Obviously your standard environment has those locations in the PYTHONPATH
and Maya's env does not.

It isn't a complicated concept. If you add the locationa of your scripts
and dependencies to the sys.path in Maya, then you should be able to import
your scripts

On Sat, 2 Apr 2016 9:21 AM Crest Christopher 
wrote:

> No.
>
> When I had a system environment variable set for Python modules, I didn't
> have all the Python scripts in the Python modules path and the scripts
> worked perfectly.
>
> Justin Israel wrote:
>
>
> Are you python scripts inside that location?
>
> On Sat, Apr 2, 2016 at 8:04 AM Christopher.
>
> mailto:crestchristop...@gmail.com>> wrote:
>
> The userSetup.mel file is located in; C:\\ folder>\Preferences\2015-x64\scripts
> Since I never had a userSetup.mel file; the following is the only
> line within: python("import
> sys;sys.path.append('C:\Python27\Lib\site-packages');
>
> When restarting Maya, all Python scripts don't work, the Pyth on
> modules continue not to be found ?
>
>
> On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote:
>
> I meant, /what we all know/, in other words, if scripts can't
> find python modules, /most/ of the time they won't execute.
>
>
>
> All python scripts are relying on Python modules, as I
> mentioned I had the Python module path in my system
> environment variable; but since deleted it from my system
> environment variable.  Prior to deleting the path, any and all
> Python scripts in my custom path would work, thereafter
> deletion of the path from my system environment variable, they
> stopped working.
>
> Geordie mentioned to put the script path as he posted, rather
> then in my system environment variable into a userSetup.mel
> file then those modules would load and hopefully all my python
> scripts would begin working, once again; up to this point,
> that is not the case and I'd like to know what I'm doing wrong
> or what has become tangled so to speak ?
>
> On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin
> Israel wrote:
>
>
>
> O n Thu, 31 Mar 2016 8:00 AM Christopher.
>
>
>  wrote:
>
> If you were implying that I should use the path
> Python27/Lib/site-packages instead of
> Python27/modules; I tried the change but the result
> was the same.
>
> As I stated in my original post, I don't recall the
> Python path which I had in my environment system path;
> what I can recall is, whatever path is was, any and
> all Python scripts would simply execute because as we
> all know, the python modules were found to run the
> scripts.
>
>
> I'm having trouble following your language. I can't agree
> with the claim of what "we we all all know" because I
> didn't understand it.
>
> Where is the s cript or dependency you need, located on
>
>
> your system? You are are trying to import a script in Maya
> and something is failing. Where did you put it?
>
>
>
> On Wednesday, March 30, 2016 at 2:20:11 PM UTC-4,
> Justin Israel wrote:
>
> Does your script or dependency live under
> Python27/modules? Or does it live under
>
>  ;Python27/Lib/site-packages?
>
>
>
>
> On Thu, 31 Mar 2016 1:05 AM Christopher.
>  wrote:
>
> I have a custom MAYA_APP_DIR in the system
> environment variable to which that creates a
> custom default maya installation path, rather
>
>&n bsp;it being MyDocuments>Maya>etc in Windows it
>
>
> defaults to the custom Maya path, which
> contains as the default Maya path
>
> 2015-x64
> - prefs
> - presets
>
>&n bsp;- scripts
>
>
> etc
>
>  I didn't have a userSetup.mel file in the
> Custom 2015-x64 > scripts path in Windows so I
> simply created it, placed the following path &
>
>  & nbsp;  code within; python("import
>
>
> sys;sys.path.append('C:\Python27\modules');
> restarted Maya, attempted to start a Python
> script which searched for Python modules and
> nothing ?
>
>
>
>
> On Wednesday, March 30, 2016 at 3:08:58 AM
>
> & nbsp;

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Crest Christopher

No.

When I had a system environment variable set for Python modules, I 
didn't have all the Python scripts in the Python modules path and the 
scripts worked perfectly.


Justin Israel wrote:


Are you python scripts inside that location?

On Sat, Apr 2, 2016 at 8:04 AM Christopher.
mailto:crestchristop...@gmail.com>> wrote:

The userSetup.mel file is located in; C:\\\Preferences\2015-x64\scripts
Since I never had a userSetup.mel file; the following is the only
line within: python("import
sys;sys.path.append('C:\Python27\Lib\site-packages');

When restarting Maya, all Python scripts don't work, the Python
modules continue not to be found ?


On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote:

I meant, /what we all know/, in other words, if scripts can't
find python modules, /most/ of the time they won't execute.

All python scripts are relying on Python modules, as I
mentioned I had the Python module path in my system
environment variable; but since deleted it from my system
environment variable. Prior to deleting the path, any and all
Python scripts in my custom path would work, thereafter
deletion of the path from my system environment variable, they
stopped working.

Geordie mentioned to put the script path as he posted, rather
then in my system environment variable into a userSetup.mel
file then those modules would load and hopefully all my python
scripts would begin working, once again; up to this point,
that is not the case and I'd like to know what I'm doing wrong
or what has become tangled so to speak ?

On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin
Israel wrote:



On Thu, 31 Mar 2016 8:00 AM Christopher.
 wrote:

If you were implying that I should use the path
Python27/Lib/site-packages instead of
Python27/modules; I tried the change but the result
was the same.

As I stated in my original post, I don't recall the
Python path which I had in my environment system path;
what I can recall is, whatever path is was, any and
all Python scripts would simply execute because as we
all know, the python modules were found to run the
scripts.


I'm having trouble following your language. I can't agree
with the claim of what "we we all all know" because I
didn't understand it.

Where is the script or dependency you need, located on
your system? You are are trying to import a script in Maya
and something is failing. Where did you put it?



On Wednesday, March 30, 2016 at 2:20:11 PM UTC-4,
Justin Israel wrote:

Does your script or dependency live under
Python27/modules? Or does it live under
Python27/Lib/site-packages?


On Thu, 31 Mar 2016 1:05 AM Christopher.
 wrote:

I have a custom MAYA_APP_DIR in the system
environment variable to which that creates a
custom default maya installation path, rather
it being MyDocuments>Maya>etc in Windows it
defaults to the custom Maya path, which
contains as the default Maya path

2015-x64
- prefs
- presets
- scripts
etc

I didn't have a userSetup.mel file in the
Custom 2015-x64 > scripts path in Windows so I
simply created it, placed the following path &
code within; python("import
sys;sys.path.append('C:\Python27\modules');
restarted Maya, attempted to start a Python
script which searched for Python modules and
nothing ?




On Wednesday, March 30, 2016 at 3:08:58 AM
UTC-4, Justin Israel wrote:

He was just showing you how to append any
number of paths,if your have multiple
locations. It sounds like you only need one.


On Wed, 30 Mar 2016 2:49 PM Christopher.
 wrote:

I have two question, one of these
paths are incorrect; I'm leaning
towards the second path as I didn't
quite understand the pseudo path
X:\some\path\python, whether I should
just enter the same path, as in
C:\Python again; as I said, I'm
probably mis-understanding !

python("import
sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");


On Tuesday, March 29, 2016 at 1:02:06
AM UTC-4, Geordie Martinez wrote:

You can add them to your
userSetup.mel or userSetup.py
files in your scripts directory.
just add it like this:

userSetup.mel:

|python("import
sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");|

​

As soon as Maya loads the path(s)
will be available. this is the
easiest way. And you can have it
load any modules there you want to
load automatically.
if you have a package you would
like to load, then it's best to
put it in the site-packages
directory in your maya install


On Mon, Mar 28, 2016 at 9:36 PM,
Crest Christopher
 wrote:

Thanks for the info. ;-)

I just want to know what is
the path used so I can append
it to my system environment
variable MAYA_APP_DIR so
Python modules are loaded by
default for Maya.





Geordie Martinez
Tuesday, March 29, 2016 12:17 AM
If I were you I'd just
install Anaconda and let
Anaconda deal with appending
variables based on versions.

https://www.continuum.io/downloads


--
You received this message
because you are subscribed to
a topic in the Google Groups
"Python Programming for
Autodesk Maya

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Justin Israel
Are you python scripts inside that location?

On Sat, Apr 2, 2016 at 8:04 AM Christopher. 
wrote:

> The userSetup.mel file is located in; C:\\ folder>\Preferences\2015-x64\scripts
> Since I never had a userSetup.mel file; the following is the only line
> within: python("import sys;sys.path.append('C:\Python27\Lib\site-packages');
>
> When restarting Maya, all Python scripts don't work, the Python modules
> continue not to be found ?
>
>
> On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote:
>>
>> I meant, *what we all know*, in other words, if scripts can't find
>> python modules, *most* of the time they won't execute.
>>
>> All python scripts are relying on Python modules, as I mentioned I had
>> the Python module path in my system environment variable; but since deleted
>> it from my system environment variable.  Prior to deleting the path, any
>> and all Python scripts in my custom path would work, thereafter deletion of
>> the path from my system environment variable, they stopped working.
>>
>> Geordie mentioned to put the script path as he posted, rather then in my
>> system environment variable into a userSetup.mel file then those modules
>> would load and hopefully all my python scripts would begin working, once
>> again; up to this point, that is not the case and I'd like to know what I'm
>> doing wrong or what has become tangled so to speak ?
>>
>> On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin Israel wrote:
>>>
>>>
>>>
>>> On Thu, 31 Mar 2016 8:00 AM Christopher.  wrote:
>>>
 If you were implying that I should use the path
 Python27/Lib/site-packages instead of Python27/modules; I tried the change
 but the result was the same.

 As I stated in my original post, I don't recall the Python path which I
 had in my environment system path; what I can recall is, whatever path is
 was, any and all Python scripts would simply execute because as we all
 know, the python modules were found to run the scripts.

>>>
>>> I'm having trouble following your language. I can't agree with the claim
>>> of what "we we all all know" because I didn't understand it.
>>>
>>> Where is the script or dependency you need, located on your system? You
>>> are are trying to import a script in Maya and something is failing. Where
>>> did you put it?
>>>


 On Wednesday, March 30, 2016 at 2:20:11 PM UTC-4, Justin Israel wrote:

> Does your script or dependency live under Python27/modules? Or does it
> live under
> Python27/Lib/site-packages?
>
> On Thu, 31 Mar 2016 1:05 AM Christopher. 
> wrote:
>
>> I have a custom MAYA_APP_DIR in the system environment variable to
>> which that creates a custom default maya installation path, rather it 
>> being
>> MyDocuments>Maya>etc in Windows it defaults to the custom Maya path, 
>> which
>> contains as the default Maya path
>>
>> 2015-x64
>> - prefs
>> - presets
>> - scripts
>> etc
>>
>>  I didn't have a userSetup.mel file in the Custom 2015-x64 > scripts
>> path in Windows so I simply created it, placed the following path & code
>> within; python("import sys;sys.path.append('C:\Python27\modules');
>> restarted Maya, attempted to start a Python script which searched for
>> Python modules and nothing ?
>>
>>
>>
>>
>> On Wednesday, March 30, 2016 at 3:08:58 AM UTC-4, Justin Israel wrote:
>>
>>> He was just showing you how to append any number of paths,if your
>>> have multiple locations. It sounds like you only need one.
>>>
>>> On Wed, 30 Mar 2016 2:49 PM Christopher. 
>>> wrote:
>>>
 I have two question, one of these paths are incorrect; I'm leaning
 towards the second path as I didn't quite understand the pseudo path
 X:\some\path\python, whether I should just enter the same path, as in
 C:\Python again; as I said, I'm probably mis-understanding !

 python("import
 sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");


 On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez
 wrote:

> You can add them to your userSetup.mel or userSetup.py files in
> your scripts directory.
> just add it like this:
>
> userSetup.mel:
>
> python("import
> sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
> ​
>
> As soon as Maya loads the path(s) will be available. this is the
> easiest way. And you can have it load any modules there you want to 
> load
> automatically.
> if you have a package you would like to load, then it's best to
> put it in the site-packages directory in your maya install
>
>

> On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
> crestchr...@gmai

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Christopher.
The userSetup.mel file is located in; C:\\\Preferences\2015-x64\scripts
Since I never had a userSetup.mel file; the following is the only line 
within: python("import sys;sys.path.append('C:\Python27\Lib\site-packages');

When restarting Maya, all Python scripts don't work, the Python modules 
continue not to be found ?

On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote:
>
> I meant, *what we all know*, in other words, if scripts can't find python 
> modules, *most* of the time they won't execute.
>
> All python scripts are relying on Python modules, as I mentioned I had the 
> Python module path in my system environment variable; but since deleted it 
> from my system environment variable.  Prior to deleting the path, any and 
> all Python scripts in my custom path would work, thereafter deletion of the 
> path from my system environment variable, they stopped working.  
>
> Geordie mentioned to put the script path as he posted, rather then in my 
> system environment variable into a userSetup.mel file then those modules 
> would load and hopefully all my python scripts would begin working, once 
> again; up to this point, that is not the case and I'd like to know what I'm 
> doing wrong or what has become tangled so to speak ?
>
> On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin Israel wrote:
>>
>>
>>
>> On Thu, 31 Mar 2016 8:00 AM Christopher.  wrote:
>>
>>> If you were implying that I should use the path 
>>> Python27/Lib/site-packages instead of Python27/modules; I tried the change 
>>> but the result was the same.
>>>
>>> As I stated in my original post, I don't recall the Python path which I 
>>> had in my environment system path; what I can recall is, whatever path is 
>>> was, any and all Python scripts would simply execute because as we all 
>>> know, the python modules were found to run the scripts.
>>>
>>
>> I'm having trouble following your language. I can't agree with the claim 
>> of what "we we all all know" because I didn't understand it. 
>>
>> Where is the script or dependency you need, located on your system? You 
>> are are trying to import a script in Maya and something is failing. Where 
>> did you put it?
>>
>>>
>>>
>>> On Wednesday, March 30, 2016 at 2:20:11 PM UTC-4, Justin Israel wrote:
>>>
 Does your script or dependency live under Python27/modules? Or does it 
 live under 
 Python27/Lib/site-packages? 

 On Thu, 31 Mar 2016 1:05 AM Christopher.  wrote:

> I have a custom MAYA_APP_DIR in the system environment variable to 
> which that creates a custom default maya installation path, rather it 
> being 
> MyDocuments>Maya>etc in Windows it defaults to the custom Maya path, 
> which 
> contains as the default Maya path
>
> 2015-x64
> - prefs
> - presets
> - scripts
> etc
>
>  I didn't have a userSetup.mel file in the Custom 2015-x64 > scripts 
> path in Windows so I simply created it, placed the following path & code 
> within; python("import sys;sys.path.append('C:\Python27\modules'); 
> restarted Maya, attempted to start a Python script which searched for 
> Python modules and nothing ?
>
>
>
>
> On Wednesday, March 30, 2016 at 3:08:58 AM UTC-4, Justin Israel wrote:
>
>> He was just showing you how to append any number of paths,if your 
>> have multiple locations. It sounds like you only need one. 
>>
>> On Wed, 30 Mar 2016 2:49 PM Christopher.  
>> wrote:
>>
>>> I have two question, one of these paths are incorrect; I'm leaning 
>>> towards the second path as I didn't quite understand the pseudo path 
>>> X:\some\path\python, whether I should just enter the same path, as in 
>>> C:\Python again; as I said, I'm probably mis-understanding !
>>>
>>> python("import 
>>> sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");
>>>
>>>
>>> On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez 
>>> wrote:
>>>
 You can add them to your userSetup.mel or userSetup.py files in 
 your scripts directory.
 just add it like this:

 userSetup.mel:

 python("import 
 sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
 ​

 As soon as Maya loads the path(s) will be available. this is the 
 easiest way. And you can have it load any modules there you want to 
 load 
 automatically. 
 if you have a package you would like to load, then it's best to put 
 it in the site-packages directory in your maya install
  

>>>
 On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
 crestchr...@gmail.com> wrote:

> Thanks for the info.  ;-)
>
> I just want to know what is the path used so I can append it to my 
> system environment variable MAYA_APP

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Christopher.
I meant, *what we all know*, in other words, if scripts can't find python 
modules, *most* of the time they won't execute.

All python scripts are relying on Python modules, as I mentioned I had the 
Python module path in my system environment variable; but since deleted it 
from my system environment variable.  Prior to deleting the path, any and 
all Python scripts in my custom path would work, thereafter deletion of the 
path from my system environment variable, they stopped working.  

Geordie mentioned to put the script path as he posted, rather then in my 
system environment variable into a userSetup.mel file then those modules 
would load and hopefully all my python scripts would begin working, once 
again; up to this point, that is not the case and I'd like to know what I'm 
doing wrong or what has become tangled so to speak ?

On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin Israel wrote:
>
>
>
> On Thu, 31 Mar 2016 8:00 AM Christopher.  > wrote:
>
>> If you were implying that I should use the path 
>> Python27/Lib/site-packages instead of Python27/modules; I tried the change 
>> but the result was the same.
>>
>> As I stated in my original post, I don't recall the Python path which I 
>> had in my environment system path; what I can recall is, whatever path is 
>> was, any and all Python scripts would simply execute because as we all 
>> know, the python modules were found to run the scripts.
>>
>
> I'm having trouble following your language. I can't agree with the claim 
> of what "we we all all know" because I didn't understand it. 
>
> Where is the script or dependency you need, located on your system? You 
> are are trying to import a script in Maya and something is failing. Where 
> did you put it?
>
>>
>>
>> On Wednesday, March 30, 2016 at 2:20:11 PM UTC-4, Justin Israel wrote:
>>
>>> Does your script or dependency live under Python27/modules? Or does it 
>>> live under 
>>> Python27/Lib/site-packages? 
>>>
>>> On Thu, 31 Mar 2016 1:05 AM Christopher.  wrote:
>>>
 I have a custom MAYA_APP_DIR in the system environment variable to 
 which that creates a custom default maya installation path, rather it 
 being 
 MyDocuments>Maya>etc in Windows it defaults to the custom Maya path, which 
 contains as the default Maya path

 2015-x64
 - prefs
 - presets
 - scripts
 etc

  I didn't have a userSetup.mel file in the Custom 2015-x64 > scripts 
 path in Windows so I simply created it, placed the following path & code 
 within; python("import sys;sys.path.append('C:\Python27\modules'); 
 restarted Maya, attempted to start a Python script which searched for 
 Python modules and nothing ?




 On Wednesday, March 30, 2016 at 3:08:58 AM UTC-4, Justin Israel wrote:

> He was just showing you how to append any number of paths,if your have 
> multiple locations. It sounds like you only need one. 
>
> On Wed, 30 Mar 2016 2:49 PM Christopher.  
> wrote:
>
>> I have two question, one of these paths are incorrect; I'm leaning 
>> towards the second path as I didn't quite understand the pseudo path 
>> X:\some\path\python, whether I should just enter the same path, as in 
>> C:\Python again; as I said, I'm probably mis-understanding !
>>
>> python("import 
>> sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");
>>
>>
>> On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez 
>> wrote:
>>
>>> You can add them to your userSetup.mel or userSetup.py files in your 
>>> scripts directory.
>>> just add it like this:
>>>
>>> userSetup.mel:
>>>
>>> python("import 
>>> sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
>>> ​
>>>
>>> As soon as Maya loads the path(s) will be available. this is the 
>>> easiest way. And you can have it load any modules there you want to 
>>> load 
>>> automatically. 
>>> if you have a package you would like to load, then it's best to put 
>>> it in the site-packages directory in your maya install
>>>  
>>>
>>
>>> On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
>>> crestchr...@gmail.com> wrote:
>>>
 Thanks for the info.  ;-)

 I just want to know what is the path used so I can append it to my 
 system environment variable MAYA_APP_DIR so Python modules are loaded 
 by 
 default for Maya.



 Geordie Martinez
 Tuesday, March 29, 2016 12:17 AM
 If I were you I'd just install Anaconda and let Anaconda deal with 
 appending variables based on versions.

 https://www.continuum.io/downloads


 -- 
 You received this message because you are subscribed to a topic in 
 the Google Groups "Python Programming for Autodesk Maya" group.

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Justin Israel
On Thu, 31 Mar 2016 8:00 AM Christopher.  wrote:

> If you were implying that I should use the path Python27/Lib/site-packages
> instead of Python27/modules; I tried the change but the result was the same.
>
> As I stated in my original post, I don't recall the Python path which I
> had in my environment system path; what I can recall is, whatever path is
> was, any and all Python scripts would simply execute because as we all
> know, the python modules were found to run the scripts.
>

I'm having trouble following your language. I can't agree with the claim of
what "we we all all know" because I didn't understand it.

Where is the script or dependency you need, located on your system? You are
are trying to import a script in Maya and something is failing. Where did
you put it?

>
>
> On Wednesday, March 30, 2016 at 2:20:11 PM UTC-4, Justin Israel wrote:
>
>> Does your script or dependency live under Python27/modules? Or does it
>> live under
>> Python27/Lib/site-packages?
>>
>> On Thu, 31 Mar 2016 1:05 AM Christopher.  wrote:
>>
>>> I have a custom MAYA_APP_DIR in the system environment variable to which
>>> that creates a custom default maya installation path, rather it being
>>> MyDocuments>Maya>etc in Windows it defaults to the custom Maya path, which
>>> contains as the default Maya path
>>>
>>> 2015-x64
>>> - prefs
>>> - presets
>>> - scripts
>>> etc
>>>
>>>  I didn't have a userSetup.mel file in the Custom 2015-x64 > scripts
>>> path in Windows so I simply created it, placed the following path & code
>>> within; python("import sys;sys.path.append('C:\Python27\modules');
>>> restarted Maya, attempted to start a Python script which searched for
>>> Python modules and nothing ?
>>>
>>>
>>>
>>>
>>> On Wednesday, March 30, 2016 at 3:08:58 AM UTC-4, Justin Israel wrote:
>>>
 He was just showing you how to append any number of paths,if your have
 multiple locations. It sounds like you only need one.

 On Wed, 30 Mar 2016 2:49 PM Christopher.  wrote:

> I have two question, one of these paths are incorrect; I'm leaning
> towards the second path as I didn't quite understand the pseudo path
> X:\some\path\python, whether I should just enter the same path, as in
> C:\Python again; as I said, I'm probably mis-understanding !
>
> python("import
> sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");
>
>
> On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez wrote:
>
>> You can add them to your userSetup.mel or userSetup.py files in your
>> scripts directory.
>> just add it like this:
>>
>> userSetup.mel:
>>
>> python("import
>> sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
>> ​
>>
>> As soon as Maya loads the path(s) will be available. this is the
>> easiest way. And you can have it load any modules there you want to load
>> automatically.
>> if you have a package you would like to load, then it's best to put
>> it in the site-packages directory in your maya install
>>
>>
>
>> On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
>> crestchr...@gmail.com> wrote:
>>
>>> Thanks for the info.  ;-)
>>>
>>> I just want to know what is the path used so I can append it to my
>>> system environment variable MAYA_APP_DIR so Python modules are loaded by
>>> default for Maya.
>>>
>>>
>>>
>>> Geordie Martinez
>>> Tuesday, March 29, 2016 12:17 AM
>>> If I were you I'd just install Anaconda and let Anaconda deal with
>>> appending variables based on versions.
>>>
>>> https://www.continuum.io/downloads
>>>
>>>
>>> --
>>> You received this message because you are subscribed to a topic in
>>> the Google Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>> Christopher.
>>> Monday, March 28, 2016 10:00 PM
>>> I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path
>>> used for the modules to append to a system environment
>>> variable; C:\Python27\modules\modules ?
>>> --
>>> You received this message because you are subscribed to a topic in
>>> the Google Groups "Python Programming for Autodesk Maya" group.
>>> To uns

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Christopher.
If you were implying that I should use the path Python27/Lib/site-packages 
instead of Python27/modules; I tried the change but the result was the same.

As I stated in my original post, I don't recall the Python path which I had 
in my environment system path; what I can recall is, whatever path is was, 
any and all Python scripts would simply execute because as we all know, the 
python modules were found to run the scripts.


On Wednesday, March 30, 2016 at 2:20:11 PM UTC-4, Justin Israel wrote:
>
> Does your script or dependency live under Python27/modules? Or does it 
> live under 
> Python27/Lib/site-packages? 
>
> On Thu, 31 Mar 2016 1:05 AM Christopher.  > wrote:
>
>> I have a custom MAYA_APP_DIR in the system environment variable to which 
>> that creates a custom default maya installation path, rather it being 
>> MyDocuments>Maya>etc in Windows it defaults to the custom Maya path, which 
>> contains as the default Maya path
>>
>> 2015-x64
>> - prefs
>> - presets
>> - scripts
>> etc
>>
>>  I didn't have a userSetup.mel file in the Custom 2015-x64 > scripts path 
>> in Windows so I simply created it, placed the following path & code 
>> within; python("import sys;sys.path.append('C:\Python27\modules'); 
>> restarted Maya, attempted to start a Python script which searched for 
>> Python modules and nothing ?
>>
>>
>>
>>
>> On Wednesday, March 30, 2016 at 3:08:58 AM UTC-4, Justin Israel wrote:
>>
>>> He was just showing you how to append any number of paths,if your have 
>>> multiple locations. It sounds like you only need one. 
>>>
>>> On Wed, 30 Mar 2016 2:49 PM Christopher.  wrote:
>>>
 I have two question, one of these paths are incorrect; I'm leaning 
 towards the second path as I didn't quite understand the pseudo path 
 X:\some\path\python, whether I should just enter the same path, as in 
 C:\Python again; as I said, I'm probably mis-understanding !

 python("import 
 sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");


 On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez wrote:

> You can add them to your userSetup.mel or userSetup.py files in your 
> scripts directory.
> just add it like this:
>
> userSetup.mel:
>
> python("import 
> sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
> ​
>
> As soon as Maya loads the path(s) will be available. this is the 
> easiest way. And you can have it load any modules there you want to load 
> automatically. 
> if you have a package you would like to load, then it's best to put it 
> in the site-packages directory in your maya install
>  
>

> On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
> crestchr...@gmail.com> wrote:
>
>> Thanks for the info.  ;-)
>>
>> I just want to know what is the path used so I can append it to my 
>> system environment variable MAYA_APP_DIR so Python modules are loaded by 
>> default for Maya.
>>
>>
>>
>> Geordie Martinez
>> Tuesday, March 29, 2016 12:17 AM
>> If I were you I'd just install Anaconda and let Anaconda deal with 
>> appending variables based on versions.
>>
>> https://www.continuum.io/downloads
>>
>>
>> -- 
>> You received this message because you are subscribed to a topic in 
>> the Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>> Christopher.
>> Monday, March 28, 2016 10:00 PM
>> I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path 
>> used for the modules to append to a system environment 
>> variable; C:\Python27\modules\modules ? 
>> -- 
>> You received this message because you are subscribed to a topic in 
>> the Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%40googlegroups.

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Justin Israel
Does your script or dependency live under Python27/modules? Or does it live
under
Python27/Lib/site-packages?

On Thu, 31 Mar 2016 1:05 AM Christopher.  wrote:

> I have a custom MAYA_APP_DIR in the system environment variable to which
> that creates a custom default maya installation path, rather it being
> MyDocuments>Maya>etc in Windows it defaults to the custom Maya path, which
> contains as the default Maya path
>
> 2015-x64
> - prefs
> - presets
> - scripts
> etc
>
>  I didn't have a userSetup.mel file in the Custom 2015-x64 > scripts path
> in Windows so I simply created it, placed the following path & code
> within; python("import sys;sys.path.append('C:\Python27\modules');
> restarted Maya, attempted to start a Python script which searched for
> Python modules and nothing ?
>
>
>
>
> On Wednesday, March 30, 2016 at 3:08:58 AM UTC-4, Justin Israel wrote:
>
>> He was just showing you how to append any number of paths,if your have
>> multiple locations. It sounds like you only need one.
>>
>> On Wed, 30 Mar 2016 2:49 PM Christopher.  wrote:
>>
>>> I have two question, one of these paths are incorrect; I'm leaning
>>> towards the second path as I didn't quite understand the pseudo path
>>> X:\some\path\python, whether I should just enter the same path, as in
>>> C:\Python again; as I said, I'm probably mis-understanding !
>>>
>>> python("import
>>> sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");
>>>
>>>
>>> On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez wrote:
>>>
 You can add them to your userSetup.mel or userSetup.py files in your
 scripts directory.
 just add it like this:

 userSetup.mel:

 python("import
 sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
 ​

 As soon as Maya loads the path(s) will be available. this is the
 easiest way. And you can have it load any modules there you want to load
 automatically.
 if you have a package you would like to load, then it's best to put it
 in the site-packages directory in your maya install


>>>
 On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
 crestchr...@gmail.com> wrote:

> Thanks for the info.  ;-)
>
> I just want to know what is the path used so I can append it to my
> system environment variable MAYA_APP_DIR so Python modules are loaded by
> default for Maya.
>
>
>
> Geordie Martinez
> Tuesday, March 29, 2016 12:17 AM
> If I were you I'd just install Anaconda and let Anaconda deal with
> appending variables based on versions.
>
> https://www.continuum.io/downloads
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
> Christopher.
> Monday, March 28, 2016 10:00 PM
> I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path
> used for the modules to append to a system environment
> variable; C:\Python27\modules\modules ?
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/56FA063B.4090507%40gmail.com
> <

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Christopher.
I have a custom MAYA_APP_DIR in the system environment variable to which 
that creates a custom default maya installation path, rather it being 
MyDocuments>Maya>etc in Windows it defaults to the custom Maya path, which 
contains as the default Maya path

2015-x64
- prefs
- presets
- scripts
etc

 I didn't have a userSetup.mel file in the Custom 2015-x64 > scripts path 
in Windows so I simply created it, placed the following path & code 
within; python("import sys;sys.path.append('C:\Python27\modules'); 
restarted Maya, attempted to start a Python script which searched for 
Python modules and nothing ?




On Wednesday, March 30, 2016 at 3:08:58 AM UTC-4, Justin Israel wrote:
>
> He was just showing you how to append any number of paths,if your have 
> multiple locations. It sounds like you only need one. 
>
> On Wed, 30 Mar 2016 2:49 PM Christopher.  > wrote:
>
>> I have two question, one of these paths are incorrect; I'm leaning 
>> towards the second path as I didn't quite understand the pseudo path 
>> X:\some\path\python, whether I should just enter the same path, as in 
>> C:\Python again; as I said, I'm probably mis-understanding !
>>
>> python("import 
>> sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");
>>
>>
>> On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez wrote:
>>
>>> You can add them to your userSetup.mel or userSetup.py files in your 
>>> scripts directory.
>>> just add it like this:
>>>
>>> userSetup.mel:
>>>
>>> python("import 
>>> sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
>>> ​
>>>
>>> As soon as Maya loads the path(s) will be available. this is the easiest 
>>> way. And you can have it load any modules there you want to load 
>>> automatically. 
>>> if you have a package you would like to load, then it's best to put it 
>>> in the site-packages directory in your maya install
>>>  
>>>
>>
>>> On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
>>> crestchr...@gmail.com> wrote:
>>>
 Thanks for the info.  ;-)

 I just want to know what is the path used so I can append it to my 
 system environment variable MAYA_APP_DIR so Python modules are loaded by 
 default for Maya.



 Geordie Martinez
 Tuesday, March 29, 2016 12:17 AM
 If I were you I'd just install Anaconda and let Anaconda deal with 
 appending variables based on versions.

 https://www.continuum.io/downloads


 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "Python Programming for Autodesk Maya" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 python_inside_maya+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.
 Christopher.
 Monday, March 28, 2016 10:00 PM
 I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path 
 used for the modules to append to a system environment 
 variable; C:\Python27\modules\modules ? 
 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "Python Programming for Autodesk Maya" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 python_inside_maya+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%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 python_inside_maya+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/python_inside_maya/56FA063B.4090507%40gmail.com
  
 
 .

 For more options, visit https://groups.google.com/d/optout.

>>>
>>> -- 
>> You received

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Justin Israel
He was just showing you how to append any number of paths,if your have
multiple locations. It sounds like you only need one.

On Wed, 30 Mar 2016 2:49 PM Christopher.  wrote:

> I have two question, one of these paths are incorrect; I'm leaning towards
> the second path as I didn't quite understand the pseudo path
> X:\some\path\python, whether I should just enter the same path, as in
> C:\Python again; as I said, I'm probably mis-understanding !
>
> python("import
> sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");
>
>
> On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez wrote:
>
>> You can add them to your userSetup.mel or userSetup.py files in your
>> scripts directory.
>> just add it like this:
>>
>> userSetup.mel:
>>
>> python("import
>> sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
>> ​
>>
>> As soon as Maya loads the path(s) will be available. this is the easiest
>> way. And you can have it load any modules there you want to load
>> automatically.
>> if you have a package you would like to load, then it's best to put it in
>> the site-packages directory in your maya install
>>
>>
>
>> On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher > > wrote:
>>
>>> Thanks for the info.  ;-)
>>>
>>> I just want to know what is the path used so I can append it to my
>>> system environment variable MAYA_APP_DIR so Python modules are loaded by
>>> default for Maya.
>>>
>>>
>>>
>>> Geordie Martinez
>>> Tuesday, March 29, 2016 12:17 AM
>>> If I were you I'd just install Anaconda and let Anaconda deal with
>>> appending variables based on versions.
>>>
>>> https://www.continuum.io/downloads
>>>
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>> Christopher.
>>> Monday, March 28, 2016 10:00 PM
>>> I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path
>>> used for the modules to append to a system environment
>>> variable; C:\Python27\modules\modules ?
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%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 python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/56FA063B.4090507%40gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/cb713ad4-8a41-4daf-bfa4-5c9c5c144e49%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 python_inside_maya+unsubscr...@googlegroups.com

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-29 Thread Christopher.
I have two question, one of these paths are incorrect; I'm leaning towards 
the second path as I didn't quite understand the pseudo path 
X:\some\path\python, whether I should just enter the same path, as in 
C:\Python again; as I said, I'm probably mis-understanding !

python("import 
sys;sys.path.append('C:\Python27');sys.path.append('C:\Python27');");

On Tuesday, March 29, 2016 at 1:02:06 AM UTC-4, Geordie Martinez wrote:
>
> You can add them to your userSetup.mel or userSetup.py files in your 
> scripts directory.
> just add it like this:
>
> userSetup.mel:
>
> python("import 
> sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
> ​
>
> As soon as Maya loads the path(s) will be available. this is the easiest 
> way. And you can have it load any modules there you want to load 
> automatically. 
> if you have a package you would like to load, then it's best to put it in 
> the site-packages directory in your maya install
>  
>
> On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher  > wrote:
>
>> Thanks for the info.  ;-)
>>
>> I just want to know what is the path used so I can append it to my system 
>> environment variable MAYA_APP_DIR so Python modules are loaded by default 
>> for Maya.
>>
>>
>>
>> Geordie Martinez 
>> Tuesday, March 29, 2016 12:17 AM
>> If I were you I'd just install Anaconda and let Anaconda deal with 
>> appending variables based on versions.
>>
>> https://www.continuum.io/downloads
>>
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> python_inside_maya+unsubscr...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>> Christopher. 
>> Monday, March 28, 2016 10:00 PM
>> I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path used 
>> for the modules to append to a system environment 
>> variable; C:\Python27\modules\modules ? 
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> python_inside_maya+unsubscr...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%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 python_inside_maya+unsubscr...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/56FA063B.4090507%40gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/cb713ad4-8a41-4daf-bfa4-5c9c5c144e49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-28 Thread Geordie Martinez
You can add them to your userSetup.mel or userSetup.py files in your
scripts directory.
just add it like this:

userSetup.mel:

python("import
sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
​

As soon as Maya loads the path(s) will be available. this is the easiest
way. And you can have it load any modules there you want to load
automatically.
if you have a package you would like to load, then it's best to put it in
the site-packages directory in your maya install


On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
crestchristop...@gmail.com> wrote:

> Thanks for the info.  ;-)
>
> I just want to know what is the path used so I can append it to my system
> environment variable MAYA_APP_DIR so Python modules are loaded by default
> for Maya.
>
>
>
> Geordie Martinez 
> Tuesday, March 29, 2016 12:17 AM
> If I were you I'd just install Anaconda and let Anaconda deal with
> appending variables based on versions.
>
> https://www.continuum.io/downloads
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
> Christopher. 
> Monday, March 28, 2016 10:00 PM
> I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path used
> for the modules to append to a system environment
> variable; C:\Python27\modules\modules ?
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/56FA063B.4090507%40gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4ihFwiLnoJUJ%2BUK3Ga3u-WEJrgeaKRA%3DwySK9cw5RVdXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-28 Thread Crest Christopher

Thanks for the info.  ;-)

I just want to know what is the path used so I can append it to my 
system environment variable MAYA_APP_DIR so Python modules are loaded by 
default for Maya.





Geordie Martinez 
Tuesday, March 29, 2016 12:17 AM
If I were you I'd just install Anaconda and let Anaconda deal with 
appending variables based on versions.


https://www.continuum.io/downloads


--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
python_inside_maya+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.
Christopher. 
Monday, March 28, 2016 10:00 PM
I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path 
used for the modules to append to a system environment 
variable; C:\Python27\modules\modules ?

--
You received this message because you are subscribed to a topic in the 
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
python_inside_maya+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/56FA063B.4090507%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-28 Thread Geordie Martinez
If I were you I'd just install Anaconda and let Anaconda deal with
appending variables based on versions.

https://www.continuum.io/downloads

On Mon, Mar 28, 2016 at 7:00 PM, Christopher. 
wrote:

> I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path used
> for the modules to append to a system environment
> variable; C:\Python27\modules\modules ?
>
> --
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] Python Modules in System Environment Variable ?

2016-03-28 Thread Christopher.
I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path used 
for the modules to append to a system environment 
variable; C:\Python27\modules\modules ? 

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] python modules

2016-02-11 Thread Robert White
I've got a build of Perforce that should work with both 2015 and 2016, its 
also compiled with a compatible version of openSSL if your server happens 
to require that.
https://onedrive.live.com/?cid=de880f5659db1a15&id=DE880F5659DB1A15%2118925&ithint=folder,zip&authkey=!AEinLoalQenrHdE




On Thursday, February 11, 2016 at 4:25:23 PM UTC-6, Antonio Govela 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 "", line 9, in 
>
> # File "C:\Python27\Lib\site-packages\P4.py", line 410, in 
>
> # 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 
>
> # 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  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  wrote:
>>>
 ok.. will get our engineers to recompile the perforce tools

 On Wed, Jan 6, 2016 at 3:41 PM, Justin Israel  
 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  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  
>> 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  
>>> 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  
 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  > 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  
>> 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
>>> to...@toddwidup.com
>>> todd@gmail.com
>>> 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 
>>> python_

Re: [Maya-Python] python modules

2016-02-11 Thread Todd Widup
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  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 "", line 9, in 
>
> # File "C:\Python27\Lib\site-packages\P4.py", line 410, in 
>
> # 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 
>
> # 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  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  wrote:
>>>
 ok.. will get our engineers to recompile the perforce tools

 On Wed, Jan 6, 2016 at 3:41 PM, Justin Israel 
 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  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 
>> 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 
>>> 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 
 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  > 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 
>> 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
>>> to...@toddwidup.com
>>> todd@gmail.com
>>> 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
>>> python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CABBPk37YMT6%3Dq2L68zrhuWhnsPjTj3xC2C_zO45%2BunFF_d0Eyg%4

Re: [Maya-Python] python modules

2016-02-11 Thread Antonio Govela
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 "", line 9, in 

# File "C:\Python27\Lib\site-packages\P4.py", line 410, in 

# 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 

# 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  > 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 > > wrote:
>>
>>> ok.. will get our engineers to recompile the perforce tools
>>>
>>> On Wed, Jan 6, 2016 at 3:41 PM, Justin Israel >> > 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 >>> > 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  > 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 > > 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 >> > 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 >>> > 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  > 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
>> to...@toddwidup.com 
>> todd@gmail.com 
>> 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 python_inside_maya+unsubscr...@googlegroups.com 
>> .
>> 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
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
>>

Re: [Maya-Python] python modules

2016-01-06 Thread Justin Israel
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  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  wrote:
>
>> ok.. will get our engineers to recompile the perforce tools
>>
>> On Wed, Jan 6, 2016 at 3:41 PM, Justin Israel 
>> 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  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 
 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 
> 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 
>> 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 <
>>> justinisr...@gmail.com> 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 
 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
> t...@toddwidup.com
> todd.wi...@gmail.com
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> 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
> 
> .
> 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 python_inside_maya+unsubscr...@googlegroups.com.
 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
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>> Todd Widup
>>> Creature TD / Technical Artist
>>> t...@toddwidup.com
>>> todd.wi...@gmail.com
>>> www.toddwidup.com
>>>
>>
>>
>>
>> --
>> Todd Widup
>> Creature TD / Technical Artist
>> t...@toddwidup.com
>> todd.wi...@gmail.com
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discu

Re: [Maya-Python] python modules

2016-01-06 Thread Todd Widup
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  wrote:

> ok.. will get our engineers to recompile the perforce tools
>
> On Wed, Jan 6, 2016 at 3:41 PM, Justin Israel 
> 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  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 
>>> 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 
 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 
> 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 > > 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 
>>> 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
 t...@toddwidup.com
 todd.wi...@gmail.com
 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 python_inside_maya+unsubscr...@googlegroups.com.
 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
 
 .
 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 python_inside_maya+unsubscr...@googlegroups.com.
>>> 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
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Todd Widup
>> Creature TD / Technical Artist
>> t...@toddwidup.com
>> todd.wi...@gmail.com
>> www.toddwidup.com
>>
>
>
>
> --
> Todd Widup
> Creature TD / Technical Artist
> t...@toddwidup.com
> todd.wi...@gmail.com
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CABBPk36P9aX_wMQictarYtzw9i8dePgbYWdyUbS8GG4yiTYpBQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.googl

Re: [Maya-Python] python modules

2016-01-06 Thread Todd Widup
ok.. will get our engineers to recompile the perforce tools

On Wed, Jan 6, 2016 at 3:41 PM, Justin Israel 
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  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 
>> 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  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 
 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 
> 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 
>> 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
>>> t...@toddwidup.com
>>> todd.wi...@gmail.com
>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>> 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
>>> 
>>> .
>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> 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
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Todd Widup
> Creature TD / Technical Artist
> t...@toddwidup.com
> todd.wi...@gmail.com
> www.toddwidup.com
>



 --
 Todd Widup
 Creature TD / Technical Artist
 t...@toddwidup.com
 todd.wi...@gmail.com
 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 python_inside_maya+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/python_inside_maya/CABBPk36P9aX_wMQictarYtzw9i8dePgbYWdyUbS8GG4yiTYpBQ%40mail.gmail.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 python_inside_maya+un

Re: [Maya-Python] python modules

2016-01-06 Thread Justin Israel
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  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 
> 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  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  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 
 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 
> 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
>> t...@toddwidup.com
>> todd.wi...@gmail.com
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> 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
>> 
>> .
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
> 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
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



 --
 Todd Widup
 Creature TD / Technical Artist
 t...@toddwidup.com
 todd.wi...@gmail.com
 www.toddwidup.com

>>>
>>>
>>>
>>> --
>>> Todd Widup
>>> Creature TD / Technical Artist
>>> t...@toddwidup.com
>>> todd.wi...@gmail.com
>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CABBPk36P9aX_wMQictarYtzw9i8dePgbYWdyUbS8GG4yiTYpBQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA30fOMw88WP7r3BbRozdVmfG-CECeZB1d%2B6ZBJddPwYyQ%40mail.gmail.com
>> 

Re: [Maya-Python] python modules

2016-01-06 Thread Todd Widup
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 
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  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  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 
>>> 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 
 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
> t...@toddwidup.com
> todd.wi...@gmail.com
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> 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
> 
> .
> 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 python_inside_maya+unsubscr...@googlegroups.com.
 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
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>> Todd Widup
>>> Creature TD / Technical Artist
>>> t...@toddwidup.com
>>> todd.wi...@gmail.com
>>> www.toddwidup.com
>>>
>>
>>
>>
>> --
>> Todd Widup
>> Creature TD / Technical Artist
>> t...@toddwidup.com
>> todd.wi...@gmail.com
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CABBPk36P9aX_wMQictarYtzw9i8dePgbYWdyUbS8GG4yiTYpBQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA30fOMw88WP7r3BbRozdVmfG-CECeZB1d%2B6ZBJddPwYyQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Todd Widup
Creature TD / Technical Artist
t...@toddwidup.com
todd.wi...@gmail.com
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 receivi

Re: [Maya-Python] python modules

2016-01-06 Thread Justin Israel
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  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  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 
>> 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  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
 t...@toddwidup.com
 todd.wi...@gmail.com
 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 python_inside_maya+unsubscr...@googlegroups.com.
 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
 
 .
 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 python_inside_maya+unsubscr...@googlegroups.com.
>>> 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
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Todd Widup
>> Creature TD / Technical Artist
>> t...@toddwidup.com
>> todd.wi...@gmail.com
>> www.toddwidup.com
>>
>
>
>
> --
> Todd Widup
> Creature TD / Technical Artist
> t...@toddwidup.com
> todd.wi...@gmail.com
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CABBPk36P9aX_wMQictarYtzw9i8dePgbYWdyUbS8GG4yiTYpBQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA30fOMw88WP7r3BbRozdVmfG-CECeZB1d%2B6ZBJddPwYyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] python modules

2016-01-06 Thread Todd Widup
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  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 
> 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  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
>>> t...@toddwidup.com
>>> todd.wi...@gmail.com
>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>> 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
>>> 
>>> .
>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> 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
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Todd Widup
> Creature TD / Technical Artist
> t...@toddwidup.com
> todd.wi...@gmail.com
> www.toddwidup.com
>



-- 
Todd Widup
Creature TD / Technical Artist
t...@toddwidup.com
todd.wi...@gmail.com
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABBPk36P9aX_wMQictarYtzw9i8dePgbYWdyUbS8GG4yiTYpBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] python modules

2016-01-06 Thread Todd Widup
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 
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  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
>> t...@toddwidup.com
>> todd.wi...@gmail.com
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> 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
>> 
>> .
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
> 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
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Todd Widup
Creature TD / Technical Artist
t...@toddwidup.com
todd.wi...@gmail.com
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABBPk34qDYhwS1oRMFPVRXTbP9QZR0b%3D7hSHWVqaTGqBaBBE8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] python modules

2016-01-06 Thread Justin Israel
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  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
> t...@toddwidup.com
> todd.wi...@gmail.com
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> 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
> 
> .
> 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 python_inside_maya+unsubscr...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] python modules

2016-01-06 Thread Todd Widup
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
t...@toddwidup.com
todd.wi...@gmail.com
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 python_inside_maya+unsubscr...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] python modules

2011-04-12 Thread C. B. Esquire
Just a generic question, this goes for modeling, texturing, lighting,
animation, rigging, dynamics, sims, all of it ~

If you want to go into detail, great, if not just a quick answer is fine.
What are some of the built-in, and 3rd party python modules you are using
and for Maya tasks?

PyQt for gui development as an example.

-- 
http://groups.google.com/group/python_inside_maya


[Maya-Python] python modules setup

2009-04-22 Thread sberger

Hi, I have this folder structure where I put all my python scripts.

myPythonScript
 modeling
  pyScript1.py
  pyScript2.py
 animation
  pyScript1.py
 shading
  pyScript1.py
  pyScript2.py
  pyScript3.py
 etc..

In these script when I need a function from another script I import it
like so:
from myPythonScripts import pyScript1
and I acces it like this:
pyScript1.functionX()

I seems to have hit a wall now because most of the script rely on
other script. In each script I import another one, but I think I have
a case where scriptA is importing scriptB and scritB is importing
scriptA, thus causing a import error.

I would like to know how I can setup my modules so that I can simply
import everything once, and that each script can easily access script
from a different folder.

I hope my question makes sense.

Thanks

--~--~-~--~~~---~--~~
http://groups.google.com/group/python_inside_maya
-~--~~~~--~~--~--~---