Jump to content
Ultimaker Community of 3D Printing Experts

Cura from source libArcus not found


Recommended Posts

Posted · Cura from source libArcus not found

Hello,

Has anyone run Cura from source on Ubuntu 17.10 (fresh install) I have hit a snag where cura_app.py can't find Arcus, I compiled libArcus following the instructions on the github

 

$ mkdir build && cd build$ cmake ..$ make# make install

 

Their is a Arcus.so file in /usr/local/lib/python3/dist-packages

 

Original exception was:Traceback (most recent call last):File "cura_app.py", line 54, in import Arcus #@UnusedImportModuleNotFoundError: No module named 'Arcus'

 

  • Link to post
    Share on other sites
    Posted · Cura from source libArcus not found

    I run Cura from source on Linux and have to use this little shell script (I install Cura under /opt/cura).

    #!/bin/sh
    PATH=/opt/cura/bin:$PATH PYTHONPATH=/opt/cura/lib/python3/dist-package /opt/cura/bin/cura $*
    

    This crap forum seems to have screwed the formatting of the code but I hope you get the idea.

  • Link to post
    Share on other sites
    Posted · Cura from source libArcus not found

    Hmm maybe I have done it wrong as I did not install cura I cloned the repos following Nallath guide he posted in one of the github issues.

    “Checkout Cura, Uranium, CuraEngine, LibArcus.

    Build LibArcus

    Build Cura engine

    Ensure Uranium is in your pythonpath.

    Run cura_app.py with python3

    If complaining about dependencies, install those with pip.

    That's pretty much how i recently installed my new laptop.”

    maybe this method does not work on Ubuntu :/

  • Link to post
    Share on other sites
    Posted · Cura from source libArcus not found

    There's a repo called cura-build-environment. I built and installed that and it provides all (or nearly all) of the dependencies required to build/run cura. It takes a while to build but I found this the most reliable way of building cura from source.

  • Link to post
    Share on other sites
    Posted · Cura from source libArcus not found

    I kept getting stuck with the cura-build-environment I tried googling on how to resolve it but most of the stuff I found did not work.

    make[3]: *** [getarch_2nd] Error 1

    gemv.c: In function ‘sgemv_’:

    gemv.c:248:41: error: ‘GEMM_MULTITHREAD_THRESHOLD’ undeclared (first use in this function); did you mean ‘GEMM_THREAD_TR’?

    if ( MNK <= (24.0 * 24.0 * (double) (GEMM_MULTITHREAD_THRESHOLD*GEMM_MULTITHREAD_THRESHOLD) ) )

    ^~~~~~~~~~~~~~~~~~~~~~~~~~

    GEMM_THREAD_TR

    gemv.c:248:41: note: each undeclared identifier is reported only once for each function it appears in

    Makefile:841: recipe for target 'sgemv.o' failed

    make[4]: *** [sgemv.o] Error 1

    make[4]: *** Waiting for unfinished jobs....

    Makefile:143: recipe for target 'libs' failed

    make[3]: *** [libs] Error 1

    CMakeFiles/OpenBLAS.dir/build.make:113: recipe for target 'OpenBLAS-prefix/src/OpenBLAS-stamp/OpenBLAS-build' failed

    make[2]: *** [OpenBLAS-prefix/src/OpenBLAS-stamp/OpenBLAS-build] Error 2

    CMakeFiles/Makefile2:640: recipe for target 'CMakeFiles/OpenBLAS.dir/all' failed

    make[1]: *** [CMakeFiles/OpenBLAS.dir/all] Error 2

    Makefile:83: recipe for target 'all' failed

    make: *** [all] Error 2

  • Link to post
    Share on other sites
    Posted · Cura from source libArcus not found

    Okay fixed that error by merging in https://github.com/Ultimaker/cura-build-environment/pull/20

    But now I'm getting this and have not been able to sort it out I tried installing setuptools using pip3 and installing python3-setuptools from the repos but nothing :/

    [ 5%] Built target Python

    [ 10%] Built target Sip

    [ 15%] Built target OpenBLAS

    [ 15%] Performing build step for 'NumPy'

    Running from numpy source directory.

    Traceback (most recent call last):

    File "setup.py", line 386, in

    setup_package()

    File "setup.py", line 363, in setup_package

    from setuptools import setup

    ImportError: No module named 'setuptools'

    CMakeFiles/NumPy.dir/build.make:113: recipe for target 'NumPy-prefix/src/NumPy-stamp/NumPy-build' failed

    make[2]: *** [NumPy-prefix/src/NumPy-stamp/NumPy-build] Error 1

    CMakeFiles/Makefile2:416: recipe for target 'CMakeFiles/NumPy.dir/all' failed

    make[1]: *** [CMakeFiles/NumPy.dir/all] Error 2

    Makefile:83: recipe for target 'all' failed

    make: *** [all] Error 2

  • 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
    • Our picks

      • Ultimaker turns 10: A look back
        Ultimaker is turning 10 years old and that means it is story telling time! We'll explore 2010-2014, traveling through the evolution of the business from the Protobox and Ultimaker Original, to the major leaps forward with the Ultimaker 2 and Ultimaker 3.
          • Like
        • 0 replies
      • Ultimaker Transformation Summit
        Visit our virtual showroom and learn more about the Ultimaker ecosystem!
        • 14 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    ×
    ×
    • Create New...