[Maya-Python] Re: python 2.7 v.1700 64 bit VC 2012 build

2017-10-02 Thread Robert White
You can always just use the mayapy.exe as your python build.

To get the libs/headers you'll need to download the proper devkit for your 
maya version.

On Monday, October 2, 2017 at 7:37:35 AM UTC-5, riga_rig wrote:
>
> Hello!
> Could you please point me on python 2.7 v.1700 64 bit VC 2012 build binary 
> anywhere in web?
> I found this  link How to build Python 2.7.5 using Visual Studio 2012 
> Express on Windows 8 64-bit , but it 
> needs VS 2012.
> I wonder if anybody has a proper binary python 2.7 for windows?
> Regards, 
> Oleg Solovjov
>

-- 
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/30ff8a69-13f4-4c12-b674-b7a86180c3a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] python 2.7 v.1700 64 bit VC 2012 build

2017-10-02 Thread 'riga_rig' via Python Programming for Autodesk Maya
Hello!
Could you please point me on python 2.7 v.1700 64 bit VC 2012 build binary 
anywhere in web?
I found this  link How to build Python 2.7.5 using Visual Studio 2012 
Express on Windows 8 64-bit , but it 
needs VS 2012.
I wonder if anybody has a proper binary python 2.7 for windows?
Regards, 
Oleg Solovjov

-- 
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/e7f84c8d-7c50-432f-aec2-7e15b2de1eee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] Re: P4python doesn't work under maya 2017

2017-10-02 Thread 'riga_rig' via Python Programming for Autodesk Maya
Thank you Robert, your files are working good.

On Thursday, September 28, 2017 at 2:46:22 PM UTC+2, Robert White wrote:
>
> Last job I was using the version that I've shared here 
> ,
>  
> I had tested it up through 2017, but it might work in 2018 as well (no 
> promises on 2018).
> It was compiled with OpenSSL-1.0.2c, so that should potentially help with 
> your SSL version error.
>
> On Thursday, September 28, 2017 at 7:20:55 AM UTC-5, riga_rig wrote:
>>
>> Hi,
>> I tried to access our perforce server from Maya 2017.
>> from P4 import P4,P4Exception# Import the module
>> p4 = P4()# Create the P4 instance
>> #p4.host = "ssl:perforce:1666"
>> p4.port = "ssl:perforce:1666"
>> p4.user = "user_name"
>> p4.password = "secret"
>> p4.client = "my_workspace"# Set some environment variables
>> p4.connect()
>>
>> It works good from  external python console, but in Script Editor I got 
>> following error:
>> # Error: line 1: [P4.connect()] Connect to server failed; check $P4PORT.
>> # SSL library must be at least version 1.0.1.
>> # Traceback (most recent call last):
>> #   File "", line 8, in 
>> #   File "C:\Program 
>> Files\Autodesk\Maya2017\Python\lib\site-packages\P4.py", line 798, in 
>> connect
>> # P4API.P4Adapter.connect( self )
>> # P4Exception: [P4.connect()] Connect to server failed; check $P4PORT.
>> # SSL library must be at least version 1.0.1. # 
>>
>> I'm under Windows 10. P4Python was installed 
>> from p4python-2017.1.1526044-cp27-cp27m-win_amd64.whl.
>>
>> Python version in Maya 2017:
>> import sys
>> sys.version
>> # Result: 2.7.11 (default, Dec 21 2015, 22:48:54) [MSC v.1700 64 bit 
>> (AMD64)]
>>
>> Do you have any ideas how to fix it?
>> Is anybody uses Perforce P4Python lib from Maya?
>> Regards,
>> Oleg Solovjov
>>
>>

-- 
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/358c7c1e-b827-49ed-a1cb-a7b7fea68e24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Re: P4python doesn't work under maya 2017

2017-10-02 Thread Marcus Ottosson
You've already got one, mayapy is a fully qualified Python distribution
that you can use to run and compile things with. Other than that, you'll
probably need to build one for yourself.

On 2 October 2017 at 10:57, 'riga_rig' via Python Programming for Autodesk
Maya  wrote:

> It's looks like Maya has [MSC v.1700 64 bit (AMD64)]  Python and I
> installed another one Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015,
> 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32.
> Where i can find Python 2.7 installer witch is compiled with  [MSC v.1700
> 64 bit (AMD64)] ?
>
>
> On Thursday, September 28, 2017 at 2:20:55 PM UTC+2, riga_rig wrote:
>>
>> Hi,
>> I tried to access our perforce server from Maya 2017.
>> from P4 import P4,P4Exception# Import the module
>> p4 = P4()# Create the P4 instance
>> #p4.host = "ssl:perforce:1666"
>> p4.port = "ssl:perforce:1666"
>> p4.user = "user_name"
>> p4.password = "secret"
>> p4.client = "my_workspace"# Set some environment variables
>> p4.connect()
>>
>> It works good from  external python console, but in Script Editor I got
>> following error:
>> # Error: line 1: [P4.connect()] Connect to server failed; check $P4PORT.
>> # SSL library must be at least version 1.0.1.
>> # Traceback (most recent call last):
>> #   File "", line 8, in 
>> #   File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\P4.py",
>> line 798, in connect
>> # P4API.P4Adapter.connect( self )
>> # P4Exception: [P4.connect()] Connect to server failed; check $P4PORT.
>> # SSL library must be at least version 1.0.1. #
>>
>> I'm under Windows 10. P4Python was installed
>> from p4python-2017.1.1526044-cp27-cp27m-win_amd64.whl.
>>
>> Python version in Maya 2017:
>> import sys
>> sys.version
>> # Result: 2.7.11 (default, Dec 21 2015, 22:48:54) [MSC v.1700 64 bit
>> (AMD64)]
>>
>> Do you have any ideas how to fix it?
>> Is anybody uses Perforce P4Python lib from Maya?
>> Regards,
>> Oleg Solovjov
>>
>> --
> 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/9e37ffb5-ecac-4bf3-9ca1-
> 58cfbfb4da88%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/CAFRtmOCo7DFRtj%3Dyom7x16YLHMtQL06BLpnyBKCOLMyce7rOKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] Re: P4python doesn't work under maya 2017

2017-10-02 Thread 'riga_rig' via Python Programming for Autodesk Maya
It's looks like Maya has [MSC v.1700 64 bit (AMD64)]  Python and I 
installed another one Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 
20:40:30) [MSC v.1500 64 bit (AMD64)] on win32.
Where i can find Python 2.7 installer witch is compiled with  [MSC v.1700 
64 bit (AMD64)] ?

On Thursday, September 28, 2017 at 2:20:55 PM UTC+2, riga_rig wrote:
>
> Hi,
> I tried to access our perforce server from Maya 2017.
> from P4 import P4,P4Exception# Import the module
> p4 = P4()# Create the P4 instance
> #p4.host = "ssl:perforce:1666"
> p4.port = "ssl:perforce:1666"
> p4.user = "user_name"
> p4.password = "secret"
> p4.client = "my_workspace"# Set some environment variables
> p4.connect()
>
> It works good from  external python console, but in Script Editor I got 
> following error:
> # Error: line 1: [P4.connect()] Connect to server failed; check $P4PORT.
> # SSL library must be at least version 1.0.1.
> # Traceback (most recent call last):
> #   File "", line 8, in 
> #   File "C:\Program 
> Files\Autodesk\Maya2017\Python\lib\site-packages\P4.py", line 798, in 
> connect
> # P4API.P4Adapter.connect( self )
> # P4Exception: [P4.connect()] Connect to server failed; check $P4PORT.
> # SSL library must be at least version 1.0.1. # 
>
> I'm under Windows 10. P4Python was installed 
> from p4python-2017.1.1526044-cp27-cp27m-win_amd64.whl.
>
> Python version in Maya 2017:
> import sys
> sys.version
> # Result: 2.7.11 (default, Dec 21 2015, 22:48:54) [MSC v.1700 64 bit 
> (AMD64)]
>
> Do you have any ideas how to fix it?
> Is anybody uses Perforce P4Python lib from Maya?
> Regards,
> Oleg Solovjov
>
>

-- 
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/9e37ffb5-ecac-4bf3-9ca1-58cfbfb4da88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] maya 2017 and pyd files

2017-10-02 Thread 'riga_rig' via Python Programming for Autodesk Maya
Hello,
what is a right place for *.pyd files for Maya 2017?
I installed p4python using mayapy as:
mayapy -m pip install p4python

mayapy puts  P4API.pyd file into C:\Program 
Files\Autodesk\Maya2017\Python\Lib\site-packages directory.
But maya cant' find it. Then I copied P4API.pyd into C:\Program 
Files\Autodesk\Maya2017\Python\DLLs, where I found another *.pyd files.
It doesn't help as well.
In ScriptEditor i've got:
File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\P4.py", 
line 410, in 
# import P4API
# ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden. #


DLL not found. Should I set some environment variables for Maya? Or copy 
*.pyd file to another place?
Regards,
Oleg Solovjov

-- 
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/e03cd4b3-9881-4353-8282-70ca92fbdbb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.