Open GitJakobHub opened 3 months ago
try it with the latest Conan 1 version, which is 1.64.0
Hi jellespijker,
thank you for your response! I tried it with version 1.64.0. I got the same error.
After some research I found the following link: https://github.com/Ultimaker/Cura/issues/15018 I did the step 3 of MariMakes proposal:
- Can you make sure you have the latest config with this command? conan config install https://github.com/Ultimaker/conan-config.git
After that i repeated the steps of the "How to build" guide. It started to actually build something, but then it ran into this error:
cpython/3.10.4: ERROR: Package '1e1dce5c5f980cc9662f9422f167ceffc2aa5e4e' build failed
cpython/3.10.4: WARN: Build folder C:\.conan\c82ca1\1
ERROR: cpython/3.10.4: Error in build() method, line 425
self._msvc_build()
while calling '_msvc_build', line 394
msbuild = MSBuild(self)
ConanException: Using the wrong 'MSBuild' helper. To use MSBuildDeps, MSBuildToolchain you should use 'from conan.tools.microsoft import MSBuild'. Set environment variable CONAN_DISABLE_STRICT_MODE=1 to override this check (should only be used to build old packages).
I opened the conan.config file in
I expected the error to disappear, but nothing changed. Any idea what the issue might be? Maybe this setting needs to be written somewhere or somehow else? Or is there a bigger problem from which this one stems from?
Steps to reproduce:
python -m venv pyarcus_env pyarcus_env\Scripts\activate
pip install conan==1.64.0 conan config install https://github.com/ultimaker/conan-config.git conan profile new default --detect --force conan remote remove cura git clone https://github.com/Ultimaker/pyArcus.git cd pyArcus
conan config install https://github.com/ultimaker/conan-config.git conan profile new default --detect --force
conan install . --build=missing --update
This is the full output i get from: conan install . --build=missing --update
try it with adding the --require-override=cpython/3.10.4@ultimaker/stable
it looks like the conan file uses the CPython from the CCI not our special version.
I changed the command to: conan install . --build=missing --update --require-override=cpython/3.10.4@ultimaker/stable
but still get the ConanException error - The only difference is the package which throws that error. It is not '1e1dce5c5f980cc9662f9422f167ceffc2aa5e4e' but package 'ab5f3f7cb84662b7c70bba602ca42a5ef97dae8e'
I opened the conan.config file in /.conan and added under [general]: CONAN_DISABLE_STRICT_MODE = 1 (I also tried: disable_strict_mode = 1)
The conan.config file i changed is in C:\Users\Jakob.conan - that should be correct, right?
cpython/3.10.4@ultimaker/stable: ERROR: Package 'ab5f3f7cb84662b7c70bba602ca42a5ef97dae8e' build failed
cpython/3.10.4@ultimaker/stable: WARN: Build folder C:\.conan\c2ee76\1
ERROR: cpython/3.10.4@ultimaker/stable: Error in build() method, line 425
self._msvc_build()
while calling '_msvc_build', line 394
msbuild = MSBuild(self)
ConanException: Using the wrong 'MSBuild' helper. To use MSBuildDeps, MSBuildToolchain you should use 'from conan.tools.microsoft import MSBuild'. Set environment variable CONAN_DISABLE_STRICT_MODE=1 to override this check (should only be used to build old packages).
Here is the full output after the command:
I was unsure about the CONAN_DISABLE_STRICT_MODE = 1 variable which I had only changed inside the conan.config file. I changed it in my system variables on my computer aswell and now the installation went a bit further. But again at the same command I got a: ConanException: Error 1 while executing "sip-build"
conanfile.py (pyarcus/5.4.0-alpha.0+source): Calling:
> "sip-build"
----Running------
> "sip-build"
-----------------
sip-build: pyproject.toml: 'tool.sip.project.compile': is not a supported option
ERROR: conanfile.py (pyarcus/5.4.0-alpha.0+source): Error in generate() method, line 133
sip.build()
while calling 'build', line 34
self._conanfile.run(cmd)
ConanException: Error 1 while executing "sip-build"
Here is the full output:
Solved. The solution was to not send the command "conan remote remove cura" and to install sip manually.
python -m venv pyarcus_env pyarcus_env\Scripts\activate
pip install conan==1.64.1 conan config install https://github.com/ultimaker/conan-config.git conan profile new default --detect --force
git clone https://github.com/Ultimaker/pyArcus.git cd pyArcus
pip install sip conan install . --build=missing --update conan build .
Persistence wins, congrats and good job.
question I noticed the following in your log
Die Plattform 'ARM64
Are you compiling for Windows ARM?
Hi, I am trying to set up pyArcus. I get an error message in step 3 of the “How to build” guide.
So it seems like i need at least conan 1.58.0 to do the installation properly. But this is weird, since conan 1.56 is a requirement for the installation. But anyway i tried it and at the same point I get now another error:
I am confused what exactly is going wrong there. Furthermore I don't have much practice in installing libraries in a way like it is described here. I just opened a new folder, navigated to it via my terminal and startet to enter the commands. Beforehand I made sure to install all requirements:
I have installed: Python 3.10.9 ninja 1.12.1 Visual Studio 2022 (nmake should be installed in there aswell (?) ) cmake 3.30.0 sip 6.5.0 conan 1.58 / 1.56
I am glad for every hint or advice i get!