Thanks Thorsten,

you are clocking up some beers in the booze-bank for my next visit to Germany :)
I will try all that and report back.
Guess there goes my day again, haha.



On 12/13/2016 11:50 AM, Thorsten Kaufmann wrote:

vcpython27 and vc express 2010 are mutually exclusive as vcpython27 contains its own compilers etc.


It tends to work better if you do not have multiple toolchains / target platforms available as that means that setuptools has to choose the toolchain and mostly fails at that.


Also VC Express 2010 will not work for nuke as the Express Versions back then did not contain 64bit compilers.


So i'd recommend installing full VC 2010 (and make sure you tick on the 64bit compilers and tools as they are off by default if i recall right) and then install VC 2015 Express to have an IDE to work in (should cython + setuptools even allow for that? IF not, scrap 2015) and best remove vcpython27 too for the time being.


You can find the full installers for VS2010 in this Stackoverflow question: http://stackoverflow.com/questions/8894654/where-can-i-download-visual-studio-2010-trial-version


You don't need to license it or anything. It is just the easiest way of getting the proper psdk installed.


I can see your frustration with windows vs. osx and linux. BUT rest assured that there is a whole big mess in the way *nix based OSes handle these cases too. Windows uses "side by side configuration" which means you can have different versions and different ABI versions all installed in parallel. e.g. You can have all of the VC redistributables from 2005 to today including all service packs at once. On linux you can only ever have one (the main reason for vfxplatform beeing necessary if i am not mistaken). TL;DR; they all suck. As usual. Just in different ways ;)


Cheers,

Thorsten


---
Thorsten Kaufmann
Production Pipeline Architect

Mackevision Medien Design GmbH
Forststraße 7
70174 Stuttgart

T +49 711 93 30 48 661
F +49 711 93 30 48 90
M +49 151 19 55 55 02

thorsten.kaufm...@mackevision.com
www.mackevision.com <http://www.mackevision.com/?utm_source=E-Mail-Signatur&utm_medium=E-Mail&utm_campaign=Mackevision-Link>

Geschäftsführer: Armin Pohl, Joachim Lincke, Jens Pohl
HRB 243735 Amtsgericht Stuttgart

---
*PORTFOLIO:* The Next Level of User Experience - Real-time Solutions <http://www.mackevision.com/portfolio/real-time-solutions/?utm_source=E-Mail-Signatur&utm_medium=E-Mail&utm_campaign=real-time-signatur> *VFX:* Game of Thrones, Season 6 – VFX breakdown <http://www.mackevision.com/references/game-of-thrones-season-6-vfx-breakdown/?utm_source=E-Mail-Signatur&utm_medium=E-Mail&utm_campaign=GoT-S6-vfx-breakdown-Signatur> *SOCIAL:* Follow us on Facebook <https://www.facebook.com/mackevision/>, Twitter <https://twitter.com/Mackevision>, Behance <https://www.behance.net/mackevision> and Vimeo <https://vimeo.com/mackevision>

------------------------------------------------------------------------
*Von:* nuke-python-boun...@support.thefoundry.co.uk <nuke-python-boun...@support.thefoundry.co.uk> im Auftrag von Frank Rueter|OHUfx <fr...@ohufx.com>
*Gesendet:* Montag, 12. Dezember 2016 23:21
*An:* nuke-python@support.thefoundry.co.uk
*Betreff:* Re: AW: AW: [Nuke-python] trouble compiling python extension for Nuke on windows Yeah, I just installed vcpython27 after installing VC Express 2010, then compiled everything again. However, I am left with the same error I was facing two days ago when loading Nuke:
    DLL load failed: the specific module could not be found

I don't even know how to debug this properly but I guess I will have to learn today, otherwise I will never get the nuBridge out for windows users :(


On 12/13/2016 10:29 AM, Thorsten Kaufmann wrote:

Hm. I kind of missed the "cython" part, or better misread that as cpython. I am not sure if cython can target non-standard python releases. Maybe that is the culprint? If it actually uses 2010 that should work though.


Cheers,

Thorsten


---
Thorsten Kaufmann
Production Pipeline Architect

Mackevision Medien Design GmbH
Forststraße 7
70174 Stuttgart

T +49 711 93 30 48 661
F +49 711 93 30 48 90
M +49 151 19 55 55 02

thorsten.kaufm...@mackevision.com
www.mackevision.com <http://www.mackevision.com/?utm_source=E-Mail-Signatur&utm_medium=E-Mail&utm_campaign=Mackevision-Link>

Geschäftsführer: Armin Pohl, Joachim Lincke, Jens Pohl
HRB 243735 Amtsgericht Stuttgart

------------------------------------------------------------------------
*Von:*nuke-python-boun...@support.thefoundry.co.uk<nuke-python-boun...@support.thefoundry.co.uk> im Auftrag von Frank Rueter|OHUfx<fr...@ohufx.com>
*Gesendet:* Montag, 12. Dezember 2016 22:24
*An:*nuke-python@support.thefoundry.co.uk; nuke-dev-requ...@support.thefoundry.co.uk *Betreff:* Re: AW: [Nuke-python] trouble compiling python extension for Nuke on windows So I re-ran the VS Express installer for 2010 explicitly as admin (via the right click menu - even though I am admin anyway), and on one of the machines this seemed to enable the installer to finish.
Now when I try to compile my python code I get this error:
Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

But I thought vcpython27 would get the wrong compiler for Nuke?
Not sure where to now...


Cheers,
frank

On 12/13/2016 09:54 AM, Frank Rueter|OHUfx wrote:
Thanks Thorsten.
I tried all day yesterday to install VS 2010 but on both machines I tried it on the installer hangs half way through "Microsoft .NET Framework 4" and doesn't move anymore. No errors, warnings or info. I let both machines run over night and 12 hours later still no progress. I also tried two different installers.

I am trying to do this on windows running on Virtual box on a osc host as well as on a windows properly booted via Boot Camp (also on Apple hardware though).
Could that be the problem?

I will install VirtualBox under linux to see if running windows on PC hardware makes a difference.

Man what a drag...


On 12/12/2016 09:38 PM, Thorsten Kaufmann wrote:

That’s weird actually. It will not work anyways though, because the MS compiler package targets the official python releases. Official

Python 2.7 releases are compiled with VS 2008. So these won’t work with Nuke, as Nuke’s python interpreter is compiled with VS2010

so all binary extensions also need to be compiled with VS2010.

My recommendation would be to get one of the VS2010 installers and install as a trial or unlicensed, Get VS 2015 (express if you do not qualify

for community, or community if you can) and then in the project settings for the x64 target set the patform to VS2010.

Cheers,

Thorsten

---
Thorsten Kaufmann
Production Pipeline Architect

Mackevision Medien Design GmbH
Forststraße 7
70174 Stuttgart

T +49 711 93 30 48 661
F +49 711 93 30 48 90
M +49 151 19 55 55 02

thorsten.kaufm...@mackevision.com
www.mackevision.com <http://www.mackevision.com/?utm_source=E-Mail-Signatur&utm_medium=E-Mail&utm_campaign=Mackevision-Link>

Geschäftsführer: Armin Pohl, Joachim Lincke, Jens Pohl
HRB 243735 Amtsgericht Stuttgart

*From:*nuke-python-boun...@support.thefoundry.co.uk [mailto:nuke-python-boun...@support.thefoundry.co.uk]*On Behalf Of*Frank Rueter|OHUfx
*Sent:* Sonntag, 11. Dezember 2016 23:56
*To:*nuke-python@support.thefoundry.co.uk
*Subject:* Re: AW: [Nuke-python] trouble compiling python extension for Nuke on windows

Oh, I forgot:
>>MSVCR120 seems to indicate you are using Visual Studio 2013?
I just installed the compiler package for python 2.7 <http://www.microsoft.com/en-nz/download/details.aspx?id=44266>


On 12/12/16 11:03 AM, Thorsten Kaufmann wrote:

    ​Hey Frank,

    first of all the error itself is caused by missing vc
    redistributables on the machine. This should not be the case if
    Nuke is installed because Nuke also needs them. But in addition
    the Version it tries to load is off-. MSVCR120 seems to
    indicate you are using Visual Studio 2013?

    You need to use VS 2010 or use 2015 and use 2010 ans the target
    platform. The latter only works if you either have installed
    VS2010 before VS 2015 (trial is enough) or install the matching
    PSDK for that version prior to VS 2015.

    Cheers,

    Thorsten

    ---
    Thorsten Kaufmann
    Production Pipeline Architect

    Mackevision Medien Design GmbH
    Forststraße 7
    70174 Stuttgart

    T +49 711 93 30 48 661
    F +49 711 93 30 48 90
    M +49 151 19 55 55 02

    thorsten.kaufm...@mackevision.com
    <mailto:thorsten.kaufm...@mackevision.com>
    www.mackevision.com
    
<http://www.mackevision.com/?utm_source=E-Mail-Signatur&utm_medium=E-Mail&utm_campaign=Mackevision-Link>

    Geschäftsführer: Armin Pohl, Joachim Lincke, Jens Pohl
    HRB 243735 Amtsgericht Stuttgart

    ------------------------------------------------------------------------

    *Von:*nuke-python-boun...@support.thefoundry.co.uk
    
<mailto:nuke-python-boun...@support.thefoundry.co.uk><nuke-python-boun...@support.thefoundry.co.uk>
    <mailto:nuke-python-boun...@support.thefoundry.co.uk> im
    Auftrag von Frank Rueter|OHUfx <fr...@ohufx.com>
    <mailto:fr...@ohufx.com>
    *Gesendet:* Sonntag, 11. Dezember 2016 11:03
    *An:* Nuke Python discussion; nuke-...@support.thefoundry.co.uk
    <mailto:nuke-...@support.thefoundry.co.uk>
    *Betreff:* [Nuke-python] trouble compiling python extension for
    Nuke on windows

    Hi all,

    I am trying to compile a python package for Nuke via Cython.
    All seems to work well on osx and linux, but on windows I get
    this error when trying to import the main module from within
    Nuke (i.e. the parent folder of the main module is added via
    nuke.pluginAddPath() which shoudl also add it to PYTHONPATH):
        ImportError: DLL load failed

    When I try to import the module in the systems python terminal
    I get an error complaining about a missing MSVCR120.dll.
    However, if I make sure the python terminal's work directory is
    the parent folder of the main module, I can successfully import it.

    I assume I am not compiling the extensions with the correct
    dependencies or something?

    My setup.py file looks like this (using setuptools 30.4.0):

        import shutil
        from setuptools import setup
        from setuptools import Extension

        from Cython.Build import cythonize
        from Cython.Distutils import build_ext

        sourceFiles = ['path/to/packageA/moduleA.py',
        path/to/packageB/moduleB.py',
        path/to/packageC/moduleC.py',
                             ]

        ################ COMPILE
        setup (
            ext_modules = cythonize(sourceFiles),
            #packages = ['model', 'view', 'controller'],
            package_dir = {'A':'path/to/packageA',
        'B':'path/to/packageB',
        'C':'path/to/packageC'},
            #package_data = {'packageA':'__init__.py'}
        )

    And the command to run it is simply:
    python setup.py build_ext --inplace

    I have never seriously tried to compile python code and I
    usually don't use windows either, so I'm sure it's a newbie
    mistake.
    Any help would be greatly appreciated!

    Cheers,
    frank

--
    ohufxLogo 50x50 <http://www.ohufx.com>

        

    *vfx compositing
    <http://ohufx.com/index.php/vfx-compositing>**|**workflow
    customisation and consulting
    <http://ohufx.com/index.php/vfx-customising>*




    _______________________________________________

    Nuke-python mailing list

    Nuke-python@support.thefoundry.co.uk
    
<mailto:Nuke-python@support.thefoundry.co.uk>,http://forums.thefoundry.co.uk/

    http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python



_______________________________________________
Nuke-python mailing 
listnuke-pyt...@support.thefoundry.co.uk,http://forums.thefoundry.co.uk/http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python



_______________________________________________
Nuke-python mailing 
listnuke-pyt...@support.thefoundry.co.uk,http://forums.thefoundry.co.uk/http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python



_______________________________________________
Nuke-python mailing 
listnuke-pyt...@support.thefoundry.co.uk,http://forums.thefoundry.co.uk/http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python



_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to