Jump to content
Ultimaker Community of 3D Printing Experts
hyna

Building Cura from the source - Fedora

Recommended Posts

Hi,

has anyone an experience with building the latest Cura from the source on Fedora?

I followed the commands from Ubuntu build script and everything passed without any errors. But when i try to run Cura, it gives me the following error:

 

Traceback (most recent call last): File /"cura_app.py/", line 14, in    import cura.CuraApplication File "/home/hyna/3dtisk/cura_dev/Cura/cura/CuraApplication.py", line 4, in    from UM.Qt.QtApplication import QtApplicationImportError: No module named 'UM'

 

Any suggestions?

Thank you,

Hynek

Share this post


Link to post
Share on other sites

Thanks, it works now. I had some other issues but mainly due to my mistake. I forgot to switch to 15.10 branch :)

But one issue still persist. I'm not able to change the Cura language. After the application restart, everything is still in English.

The reason why I do this is to setup the test environment for my colleague which do the translation to Czech language.

Do you have any advice how to fix the language problem?

Thank you,

Hynek

Share this post


Link to post
Share on other sites

Check if there is an error in the log regarding to this. If it can't find a certain language, it switches back to default (English). It should log this.

 

Here is the log:

 

2015-09-23 15:41:52,780 - INFO - Loaded plugin ConsoleLogger2015-09-23 15:41:52,785 - INFO - Loaded plugin WireframeView2015-09-23 15:41:52,788 - INFO - Loaded plugin MeshView2015-09-23 15:41:52,868 - INFO - Checking for new version of cura2015-09-23 15:41:52,871 - INFO - Loaded plugin UpdateChecker2015-09-23 15:41:52,896 - INFO - Loaded plugin FileLogger2015-09-23 15:41:52,905 - INFO - Loaded plugin MirrorTool2015-09-23 15:41:52,936 - INFO - Loaded plugin RotateTool2015-09-23 15:41:52,940 - INFO - Loaded plugin SelectionTool2015-09-23 15:41:52,945 - INFO - Loaded plugin TranslateTool2015-09-23 15:41:52,952 - INFO - Loaded plugin PerObjectSettingsTool2015-09-23 15:41:52,958 - INFO - Loaded plugin CameraTool2015-09-23 15:41:52,968 - INFO - Loaded plugin ScaleTool2015-09-23 15:41:52,975 - INFO - Loaded plugin LocalFileOutputDevice2015-09-23 15:41:52,981 - INFO - Loaded plugin OBJWriter2015-09-23 15:41:52,988 - INFO - Loaded plugin STLWriter2015-09-23 15:41:52,996 - INFO - Loaded plugin OBJReader2015-09-23 15:41:53,048 - INFO - Loaded plugin 3MFWriter2015-09-23 15:41:53,055 - INFO - Loaded plugin STLReader2015-09-23 15:41:53,056 - WARNING - Plugin ConsoleLogger was already loaded2015-09-23 15:41:53,064 - INFO - Loaded plugin SliceInfoPlugin2015-09-23 15:41:53,073 - INFO - Loaded plugin ChangeLogPlugin2015-09-23 15:41:53,074 - WARNING - Plugin WireframeView was already loaded2015-09-23 15:41:53,074 - WARNING - Plugin MeshView was already loaded2015-09-23 15:41:53,074 - WARNING - Plugin UpdateChecker was already loaded2015-09-23 15:41:53,074 - WARNING - Plugin FileLogger was already loaded2015-09-23 15:41:53,086 - INFO - Loaded plugin RemovableDriveOutputDevice2015-09-23 15:41:53,366 - INFO - Loaded plugin CuraEngineBackend2015-09-23 15:41:53,375 - INFO - Loaded plugin 3MFReader2015-09-23 15:41:53,375 - WARNING - Plugin MirrorTool was already loaded2015-09-23 15:41:53,376 - WARNING - Plugin RotateTool was already loaded2015-09-23 15:41:53,376 - WARNING - Plugin SelectionTool was already loaded2015-09-23 15:41:53,376 - WARNING - Plugin TranslateTool was already loaded2015-09-23 15:41:53,376 - WARNING - Plugin PerObjectSettingsTool was already loaded2015-09-23 15:41:53,377 - WARNING - Plugin CameraTool was already loaded2015-09-23 15:41:53,377 - WARNING - Plugin ScaleTool was already loaded2015-09-23 15:41:53,414 - ERROR - Import error loading module USBPrinting: No module named 'serial'2015-09-23 15:41:53,414 - ERROR - Could not find plugin USBPrinting2015-09-23 15:41:53,421 - ERROR - Import error loading module USBPrinting: No module named 'serial'2015-09-23 15:41:53,439 - INFO - Loaded plugin GCodeWriter2015-09-23 15:41:53,455 - INFO - Loaded plugin LayerView2015-09-23 15:41:53,456 - WARNING - Plugin LocalFileOutputDevice was already loaded2015-09-23 15:41:53,456 - WARNING - Plugin OBJWriter was already loaded2015-09-23 15:41:53,457 - WARNING - Plugin STLWriter was already loaded2015-09-23 15:41:53,457 - WARNING - Plugin OBJReader was already loaded2015-09-23 15:41:53,457 - WARNING - Plugin 3MFWriter was already loaded2015-09-23 15:41:53,457 - WARNING - Plugin STLReader was already loaded2015-09-23 15:41:53,458 - WARNING - Plugin ConsoleLogger was already loaded2015-09-23 15:41:54,025 - DEBUG - Setting value of setting speed_wall_0 to 302015-09-23 15:41:54,025 - DEBUG - Setting value of setting top_layers to 52015-09-23 15:41:54,026 - DEBUG - Setting value of setting support_enable to False2015-09-23 15:41:54,026 - DEBUG - Setting value of setting layer_height_0 to 0.22015-09-23 15:41:54,026 - DEBUG - Setting value of setting skirt_line_count to True2015-09-23 15:41:54,027 - DEBUG - Setting value of setting bottom_layers to 52015-09-23 15:41:54,027 - DEBUG - Setting value of setting speed_wall_x to 402015-09-23 15:41:54,028 - DEBUG - Setting value of setting layer_height to 0.22015-09-23 15:41:54,028 - DEBUG - Setting value of setting magic_mesh_surface_mode to both2015-09-23 15:41:54,028 - DEBUG - Setting value of setting magic_spiralize to False2015-09-23 15:41:54,029 - DEBUG - Setting value of setting print_sequence to all_at_once2015-09-23 15:41:54,030 - DEBUG - Setting value of setting shell_thickness to 1.22015-09-23 15:41:54,030 - DEBUG - Setting value of setting wall_line_count to 32015-09-23 15:41:54,030 - DEBUG - Setting value of setting speed_print to 402015-09-23 15:41:54,031 - DEBUG - Setting value of setting material_print_temperature to True2015-09-23 15:41:54,031 - DEBUG - Setting value of setting draft_shield_enabled to False2015-09-23 15:41:54,033 - DEBUG - Setting value of setting layer_height to 0.062015-09-23 15:41:54,034 - DEBUG - Setting value of setting layer_height to 0.12015-09-23 15:41:54,064 - INFO - Started engine process: /home/hyna/3dtisk/cura_dev/bin/CuraEngine2015-09-23 15:41:54,075 - DEBUG - Setting active view to MeshView2015-09-23 15:41:54,467 - DEBUG - Backend connected on port 496742015-09-23 15:41:55,178 - DEBUG - Loaded theme /home/hyna/3dtisk/cura_dev/Cura/cura/../resources/themes/curafile:///usr/lib64/qt5/qml/QtQuick/Controls/Menu.qml:146: TypeError: Cannot read property '__contentItem' of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Menu.qml:146: TypeError: Cannot read property '__contentItem' of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Menu.qml:146: TypeError: Cannot read property '__contentItem' of nullfile:///home/hyna/3dtisk/cura_dev/Cura/resources/qml/SidebarHeader.qml:85:31: Unable to assign [undefined] to intfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of nullfile:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:154: TypeError: Cannot read property of null2015-09-23 15:41:59,388 - DEBUG - Preparing to send slice data to engine.

 

Nothing interesting from my point of view.

Hynek

Share this post


Link to post
Share on other sites

After a while i was able to track the issue to i18n/gettext.find() function.

And the conclusion is that all .po language files needs to be converted to .mo files.

So it is not a Cura issue, it just needs to be done manually when building from source :)

Its much better now to see the translated strings where they belongs.

Thanks for your help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Terms of Use Privacy Policy