RESOLVED camSchnappr doesnt work with TD 2020 20020

CamSchnappr doesnt work with the new official version, here is the message:

DAT compile error: /camSchnappr/CamSchnappr
Traceback (most recent call last):
File “/camSchnappr/CamSchnappr”, line 15
r = previousimport(*args, **kw)
File “C:\Users\jacqu\AppData\Roaming\Python\Python37\site-packages\numpy_init_.py”, line 142
from . import core
r = previousimport(*args, **kw)
File “C:\Users\jacqu\AppData\Roaming\Python\Python37\site-packages\numpy\core_init_.py”, line 23
WinDLL(os.path.abspath(filename))
File “C:\Program Files\Derivative\TouchDesigner099\bin\lib\ctypes_init_.py”, line 356, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 n’est pas une application Win32 valide

Error retrieving extension for /camSchnappr: (Extension 1) td.Error: Module compilation error. See /camSchnappr/CamSchnappr for details.

Hi @jacqueshoepffner,

it looks like TouchDesigner is trying to use a numpy version installed on your system that seems to be incompatible with our python…
Could it be that in the Settings dialog, the option for Search External Python Path Last is disabled?

image

Best
Markus

Hello Markus, I tried all the combination with external Python, no external path, path to different folder with Python 35, 36 or 37 overtime the same problem.
In 2019.20140, with the camShnappr provided there it works perfectly…

Hey @jacqueshoepffner,

hm - so it shouldn’t try to go out and find your custom python installation yet from the error it looks like it is finding a python 32bit installation.
Can you check if you have an Environmental Variable called PYTHONHOME or PYTHONPATH on your system that points to the installation folder?

Cheers
Markus

Sorry, I will try later, its very late in Paris and I wake up quite early, maybe tomorrow night.

Hello Markus,
Still the same problem, I found that, should I suppress the 37-32 path?
It would be no problem elsewhere?

Hi @jacqueshoepffner,

I think it goes through the path in sequence, so if you move the Python37 paths up to the top, it should fetch those first.

Best
Markus

I have done it, restarted computer and TD, still the same problem in 2020.20620…
I am the only one to have this problem?

Hi @jacqueshoepffner,

we haven’t heard about others having this issue and I can’t replicate it here.
My Path and TouchDesigner Settings look like this:

and camSchnappr works just fine.
I’m assuming if you type in the textport:

import numpy
import cv2

you get the same error?
Cheers
Markus

here is the report (sorry for the french system…)

TouchDesigner Build 2020.20620 compile on Thu Mar 5 19:19:43 2020
Python 3.7.2 (heads/3.7-Derivative:052feb9e72, Mar 7 2019, 16:29:45) [MSC v.1900 64 bit (AMD64)]

python >>> import numpy
OSError: [WinError 193] %1 n’est pas une application Win32 valide
python >>> import cv2
ImportError: numpy.core.multiarray failed to import
ImportError: numpy.core.multiarray failed to import
python >>>

and with 2019.20140
TouchDesigner 64-Bit 099 Build 2019.20140 compile on Wed Nov 27 05:21:17 2019
Python 3.5.1+ (default, Apr 21 2016, 11:06:11) [MSC v.1900 64 bit (AMD64)]

python >>> import numpy
python >>>
python >>> import cv2
python >>>

Preferences are exactly the same with TD 20140 and TD 20620, strange_

I suppressed all the python 37-32 in environment variable and also in my user/…/roaming folder and still the same error.
Perhaps it is a python version problem.
If I am in 2019.20140, it use Python 3.5 and it’s ok with numpy
If I launch Python in the command prompt, it loads Python 3.5 and its OK with numpy
2020.20620 uses Python 3.7.2 and doesn’t find numpy. Do you think I have to reinstall Python 3.7.2?

and I have the same problem with kantan mapper.
I really tried all the possibilities, reinstall Python 3.7.2, rewrite env. variables etc. still the problem.
with 2019.20140 (python 3.5.1) all is ok

Does it work if you remove the Python 3.7.2 installations for both 32- and 64Bit?

Unfortunately no, The problem, for me, its the multiplicity of Python installation, inside C:, inside Program folder, inside user/Local, inside user/Roaming.
I try to launch Python 37 bur inside command prompt, its only 3.5.1 and the only python.exe open 3.5.1.

Hello, finally I deinstalled/erased all the python 3.7… installations and library.
After that camSchnapper and other was working well.
Reinstalled a proper Python 3.8 with numpy and opencv and now “alles in ordnung”.
Thank you Markus

1 Like