>>> try:
... import assembly2lib
... except Exception, inst:
... print('Error: ' + str(inst))
File "<input>", line 4
print('Error: ' + str(inst))
^
IndentationError: expected an indented block
>>> import sys,os,traceback,cStringIO
>>> try:
... import assembly2lib
... except Exception, inst:
... output=cStringIO.StringIO()
... traceback.print_exc(file=output)
... print (output.getvalue())
... etype, value, tb = sys.exc_info()
... print('Error: ' + str(value))
...
Traceback (most recent call last):
File "<input>", line 2, in <module>
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\Mod\FreeCAD_assembly2-master\assembly2lib.py", line 11, in <module>
import numpy, os
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\__init__.py", line 170, in <module>
from . import add_newdocs
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\core\__init__.py", line 6, in <module>
from . import multiarray
ImportError: DLL load failed: Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ung�ltig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details k�nnen auch mit dem Befehlszeilentool sxstrace.exe angezeigt w
Error: DLL load failed: Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ung�ltig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details k�nnen auch mit dem Befehlszeilentool sxstrace.exe angezeigt w
>>>
When using FF it always adds an extra space. You have to manually adjust the script. In front of "try" and "except" there must be no space and for the others two might be fine.
But nothing else after the python commands.
In this case you have to enable Python redirection. Go to the preferences > Output window and then on the bottom enable both "Redirect internal Python output/errors to report view".
Python 2.7.8 (default, Dec 4 2014, 10:05:50) [MSC v.1500 32 bit (Intel)] on win32
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> try:
... import assembly2lib
... except Exception, inst:
... print('Error: ' + str(inst))
...
Error: DLL load failed: Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ung�ltig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details k�nnen auch mit dem Befehlszeilentool sxstrace.exe angezeigt w
>>> import sys,os,traceback,cStringIO
>>> try:
... import assembly2lib
... except Exception, inst:
... output=cStringIO.StringIO()
... traceback.print_exc(file=output)
... print (output.getvalue())
... etype, value, tb = sys.exc_info()
... print('Error: ' + str(value))
...
Traceback (most recent call last):
File "<input>", line 2, in <module>
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\Mod\Assembly2Workbench\assembly2lib.py", line 11, in <module>
import numpy, os
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\__init__.py", line 170, in <module>
from . import add_newdocs
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "E:\Software\FreeCAD_0.16.6124_x86_dev_bin\bin\lib\site-packages\numpy\core\__init__.py", line 6, in <module>
from . import multiarray
ImportError: DLL load failed: Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ung�ltig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details k�nnen auch mit dem Befehlszeilentool sxstrace.exe angezeigt w
Error: DLL load failed: Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ung�ltig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details k�nnen auch mit dem Befehlszeilentool sxstrace.exe angezeigt w
>>>
For me it's now quite unclear why the first test doesn't raise a second exception in the "except" branch because this is what happens when the InitGui.py file of the Assembly2 module is executed. So, I have to dig a bit more...
Now I see why the messages don't appear in the report view but in the Python console -- my fault.
And now to the solution:
1. As very first step you have to get the tool dependency walker. Extract the downloaded zip file and start depends.exe
2. Go to your numpy directory and drag and drop the file multiarray.pyd to dependecy walker. In the list of dependent files you should see one with a yellow bubble of the form MSVCR<number>.dll. Dependent on the used compiler this number can be 90, 100, 110, 120 and so on.
Somewhere it lists the file msvcr90.dll, all the API-MS-WIN* files can be ignored. So, apparently the redistributable for VisualStudio 2008, 32-bit is missing on your system. Therefore go to https://www.microsoft.com/de-de/downloa ... aspx?id=29 and download the file vcredist_x86.exe and install it.
A side note: According to the output you have installed a file python27.dll into c:\windows\system32\. This directory is reserved for system libraries but the Python dll is not a system library. Having this file there could lead to problems.