-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cura build from source: CMakePresets.json missing for pyarcus #14337
Comments
Hey @mjc-506, 😖 Sorry to hear you are stuck. I'm only a fledgling member of the Build From Source Club 👑
If you are stuck in any way, please reach out. We are happy to help out. |
Hi, Thanks for your response. I'm hoping to implement #5248 but it's not good making changes to the code if I can't compile it in the first case :) Once I can compile the 'stock' code, I intend to make the changes, make sure it compiles/works, and then a couple of PRs to Cura and CuraEngine. 1: [matt@mattop Cura]$ pip install conan --upgrade
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: conan in /home/matt/.local/lib/python3.10/site-packages (1.57.0)
Requirement already satisfied: pluginbase>=0.5 in /home/matt/.local/lib/python3.10/site-packages (from conan) (1.0.1)
Requirement already satisfied: bottle<0.13,>=0.12.8 in /home/matt/.local/lib/python3.10/site-packages (from conan) (0.12.23)
Requirement already satisfied: fasteners>=0.14.1 in /home/matt/.local/lib/python3.10/site-packages (from conan) (0.18)
Requirement already satisfied: PyYAML<=6.0,>=3.11 in /usr/lib/python3.10/site-packages (from conan) (6.0)
Requirement already satisfied: urllib3<1.27,>=1.26.6 in /usr/lib/python3.10/site-packages (from conan) (1.26.12)
Requirement already satisfied: python-dateutil<3,>=2.7.0 in /usr/lib/python3.10/site-packages (from conan) (2.8.2)
Requirement already satisfied: tqdm<5,>=4.28.1 in /home/matt/.local/lib/python3.10/site-packages (from conan) (4.64.1)
Requirement already satisfied: pygments<3.0,>=2.0 in /usr/lib/python3.10/site-packages (from conan) (2.14.0)
Requirement already satisfied: requests<3.0.0,>=2.25 in /usr/lib/python3.10/site-packages (from conan) (2.28.1)
Requirement already satisfied: patch-ng<1.18,>=1.17.4 in /home/matt/.local/lib/python3.10/site-packages (from conan) (1.17.4)
Requirement already satisfied: node-semver==0.6.1 in /home/matt/.local/lib/python3.10/site-packages (from conan) (0.6.1)
Requirement already satisfied: PyJWT<3.0.0,>=2.4.0 in /usr/lib/python3.10/site-packages (from conan) (2.6.0)
Requirement already satisfied: six<=1.16.0,>=1.10.0 in /usr/lib/python3.10/site-packages (from conan) (1.16.0)
Requirement already satisfied: colorama<0.5.0,>=0.3.3 in /usr/lib/python3.10/site-packages (from conan) (0.4.6)
Requirement already satisfied: Jinja2<4.0.0,>=3.0 in /usr/lib/python3.10/site-packages (from conan) (3.1.2)
Requirement already satisfied: distro<=1.7.0,>=1.0.2 in /home/matt/.local/lib/python3.10/site-packages (from conan) (1.7.0)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/lib/python3.10/site-packages (from Jinja2<4.0.0,>=3.0->conan) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.10/site-packages (from requests<3.0.0,>=2.25->conan) (3.4)
[matt@mattop Cura]$ So all good there? 2: Yup, conan cache cleared, no change unfortunately (log of attempted build following cache empty attached) 3: [matt@mattop Cura]$ conan config install https://github.com/Ultimaker/conan-config.git
Trying to clone repo: https://github.com/Ultimaker/conan-config.git
Repo cloned!
Defining remotes from remotes.txt
Copying file global.conf to /home/matt/.conan/.
Processing conan.conf
Copying file .gitignore to /home/matt/.conan/.
Skip README.md
Copying file VirtualPythonEnv.py to /home/matt/.conan/generators
Copying file GitHubActionsRunEnv.py to /home/matt/.conan/generators
Copying file PyCharmRunEnv.py to /home/matt/.conan/generators
Copying file GitHubActionsBuildEnv.py to /home/matt/.conan/generators
Copying file cura.jinja to /home/matt/.conan/profiles
Copying file cura_build.jinja to /home/matt/.conan/profiles
[matt@mattop Cura]$ Again, no change. 4: [matt@mattop Cura]$ conan profile new default --detect --force
Found gcc 12.2
Found clang 14.0
gcc>=5, using the major as version
************************* WARNING: GCC OLD ABI COMPATIBILITY ***********************
Conan detected a GCC version > 5 but has adjusted the 'compiler.libcxx' setting to
'libstdc++' for backwards compatibility.
Your compiler is likely using the new CXX11 ABI by default (libstdc++11).
If you want Conan to use the new ABI for the default profile, run:
$ conan profile update settings.compiler.libcxx=libstdc++11 default
Or edit '/home/matt/.conan/profiles/default' and set compiler.libcxx=libstdc++11
************************************************************************************
Profile created with detected settings: /home/matt/.conan/profiles/default
[matt@mattop Cura]$ I've tried with both libstdc++ and the new abi setting with no differences 5: Presume you mean [matt@mattop Cura]$ conan remote list
cura: https://ultimaker.jfrog.io/artifactory/api/conan/cura-internal [Verify SSL: True]
cura-ce: https://ultimaker.jfrog.io/artifactory/api/conan/cura-community [Verify SSL: True]
conan-center: https://center.conan.io [Verify SSL: True]
[matt@mattop Cura]$ Note this does include [matt@mattop Cura]$ conan remote remove cura
[matt@mattop Cura]$ but the build then fails with [matt@mattop Cura]$ conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++
compiler.version=12
os=Linux
os_build=Linux
curaengine:compiler.cppstd=20
umspatial*:compiler.cppstd=20
[options]
cura:devtools=True
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++
compiler.version=12
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
umbase/0.1.7@ultimaker/stable: Not found in local cache, looking in remotes...
umbase/0.1.7@ultimaker/stable: Trying with 'cura-ce'...
Downloading conanmanifest.txt completed [0.06k]
Downloading conanfile.py completed [1.06k]
umbase/0.1.7@ultimaker/stable: Downloaded recipe revision 86ee69dd0b8ae26b5f95f511f50b85f6
curaengine/latest@ultimaker/testing: Not found in local cache, looking in remotes...
curaengine/latest@ultimaker/testing: Trying with 'cura-ce'...
Downloading conanmanifest.txt completed [0.06k]
Downloading conanfile.py completed [0.15k]
curaengine/latest@ultimaker/testing: Downloaded recipe revision 75df6dd7a35f3a6e77d2cce20d36b6e1
uranium/latest@ultimaker/testing: Not found in local cache, looking in remotes...
uranium/latest@ultimaker/testing: Trying with 'cura-ce'...
Downloading conanmanifest.txt completed [0.06k]
Downloading conanfile.py completed [0.15k]
uranium/latest@ultimaker/testing: Downloaded recipe revision e384df30d99863acdf2685d88119af96
fdm_materials/latest@ultimaker/testing: Not found in local cache, looking in remotes...
fdm_materials/latest@ultimaker/testing: Trying with 'cura-ce'...
Downloading conanmanifest.txt completed [0.06k]
Downloading conanfile.py completed [0.16k]
fdm_materials/latest@ultimaker/testing: Downloaded recipe revision 4459d79366bda9aaee9e4bef00bf0346
cura_binary_data/latest@ultimaker/testing: Not found in local cache, looking in remotes...
cura_binary_data/latest@ultimaker/testing: Trying with 'cura-ce'...
Downloading conanmanifest.txt completed [0.06k]
Downloading conanfile.py completed [0.16k]
cura_binary_data/latest@ultimaker/testing: Downloaded recipe revision 9dd7d8d0f8d8cd9f75927a79f72cc8fc
pyarcus/5.2.2: Not found in local cache, looking in remotes...
pyarcus/5.2.2: Trying with 'cura-ce'...
pyarcus/5.2.2: Trying with 'conan-center'...
ERROR: Failed requirement 'pyarcus/5.2.2' from 'conanfile.py (cura/5.3.0-alpha)'
ERROR: Unable to find 'pyarcus/5.2.2' in remotes
[matt@mattop Cura]$ I also note that Here's a log of the build, following a cleared cache, fresh download of the conan profile (but not removing |
Hi! :) I'm having the same issue, did you manage to solve it? |
Hey, I had one of the Devs take a look. Can you try the following things? Can you make sure you have specifically Conan version 1.56.0? Please check if the cura remote is specified with the following command: If you only see the |
Thanks @MariMakes Happy to close if @gconcha1 's error is not related. But worth updating the build instructions? |
Hi! You're free to close, I finally did it. It worked. Thanks @MariMakes and @mjc-506 . |
Ah, so glad to hear ❤️ Good luck 💪 I've updated the documentation and we have a ticket to expand support to the newer Conan versions. |
To me a correct command for pip is |
Application Version
5.3.0 (git 7ccb361)
Platform
Linux
Printer
Reproduction steps
Following the steps to build Cura from source, but after issuing the
conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv
command, the build fails while building pyarcus, reporting that CMakePresets.json is not found.I've tried clearing the conan cache and redownloading from github, but no success. I don't know conan well enough to troubleshoot further!
Actual results
Log as follows: (incomplete unfortuantely, not enough scrollback! I'll redirect to a logfile and attach if useful?)
----Running------
These bindings will be built: pyArcus.
Generating the pyArcus bindings...
Generating the pyArcus .pyi file...
The project has been built.
pyarcus/5.2.2: Aggregating env generators
pyarcus/5.2.2: Calling build()
pyarcus/5.2.2:
pyarcus/5.2.2: ERROR: Package 'f2ef1d95f57a30d1552d898af2894cc9514968a1' build failed
pyarcus/5.2.2: WARN: Build folder /home/matt/.conan/data/pyarcus/5.2.2///build/f2ef1d95f57a30d1552d898af2894cc9514968a1/build/Release
ERROR: pyarcus/5.2.2: Error in build() method, line 103
cmake = CMake(self)
FileNotFoundError: [Errno 2] No such file or directory: '/home/matt/.conan/data/pyarcus/5.2.2///build/f2ef1d95f57a30d1552d898af2894cc9514968a1/build/Release/generators/CMakePresets.json'
[matt@mattop Cura]$ ```
Expected results
I don't get to activating the virtual environment or running Cura.
Checklist of files to include
Additional information & file uploads
N/A
The text was updated successfully, but these errors were encountered: