Closed masklu closed 7 years ago
when I compile libSavitar,I got this error:
$ mingw32-make
Scanning dependencies of target pugixml
[ 5%] Building CXX object pugixml/CMakeFiles/pugixml.dir/src/pugixml.cpp.obj
[ 10%] Linking CXX static library libpugixml.a
[ 10%] Built target pugixml
Scanning dependencies of target Savitar
[ 15%] Building CXX object CMakeFiles/Savitar.dir/src/ThreeMFParser.cpp.obj
[ 21%] Building CXX object CMakeFiles/Savitar.dir/src/SceneNode.cpp.obj
[ 26%] Building CXX object CMakeFiles/Savitar.dir/src/Scene.cpp.obj
[ 31%] Building CXX object CMakeFiles/Savitar.dir/src/MeshData.cpp.obj
[ 36%] Building CXX object CMakeFiles/Savitar.dir/src/Vertex.cpp.obj
[ 42%] Building CXX object CMakeFiles/Savitar.dir/src/Face.cpp.obj
[ 47%] Linking CXX shared library libSavitar.dll
CMakeFiles\Savitar.dir/objects.a(MeshData.cpp.obj):MeshData.cpp:(.text+0x480): undefined reference to _imp__PyBytes_FromStringAndSize' CMakeFiles\Savitar.dir/objects.a(MeshData.cpp.obj):MeshData.cpp:(.text+0x7bc): undefined reference to
_impPyBytes_FromStringAndSize'
CMakeFiles\Savitar.dir/objects.a(MeshData.cpp.obj):MeshData.cpp:(.text+0x900): undefined reference to `_impPyBytes_FromStringAndSize'
CMakeFiles\Savitar.dir/objects.a(MeshData.cpp.obj):MeshData.cpp:(.text+0xbd2): undefined reference to _imp__PyBytes_AsString' CMakeFiles\Savitar.dir/objects.a(MeshData.cpp.obj):MeshData.cpp:(.text+0xbe2): undefined reference to
_impPyBytes_Size'
CMakeFiles\Savitar.dir/objects.a(MeshData.cpp.obj):MeshData.cpp:(.text+0xcd0): undefined reference to `_impPyBytes_AsString'
CMakeFiles\Savitar.dir/objects.a(MeshData.cpp.obj):MeshData.cpp:(.text+0xce0): undefined reference to `_imp__PyBytes_Size'
collect2.exe: error: ld returned 1 exit status
CMakeFiles\Savitar.dir\build.make:232: recipe for target 'libSavitar.dll' failed
mingw32-make[2]: [libSavitar.dll] Error 1
CMakeFiles\Makefile2:104: recipe for target 'CMakeFiles/Savitar.dir/all' failed
mingw32-make[1]: [CMakeFiles/Savitar.dir/all] Error 2
Makefile:128: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
libSavitar needs to be compiled using the same compiler as your Python distribution, which in this case seems to be Microsoft Visual Studio.
2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 254, in _populateMetaData 2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]: meta_data = plugin.getMetaData() 2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]: AttributeError: module 'UM' has no attribute 'getMetaData'
This traceback doesn't give much information :( Somehow it wants to load a plug-in called "UM". Are you sure you didn't accidentally put the Uranium source code in one of Cura's resource folders?
Also, what version are you using? In the current source code, this line of code has moved 70 lines down from where your crash report says it is.
@Ghostkeeper I use Uranium2.5 and I put the code C:\Program Files\uranium\lib\uranium\plugins into Cura's plugins folders
if I remove those folders will log:
cura.CrashHandler.show [36]: An uncaught exception has occurred!
cura.CrashHandler.show [39]: Traceback (most recent call last):
cura.CrashHandler.show [39]: File "C:/Cura-2.5/cura_app.py", line 70, in
Don't manually put Uranium files into Cura folders if you want to run from source. It will become a total mess.
The idea is to have the Cura and Uranium repositories in separate folders:
[project folder]
Cura
cmake
cura
docs
....
Uranium
cmake
docs
examples
...
bin
CuraEngine.exe
libArcus.pyd
libSavitar.pyd
You then set the PYTHONPATH environement variable to include the Uranium and bin folders.
when I run cura_app.py, I got this log
2017-05-26 16:22:41,428 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin ConsoleLogger 2017-05-26 16:22:41,443 - INFO - CuraEngineBackend.CuraEngineBackend.init [64]: Found CuraEngine at: CuraEngine.exe 2017-05-26 16:22:41,443 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin CuraEngineBackend 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [74]: Exception: Import error loading module 3MFReader 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: Traceback (most recent call last): 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 293, in _findPlugin 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: module = imp.load_module(plugin_id, file, path, desc) 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\imp.py", line 244, in load_module 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: return load_package(name, filename) 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\imp.py", line 216, in load_package 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: return _load(spec) 2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "", line 693, in _load
2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "", line 673, in _load_unlocked
2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "", line 673, in exec_module
2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "", line 222, in _call_with_frames_removed
2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "C:\Cura-2.5\cura..\plugins\3MFReader__init.py", line 5, in
2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: from . import ThreeMFReader
2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: File "C:\Cura-2.5\cura..\plugins\3MFReader\ThreeMFReader.py", line 23, in
2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: import Savitar
2017-05-26 16:22:41,443 - ERROR - UM.Logger.logException [78]: ImportError: No module named 'Savitar'
2017-05-26 16:22:41,443 - ERROR - UM.PluginRegistry._populateMetaData [249]: Could not find plugin 3MFReader
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [74]: Exception: Import error loading module 3MFReader
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: Traceback (most recent call last):
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 293, in _findPlugin
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: module = imp.load_module(plugin_id, file, path, desc)
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\imp.py", line 244, in load_module
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: return load_package(name, filename)
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\imp.py", line 216, in load_package
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: return _load(spec)
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "", line 693, in _load
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "", line 673, in _load_unlocked
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "", line 673, in exec_module
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "", line 222, in _call_with_frames_removed
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\Cura-2.5\cura..\plugins\3MFReader__init.py", line 5, in
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: from . import ThreeMFReader
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\Cura-2.5\cura..\plugins\3MFReader\ThreeMFReader.py", line 23, in
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: import Savitar
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: ImportError: No module named 'Savitar'
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [74]: Exception: Import error loading module 3MFWriter
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: Traceback (most recent call last):
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 293, in _findPlugin
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: module = imp.load_module(plugin_id, file, path, desc)
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\imp.py", line 244, in load_module
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: return load_package(name, filename)
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\imp.py", line 216, in load_package
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: return _load(spec)
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "", line 693, in _load
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "", line 673, in _load_unlocked
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "", line 673, in exec_module
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "", line 222, in _call_with_frames_removed
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\Cura-2.5\cura..\plugins\3MFWriter\ init__.py", line 6, in
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: from . import ThreeMFWriter
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: File "C:\Cura-2.5\cura..\plugins\3MFWriter\ThreeMFWriter.py", line 11, in
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: import Savitar
2017-05-26 16:22:41,459 - ERROR - UM.Logger.logException [78]: ImportError: No module named 'Savitar'
2017-05-26 16:22:41,459 - ERROR - UM.PluginRegistry._populateMetaData [249]: Could not find plugin 3MFWriter
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [74]: Exception: Import error loading module 3MFWriter
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: Traceback (most recent call last):
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 293, in _findPlugin
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: module = imp.load_module(plugin_id, file, path, desc)
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\imp.py", line 244, in load_module
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: return load_package(name, filename)
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "C:\python35\lib\imp.py", line 216, in load_package
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: return _load(spec)
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "", line 693, in _load
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "", line 673, in _load_unlocked
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "", line 673, in exec_module
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "", line 222, in _call_with_frames_removed
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "C:\Cura-2.5\cura..\plugins\3MFWriter\ init.py", line 6, in
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: from . import ThreeMFWriter
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: File "C:\Cura-2.5\cura..\plugins\3MFWriter\ThreeMFWriter.py", line 11, in
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: import Savitar
2017-05-26 16:22:41,474 - ERROR - UM.Logger.logException [78]: ImportError: No module named 'Savitar'
2017-05-26 16:22:41,474 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin AutoSave
2017-05-26 16:22:41,474 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin ChangeLogPlugin
2017-05-26 16:22:41,474 - WARNING - UM.PluginRegistry.loadPlugin [74]: Plugin ConsoleLogger was already loaded
2017-05-26 16:22:41,474 - WARNING - UM.PluginRegistry.loadPlugin [74]: Plugin CuraEngineBackend was already loaded
2017-05-26 16:22:41,474 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin CuraProfileReader
2017-05-26 16:22:41,490 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin CuraProfileWriter
2017-05-26 16:22:41,490 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin OBJReader
2017-05-26 16:22:41,490 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin OBJWriter
2017-05-26 16:22:41,506 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin STLReader
2017-05-26 16:22:41,506 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin STLWriter
2017-05-26 16:22:41,506 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin FileLogger
2017-05-26 16:22:41,506 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin GCodeProfileReader
2017-05-26 16:22:41,521 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin GCodeReader
2017-05-26 16:22:41,521 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin GCodeWriter
2017-05-26 16:22:41,521 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin ImageReader
2017-05-26 16:22:41,537 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin LayerView
2017-05-26 16:22:41,537 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin LegacyProfileReader
2017-05-26 16:22:41,537 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin LocalFileOutputDevice
2017-05-26 16:22:41,552 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin MachineSettingsAction
2017-05-26 16:22:41,552 - WARNING - UM.Preferences.getValue [81]: Tried to get the value of non-existing setting cura/active_mode.
2017-05-26 16:22:41,552 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin PerObjectSettingsTool
2017-05-26 16:22:41,552 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin RemovableDriveOutputDevice
2017-05-26 16:22:41,615 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin SliceInfoPlugin
2017-05-26 16:22:41,615 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin SolidView
2017-05-26 16:22:41,615 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin CameraTool
2017-05-26 16:22:41,630 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin MirrorTool
2017-05-26 16:22:41,630 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin RotateTool
2017-05-26 16:22:41,646 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin ScaleTool
2017-05-26 16:22:41,646 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin SelectionTool
2017-05-26 16:22:41,646 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin TranslateTool
2017-05-26 16:22:41,662 - INFO - UM.PluginRegistry.loadPlugin [102]: Loaded plugin UltimakerMachineActions
2017-05-26 16:22:41,662 - ERROR - UM.PluginRegistry._populateMetaData [256]: An error occured getting metadata from plugin UM: module 'UM' has no attribute 'getMetaData'
2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [36]: An uncaught exception has occurred!
2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]: Traceback (most recent call last):
2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 254, in _populateMetaData
2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]: meta_data = plugin.getMetaData()
2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]: AttributeError: module 'UM' has no attribute 'getMetaData'
2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]:
2017-05-26 16:22:41,693 - CRITICAL - cura.CrashHandler.show [39]: During handling of the above exception, another exception occurred:
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: Traceback (most recent call last):
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: File "C:/Cura-2.5/cura_app.py", line 70, in
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: app = cura.CuraApplication.CuraApplication.getInstance()
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: File "C:\python35\lib\site-packages\UM\Application.py", line 330, in getInstance
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: Application._instance = cls()
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: File "C:\Cura-2.5\cura\CuraApplication.py", line 173, in init
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: super().init(name = "cura", version = CuraVersion, buildtype = CuraBuildType)
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: File "C:\python35\lib\site-packages\UM\Qt\QtApplication.py", line 105, in init__
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: self._loadPlugins()
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: File "C:\Cura-2.5\cura\CuraApplication.py", line 464, in _loadPlugins
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: self._plugin_registry.loadPlugins()
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 125, in loadPlugins
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: plugin_data = self.getMetaData(plugin_id)
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 145, in getMetaData
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: if not self._populateMetaData(plugin_id):
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: File "C:\python35\lib\site-packages\UM\PluginRegistry.py", line 257, in _populateMetaData
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: raise InvalidMetaDataError(plugin_id)
2017-05-26 16:22:41,708 - CRITICAL - cura.CrashHandler.show [39]: UM.PluginError.InvalidMetaDataError: Invalid metadata for plugin UM
I've no idea to solved this