当我尝试从放在另一个文件夹中的Python导入到FreeCAD时,我遇到了一个小问题。Python文件位置:c:/users/workspace/main.py FreeCAD:c:/program files (x86)/FreeCAD0.13/bin
当我试图使用命令from FreeCAD import *导入时(我将FreeCAD的路径附加到sys sys.path.append (" path-To-FreeCADs-BinFolder " ),则会得到一个错误:
FreeCAD 0.13, Libs: 0.13R1828
Initialization of FreeCAD failed:
While initializing FreeCAD the following exception occurred:
''module' object has no attribute 'PrintError''
Please contact the application's support team for more information. "但是当我在FreeCAD的文件夹中创建一个Python时,它可以工作,我的意思是像上面所写的使用导入FreeCAD。
ps :我的Python版本是2.7.5,FreeCAD是: 0.13
发布于 2013-10-14 08:07:08
我遇到了同样的问题,我发现Win版本不支持Python2.7,所以您必须安装Python2.6,打开一个shell并执行相同的导入sys sys.path.append('C://Program /FreeCAD0.13/bin‘)导入FreeCAD
那它应该能起作用
https://stackoverflow.com/questions/19251687
复制相似问题