Re: [Maya-Python] MayaPy Cython Import Error

2020-02-04 Thread Paul Winex
Yes, is alternative)))

понедельник, 3 февраля 2020 г., 22:26:05 UTC+3 пользователь Robert White 
написал:
>
> You don't need to copy the files to a new include folder, instead you want 
> to just make sure the folder is on the `INCLUDE` environment variable.
> So much like you did for LIB, you'd do `set 
> INCLUDE=%INCLUD%;path_to_maya\include\python2.7`
>
>
> On Monday, February 3, 2020 at 3:47:17 AM UTC-6, Paul Winex wrote:
>>
>> Oh, i forgot one thing.
>> You need to copy source files form *MayaXXX\include\python2.7* to 
>> *Maya\Python\include*
>>
>> суббота, 1 февраля 2020 г., 23:57:24 UTC+3 пользователь Paul Winex 
>> написал:
>>>
>>> I have solution!
>>>
>>> 1. You need to build cython locally. Install correct VS Libraries. For 
>>> example Maya2018 require VS v14. You need to install Individual component 
>>> and select some C++ build tools v14 and Windows SDK.
>>> 2. Install cpython for maya without binary, pip must build it on you 
>>> local machine
>>> Command: 
>>> set LIB=\Maya2018\lib
>>> \Maya2018\bin\mayapy.exe -m pip install cython --no-binary :
>>> all:
>>> LIB variable is path to file python27.lib
>>>
>>> Now cython is installed, you can try to compile with command from this 
>>> example https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5
>>> mayapy.exe setup.py build_ext --inplace
>>>
>>>
>>>

-- 
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/420c5de9-2a85-4a4a-9f19-9d55bb9564db%40googlegroups.com.


Re: [Maya-Python] MayaPy Cython Import Error

2020-02-03 Thread Robert White
You don't need to copy the files to a new include folder, instead you want 
to just make sure the folder is on the `INCLUDE` environment variable.
So much like you did for LIB, you'd do `set 
INCLUDE=%INCLUD%;path_to_maya\include\python2.7`


On Monday, February 3, 2020 at 3:47:17 AM UTC-6, Paul Winex wrote:
>
> Oh, i forgot one thing.
> You need to copy source files form *MayaXXX\include\python2.7* to 
> *Maya\Python\include*
>
> суббота, 1 февраля 2020 г., 23:57:24 UTC+3 пользователь Paul Winex написал:
>>
>> I have solution!
>>
>> 1. You need to build cython locally. Install correct VS Libraries. For 
>> example Maya2018 require VS v14. You need to install Individual component 
>> and select some C++ build tools v14 and Windows SDK.
>> 2. Install cpython for maya without binary, pip must build it on you 
>> local machine
>> Command: 
>> set LIB=\Maya2018\lib
>> \Maya2018\bin\mayapy.exe -m pip install cython --no-binary :all
>> :
>> LIB variable is path to file python27.lib
>>
>> Now cython is installed, you can try to compile with command from this 
>> example https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5
>> mayapy.exe setup.py build_ext --inplace
>>
>>
>>

-- 
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/2739541e-0e13-4111-b756-92ad7cf1be42%40googlegroups.com.


Re: [Maya-Python] MayaPy Cython Import Error

2020-02-03 Thread Paul Winex
Oh, i forgot one thing.
You need to copy source files form *MayaXXX\include\python2.7* to 
*Maya\Python\include*

суббота, 1 февраля 2020 г., 23:57:24 UTC+3 пользователь Paul Winex написал:
>
> I have solution!
>
> 1. You need to build cython locally. Install correct VS Libraries. For 
> example Maya2018 require VS v14. You need to install Individual component 
> and select some C++ build tools v14 and Windows SDK.
> 2. Install cpython for maya without binary, pip must build it on you local 
> machine
> Command: 
> set LIB=\Maya2018\lib
> \Maya2018\bin\mayapy.exe -m pip install cython --no-binary :all:
> LIB variable is path to file python27.lib
>
> Now cython is installed, you can try to compile with command from this 
> example https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5
> mayapy.exe setup.py build_ext --inplace
>
>
>

-- 
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/25a7bc0c-d351-461b-96ef-884d85d5ba99%40googlegroups.com.


Re: [Maya-Python] MayaPy Cython Import Error

2020-02-01 Thread Paul Winex
I have solution!

1. You need to build cython locally. Install correct VS Libraries. For 
example Maya2018 require VS v14. You need to install Individual component 
and select some C++ build tools v14 and Windows SDK.
2. Install cpython for maya without binary, pip must build it on you local 
machine
Command: 
set LIB=\Maya2018\lib
\Maya2018\bin\mayapy.exe -m pip install cython --no-binary :all:
LIB variable is path to file python27.lib

Now cython is installed, you can try to compile with command from this 
example https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5
mayapy.exe setup.py build_ext --inplace


-- 
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/53dcbc83-bcd2-4f49-833b-5044d5081cf0%40googlegroups.com.


Re: [Maya-Python] MayaPy Cython Import Error

2020-02-01 Thread Paul Winex
Hi!
Has anyone been able to compile with cython successfully?
I use Win10, Maya 2019-2020, same problem(

пятница, 18 мая 2018 г., 4:37:13 UTC+3 пользователь Lokesh Kumar написал:
>
> Hi Ruchit,
>
> Even after following all the steps which you have mentioned above, i am 
> still getting the same error.. Can you please help me figure out this thing.
>
>
>
> 
>
> I am using Maya2015 64bit and the mayapy version is " *Python 2.7.3 
> (default, May  8 2013, 09:43:48) [MSC v.1700 64 bit (AMD64)]  "*
>
> *cython was installed successfully *
>
>
> 
>
>
>
>
>
> On Friday, December 1, 2017 at 11:32:40 PM UTC+5:30, Ruchit Bhatt wrote:
>>
>> Using below code i am able to convert *.py to *.pyd. And script editor 
>> are also importing properly. Now tell me how to extract *.egg ? so that i 
>> can use cython without
>> sys.path.append...Will do more test with PyQt/Pyside. I hope it will work 
>> fine. 
>> Thank you
>>
>> import sys
>> sys.path.append("C:\Program 
>> Files\Autodesk\Maya2017\Python\Lib\site-packages\Cython-0.27.3-py2.7-win-amd64.egg"
>> )
>>
>> import cython
>> from distutils.core import setup
>> from distutils.extension import Extension
>> from Cython.Distutils import build_ext
>>
>> setup(
>> cmdclass = {'build_ext': build_ext},
>> ext_modules = [
>> Extension("randomNumber", ["randomNumber.pyx"]),
>> Extension("additionNumber", ["additionNumber.pyx"]),
>> ]
>> )
>>
>>
>>

-- 
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/578f1ed9-4039-45fa-812c-112153388199%40googlegroups.com.


Re: [Maya-Python] MayaPy Cython Import Error

2018-05-17 Thread Lokesh Kumar
Hi Ruchit,

Even after following all the steps which you have mentioned above, i am 
still getting the same error.. Can you please help me figure out this thing.




I am using Maya2015 64bit and the mayapy version is " *Python 2.7.3 
(default, May  8 2013, 09:43:48) [MSC v.1700 64 bit (AMD64)]  "*

*cython was installed successfully *







On Friday, December 1, 2017 at 11:32:40 PM UTC+5:30, Ruchit Bhatt wrote:
>
> Using below code i am able to convert *.py to *.pyd. And script editor are 
> also importing properly. Now tell me how to extract *.egg ? so that i can 
> use cython without
> sys.path.append...Will do more test with PyQt/Pyside. I hope it will work 
> fine. 
> Thank you
>
> import sys
> sys.path.append("C:\Program 
> Files\Autodesk\Maya2017\Python\Lib\site-packages\Cython-0.27.3-py2.7-win-amd64.egg"
> )
>
> import cython
> from distutils.core import setup
> from distutils.extension import Extension
> from Cython.Distutils import build_ext
>
> setup(
> cmdclass = {'build_ext': build_ext},
> ext_modules = [
> Extension("randomNumber", ["randomNumber.pyx"]),
> Extension("additionNumber", ["additionNumber.pyx"]),
> ]
> )
>
>
>

-- 
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/4704a847-b357-40ad-8010-a61edb65c4b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] MayaPy Cython Import Error

2017-12-01 Thread Justin Israel
That is a pretty hacky hack, but if it gets your module compiled, then why
not! You probably could have just set environment variables CFLAGS
("-I/path/to/python/includes") and LDFLAGS ("-L/path/to/libraries").

Python eggs are just zip files. When you installed them in one particular
location, you should see ".pth" files in that same location. The ".pth"
files contain the reference to the eggs, which tells python to also append
them to your python path. So your option is to also copy or update the .pth
file in the new target location, or extract the egg using zip.

On Sat, Dec 2, 2017 at 7:02 AM Ruchit Bhatt 
wrote:

> Using below code i am able to convert *.py to *.pyd. And script editor are
> also importing properly. Now tell me how to extract *.egg ? so that i can
> use cython without
> sys.path.append...Will do more test with PyQt/Pyside. I hope it will work
> fine.
> Thank you
>
> import sys
> sys.path.append("C:\Program
> Files\Autodesk\Maya2017\Python\Lib\site-packages\Cython-0.27.3-py2.7-win-amd64.egg"
> )
>
> import cython
> from distutils.core import setup
> from distutils.extension import Extension
> from Cython.Distutils import build_ext
>
> setup(
> cmdclass = {'build_ext': build_ext},
> ext_modules = [
> Extension("randomNumber", ["randomNumber.pyx"]),
> Extension("additionNumber", ["additionNumber.pyx"]),
> ]
> )
>
>
> --
> 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/e01ff811-0261-4925-8d6c-01594892067a%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/CAPGFgA32Lhg3q828yFSZxHyek%3DW_f642B4V-3P0akF2UL7AkaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] MayaPy Cython Import Error

2017-12-01 Thread Ruchit Bhatt
Using below code i am able to convert *.py to *.pyd. And script editor are 
also importing properly. Now tell me how to extract *.egg ? so that i can 
use cython without
sys.path.append...Will do more test with PyQt/Pyside. I hope it will work 
fine. 
Thank you

import sys
sys.path.append("C:\Program 
Files\Autodesk\Maya2017\Python\Lib\site-packages\Cython-0.27.3-py2.7-win-amd64.egg"
)

import cython
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [
Extension("randomNumber", ["randomNumber.pyx"]),
Extension("additionNumber", ["additionNumber.pyx"]),
]
)


-- 
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/e01ff811-0261-4925-8d6c-01594892067a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] MayaPy Cython Import Error

2017-12-01 Thread Ruchit Bhatt
copying build\lib.win-amd64-2.7\cython.py -> build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\pyximport
copying build\lib.win-amd64-2.7\pyximport\pyxbuild.py -> 
build\bdist.win-amd64\egg\pyximport
copying build\lib.win-amd64-2.7\pyximport\pyximport.py -> 
build\bdist.win-amd64\egg\pyximport
copying build\lib.win-amd64-2.7\pyximport\__init__.py -> 
build\bdist.win-amd64\egg\pyximport
byte-compiling build\bdist.win-amd64\egg\Cython\Build\BuildExecutable.py to 
BuildExecutable.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Cythonize.py to 
Cythonize.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Dependencies.py to 
Dependencies.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Distutils.py to 
Distutils.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Inline.py to 
Inline.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\IpythonMagic.py to 
IpythonMagic.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Tests\TestInline.py 
to TestInline.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Build\Tests\TestIpythonMagic.py to 
TestIpythonMagic.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Build\Tests\TestStripLiterals.py to 
TestStripLiterals.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\Tests\__init__.py to 
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Build\__init__.py to 
__init__.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\CodeWriter.py to 
CodeWriter.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\AnalysedTreeTransforms.py to 
AnalysedTreeTransforms.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Annotate.py to 
Annotate.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\AutoDocTransforms.py to 
AutoDocTransforms.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Buffer.py to 
Buffer.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Builtin.py to 
Builtin.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\CmdLine.py to 
CmdLine.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Code.py to Code.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\CodeGeneration.py 
to CodeGeneration.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\CythonScope.py to 
CythonScope.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\DebugFlags.py to 
DebugFlags.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Errors.py to 
Errors.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\ExprNodes.py to 
ExprNodes.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\FlowControl.py to 
FlowControl.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\FusedNode.py to 
FusedNode.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Future.py to 
Future.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Interpreter.py to 
Interpreter.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Lexicon.py to 
Lexicon.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Main.py to Main.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\MemoryView.py to 
MemoryView.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\ModuleNode.py to 
ModuleNode.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Naming.py to 
Naming.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Nodes.py to 
Nodes.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Optimize.py to 
Optimize.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Options.py to 
Options.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\ParseTreeTransforms.py to 
ParseTreeTransforms.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Parsing.py to 
Parsing.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Pipeline.py to 
Pipeline.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\PyrexTypes.py to 
PyrexTypes.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Pythran.py to 
Pythran.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Scanning.py to 
Scanning.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\StringEncoding.py 
to StringEncoding.pyc
byte-compiling build\bdist.win-amd64\egg\Cython\Compiler\Symtab.py to 
Symtab.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestBuffer.py to 
TestBuffer.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestCmdLine.py to 
TestCmdLine.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestFlowControl.py to 
TestFlowControl.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestGrammar.py to 
TestGrammar.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestMemView.py to 
TestMemView.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\Tests\TestParseTreeTransforms.py 
to TestParseTreeTransforms.pyc
byte-compiling 
build\bdist.win-amd64\egg\Cython\Compiler\T

Re: [Maya-Python] MayaPy Cython Import Error

2017-12-01 Thread Ruchit Bhatt


*Quick Hack >>>For Include *
   C:\Program 
Files\Autodesk\Maya2017\bin\python27.zip\distutils\sysconfig.py
   under get_python_inc function 
elif os.name == "nt":
return "C:/Program Files/Autodesk/Maya2017/include/python2.7/"

*>>>For Lib*
   made folder C:\Program Files\Autodesk\Maya2017\Python\libs and 
copied "*python27.lib*" in that

and then


D:\Tech\Cython-0.27.3>"C:\Program Files\Autodesk\Maya2017\bin\mayapy" setup.py 
install


Unable to find pgen, not compiling formal grammar.
running install
install_dir C:\Program Files\Autodesk\Maya2017\Python\Lib\site-packages\
running bdist_egg
running egg_info
writing Cython.egg-info\PKG-INFO
writing top-level names to Cython.egg-info\top_level.txt
writing dependency_links to Cython.egg-info\dependency_links.txt
writing entry points to Cython.egg-info\entry_points.txt
reading manifest file 'Cython.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '2to3-fixers.txt'
warning: no files found matching 'Doc\*'
warning: no files found matching '*.pyx' under directory 
'Cython\Debugger\Tests'
warning: no files found matching '*.pxd' under directory 
'Cython\Debugger\Tests'
warning: no files found matching '*.pxd' under directory 'Cython\Utility'
writing manifest file 'Cython.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\Cython
creating build\bdist.win-amd64\egg\Cython\Build
copying build\lib.win-amd64-2.7\Cython\Build\BuildExecutable.py -> 
build\bdist.win-amd64\egg\Cython\Build
copying build\lib.win-amd64-2.7\Cython\Build\Cythonize.py -> 
build\bdist.win-amd64\egg\Cython\Build
copying build\lib.win-amd64-2.7\Cython\Build\Dependencies.py -> 
build\bdist.win-amd64\egg\Cython\Build
copying build\lib.win-amd64-2.7\Cython\Build\Distutils.py -> 
build\bdist.win-amd64\egg\Cython\Build
copying build\lib.win-amd64-2.7\Cython\Build\Inline.py -> 
build\bdist.win-amd64\egg\Cython\Build
copying build\lib.win-amd64-2.7\Cython\Build\IpythonMagic.py -> 
build\bdist.win-amd64\egg\Cython\Build
creating build\bdist.win-amd64\egg\Cython\Build\Tests
copying build\lib.win-amd64-2.7\Cython\Build\Tests\TestInline.py -> 
build\bdist.win-amd64\egg\Cython\Build\Tests
copying build\lib.win-amd64-2.7\Cython\Build\Tests\TestIpythonMagic.py -> 
build\bdist.win-amd64\egg\Cython\Build\Tests
copying build\lib.win-amd64-2.7\Cython\Build\Tests\TestStripLiterals.py -> 
build\bdist.win-amd64\egg\Cython\Build\Tests
copying build\lib.win-amd64-2.7\Cython\Build\Tests\__init__.py -> 
build\bdist.win-amd64\egg\Cython\Build\Tests
copying build\lib.win-amd64-2.7\Cython\Build\__init__.py -> 
build\bdist.win-amd64\egg\Cython\Build
copying build\lib.win-amd64-2.7\Cython\CodeWriter.py -> 
build\bdist.win-amd64\egg\Cython
creating build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\AnalysedTreeTransforms.py 
-> build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\Annotate.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\AutoDocTransforms.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\Buffer.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\Builtin.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\CmdLine.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\Code.pxd -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\Code.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\Code.pyd -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\CodeGeneration.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\CythonScope.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\DebugFlags.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\Errors.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\ExprNodes.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\FlowControl.pxd -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\FlowControl.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\FlowControl.pyd -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\FusedNode.py -> 
build\bdist.win-amd64\egg\Cython\Compiler
copying build\lib.win-amd64-2.7\Cython\Compiler\Future.py -> 
build\bdist.win-amd64\egg\Cy

Re: [Maya-Python] MayaPy Cython Import Error

2017-12-01 Thread Justin Israel
It either means that you don't have a python dev version installed and the
headers don't exist, or that they are in a place that can't be found and
you need to specify them to distutils by setting certain environment
variables.

As a side note can you avoid posting in screenshot form unless it's
absolutely necessary? It'd hard to read wide text in these captures from
mobile devices and also prevents copy paste. It's better suited for issues
with graphical problems.

On Fri, Dec 1, 2017, 9:02 PM Ruchit Bhatt 
wrote:

> From...https://pypi.python.org/pypi/Cython/
>
> i got source-code(Cython-0.27.3.tar.gz).
> After that i tried to build for mayapy, And i got this error.
>
>
>
> 
>
>
> May be environment variable missing or something need to tweak in source
> ..Any idea how to fix this ??
>
> 
>
> --
> 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/5b084cf2-4d9a-4de6-9d22-02dac4b41391%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/CAPGFgA11dU9ANRi54JazZjFqibEN%2ByiZDMTNAuBBvfv0cdJs3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] MayaPy Cython Import Error

2017-12-01 Thread Ruchit Bhatt
From...https://pypi.python.org/pypi/Cython/

i got source-code(Cython-0.27.3.tar.gz).
After that i tried to build for mayapy, And i got this error.





May be environment variable missing or something need to tweak in source 
..Any idea how to fix this ??


-- 
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/5b084cf2-4d9a-4de6-9d22-02dac4b41391%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] MayaPy Cython Import Error

2017-11-29 Thread Marcus Ottosson
This to me looks like the Cython distributed via pip was compiled for a
different version of Python than the one shipping with Maya. I think the
reason you see the error in the terminal is because the command you ran
makes use of the compiled component of Cython, whereas the import you made
in Maya does not.

I suspect you'll need to do what any compiled library requires, which is to
compile it yourself using the mayapy.

-- 
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/CAFRtmOAhecHSbQ4Gp7O0tcxznYnHXZA31cT2XMNLYTStM2hpKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] MayaPy Cython Import Error

2017-11-29 Thread Justin Israel
On Thu, Nov 30, 2017, 6:49 PM Ruchit Bhatt 
wrote:

>
>
> On Thursday, November 30, 2017 at 10:53:44 AM UTC+5:30, Justin Israel
> wrote:
>>
>>
>>
>> It appears that it isn't finding cython in the PYTHONPATH when you are
>> running mayapy. Can you manually confirm the install location of cython?
>> Can you also try something like this (sorry if the syntax is wrong. I dont
>> use windows):
>>
>> mayapy -c "import cython; print cython"
>>
>> Presumably if it could find cython on your PYTHONPATH, then it should
>> compile an extension which could then be imported within Maya.
>>
>>
>
>
>
> 
>
>
>
>
>
>
>
>
>
>
> I think it's weird
>

I should have also suggested you test importing Cython (title case) as that
is what contains the compiler tools and seems to be failing.

-- 
> 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/9219a24d-7145-4a78-9311-649ad36abaf3%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/CAPGFgA0LvTpQKUXh%2Bt3aj94x9jUobtGASybhK_cege0JKrECgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] MayaPy Cython Import Error

2017-11-29 Thread Ruchit Bhatt


On Thursday, November 30, 2017 at 10:53:44 AM UTC+5:30, Justin Israel wrote:
>
>
>
> It appears that it isn't finding cython in the PYTHONPATH when you are 
> running mayapy. Can you manually confirm the install location of cython? 
> Can you also try something like this (sorry if the syntax is wrong. I dont 
> use windows):
>
> mayapy -c "import cython; print cython"
>
> Presumably if it could find cython on your PYTHONPATH, then it should 
> compile an extension which could then be imported within Maya.
>  
>













I think it's weird  

-- 
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/9219a24d-7145-4a78-9311-649ad36abaf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] MayaPy Cython Import Error

2017-11-29 Thread Justin Israel
On Thu, Nov 30, 2017 at 6:06 PM Ruchit Bhatt 
wrote:

> Hi,
> How to convert python module to *.pyd using cython ?
>
> I am using Maya 2017 Up 4, And in that i installed cython with below step
>
>> C:\Program Files\Autodesk\Maya2017\bin>mayapy ez_setup.py
>> C:\Program Files\Autodesk\Maya2017\bin>mayapy get-pip.py
>> C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install setuptools 
>> --upgrade
>> C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install cython
>>
>>
>
It appears that it isn't finding cython in the PYTHONPATH when you are
running mayapy. Can you manually confirm the install location of cython?
Can you also try something like this (sorry if the syntax is wrong. I dont
use windows):

mayapy -c "import cython; print cython"

Presumably if it could find cython on your PYTHONPATH, then it should
compile an extension which could then be imported within Maya.


> After that i followed this link Hello Cython in Maya
> 
>
> 
> *Setup.py*
>
>   [image: Auto Generated Inline Image 1]]
>
> *Terminal Error*
>
> [image: Auto Generated Inline Image 2]
>
>
> *But works fine in script editor*
>
> [image: Auto Generated Inline Image 3]
>
>
> So how to compile *.py to *.pyd for maya  and make a use in scriptEditor ?
>
> --
> 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/c95137c2-5202-41a1-95d2-c7c1384f9a5e%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/CAPGFgA3cCVVrcPj-73WYkPpJuZVDzq5ry_G5UpQuRQqvSNUYCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] MayaPy Cython Import Error

2017-11-29 Thread Ruchit Bhatt
Hi,
How to convert python module to *.pyd using cython ?

I am using Maya 2017 Up 4, And in that i installed cython with below step

> C:\Program Files\Autodesk\Maya2017\bin>mayapy ez_setup.py
> C:\Program Files\Autodesk\Maya2017\bin>mayapy get-pip.py
> C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install setuptools 
> --upgrade
> C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install cython
>
>
After that i followed this link Hello Cython in Maya 



*Setup.py*

  ]

*Terminal Error*



*But works fine in script editor*



So how to compile *.py to *.pyd for maya  and make a use in scriptEditor ?

-- 
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/c95137c2-5202-41a1-95d2-c7c1384f9a5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.