Jump to content

Cura from source libArcus not found


ChrisRiddell

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

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...