Skip to content
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

Installation Issues - Wrong Conan Version? #10

Open
GitJakobHub opened this issue Jul 19, 2024 · 7 comments
Open

Installation Issues - Wrong Conan Version? #10

GitJakobHub opened this issue Jul 19, 2024 · 7 comments

Comments

@GitJakobHub
Copy link

Hi, I am trying to set up pyArcus. I get an error message in step 3 of the “How to build” guide.


C:\…\pyArcus\pyArcus>conan install . --build=missing --update
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
curaengine:compiler.cppstd=20
curaengine*:compiler.cppstd=20
curaengine_plugin_infill_generate:compiler.cppstd=20
curaengine_plugin_gradual_flow:compiler.cppstd=20
curaengine_grpc_definitions:compiler.cppstd=20
scripta:compiler.cppstd=20
umspatial*:compiler.cppstd=20
dulcificum:compiler.cppstd=20
cura_settings:compiler.cppstd=20
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False

ERROR: Error loading conanfile at 'C:\…\pyArcus\pyArcus\[[conanfile.py](http://conanfile.py/)](http://conanfile.py/)': Current Conan version (1.56.0) does not satisfy the defined one (>=1.58.0).


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:


C:\…\pyArcus>conan install . --build=missing --update
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
curaengine:compiler.cppstd=20
curaengine*:compiler.cppstd=20
curaengine_plugin_infill_generate:compiler.cppstd=20
curaengine_plugin_gradual_flow:compiler.cppstd=20
curaengine_grpc_definitions:compiler.cppstd=20
scripta:compiler.cppstd=20
umspatial*:compiler.cppstd=20
dulcificum:compiler.cppstd=20
cura_settings:compiler.cppstd=20
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False

ERROR: Error loading conanfile at 'C:\…\pyArcus\[[conanfile.py](http://conanfile.py/)](http://conanfile.py/)': Version range '>=0.1.7' from requirement 'pyprojecttoolchain/[>=0.1.7]@ultimaker/stable' required by 'py_require' could not be resolved in local cache

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!

@jellespijker
Copy link
Member

try it with the latest Conan 1 version, which is 1.64.0

@GitJakobHub
Copy link
Author

GitJakobHub commented Jul 22, 2024

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: Ultimaker/Cura#15018
I did the step 3 of MariMakes proposal:

  1. 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 /.conan and added under [general]:
CONAN_DISABLE_STRICT_MODE = 1
(I also tried: disable_strict_mode = 1)

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:

#creating python environment
python -m venv pyarcus_env
pyarcus_env\Scripts\activate

#Follow installation guide with conan 1.64.0
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

#suggestion from MariMakes
conan config install https://github.com/ultimaker/conan-config.git
conan profile new default --detect --force

#command which trows error:
conan install . --build=missing --update

This is the full output i get from: conan install . --build=missing --update

``` (pyarcus_env) C:\...\pyArcus>conan install . --build=missing --update WARN: *** Conan 1 is legacy and on a deprecation path *** WARN: *** Please upgrade to Conan 2 *** Configuration (profile_host): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.cppstd=17 compiler.runtime=MD compiler.version=17 os=Windows os_build=Windows curaengine:compiler.cppstd=20 curaengine*:compiler.cppstd=20 curaengine_plugin_infill_generate:compiler.cppstd=20 curaengine_plugin_gradual_flow:compiler.cppstd=20 curaengine_grpc_definitions:compiler.cppstd=20 scripta:compiler.cppstd=20 umspatial*:compiler.cppstd=20 dulcificum:compiler.cppstd=20 cura_settings:compiler.cppstd=20 [options] [build_requires] [env] [conf] tools.cmake.cmaketoolchain:generator=Ninja tools.env.virtualenv:auto_use=True tools.gnu:define_libcxx11_abi=True tools.build:skip_test=False

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False

WARN: protobuf/3.21.9: requirement zlib/[>=1.2.11 <2] overridden by arcus/5.3.1 to zlib/1.2.12
WARN: cpython/3.10.4: requirement zlib/1.2.11 overridden by pyarcus/5.4.0-alpha.0+source to zlib/1.2.12
WARN: tcl/8.6.10: requirement zlib/[>=1.2.11 <2] overridden by tk/8.6.10 to zlib/1.2.12
xz_utils/5.2.5: WARN: Can't update, no package in remote
zlib/1.2.12: WARN: Can't update, no package in remote
protobuf/3.21.9: WARN: Can't update, no package in remote
tcl/8.6.10: WARN: Can't update, no package in remote
arcus/5.3.1: WARN: Can't update, no package in remote
tk/8.6.10: WARN: Can't update, no package in remote
cpython/3.10.4: WARN: Package binary is corrupted, removing: 1e1dce5c5f980cc9662f9422f167ceffc2aa5e4e
Version ranges solved
pyprojecttoolchain/@ultimaker/stable versions found in 'cura' remote
Version range '>=0.1.7' required by 'py_require' resolved to 'pyprojecttoolchain/0.1.7@ultimaker/stable' in remote 'cura'
sipbuildtool/
@ultimaker/stable versions found in 'cura' remote
Version range '>=0.2.4' required by 'py_require' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in remote 'cura'
standardprojectsettings/*@ultimaker/stable versions found in 'cura' remote
Version range '>=0.1.0' required by 'conanfile.py (pyarcus/5.4.0-alpha.0+source)' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in remote 'cura'
Version range '>=0.2.4' required by 'conanfile.py (pyarcus/5.4.0-alpha.0+source)' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in remote 'cura'

conanfile.py (pyarcus/5.4.0-alpha.0+source): Installing package
Requirements
arcus/5.3.1 from 'cura' - Cache
bzip2/1.0.8 from 'cura' - Cache
cpython/3.10.4 from 'cura' - Cache
expat/2.4.1 from 'cura' - Cache
libffi/3.2.1 from 'cura' - Cache
mpdecimal/2.5.0 from 'cura' - Cache
openssl/1.1.1l from 'cura' - Cache
protobuf/3.21.9 from 'cura' - Cache
sqlite3/3.36.0 from 'cura' - Cache
tcl/8.6.10 from 'cura' - Cache
tk/8.6.10 from 'cura' - Cache
xz_utils/5.2.5 from 'cura' - Cache
zlib/1.2.12 from 'cura' - Cache
Python requires
sipbuildtool/0.2.4@ultimaker/stable
pyprojecttoolchain/0.1.7@ultimaker/stable
Packages
arcus/5.3.1:e002014d36729974138cfdc145f7b3093abadf6c - Cache
bzip2/1.0.8:53b5fd22ba061620078deefdae9a437c5f693201 - Cache
cpython/3.10.4:1e1dce5c5f980cc9662f9422f167ceffc2aa5e4e - Build
expat/2.4.1:8e589e066a19f700666be77ed94ff8e8bc88ee10 - Cache
libffi/3.2.1:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
mpdecimal/2.5.0:5c8fc3ef602a8e57d81400f2865131af6a719c3d - Cache
openssl/1.1.1l:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
protobuf/3.21.9:25c559d9bd3e56ee56fea11c9082b7e32838e206 - Cache
sqlite3/3.36.0:d4c90a44e87a0129d6c89e58d1337c25a5bec2b4 - Cache
tcl/8.6.10:fcff1a7682b466eb6f2504a0d9ba2400f494d9a7 - Cache
tk/8.6.10:604976367e9e090940576d923c0209d158388d81 - Cache
xz_utils/5.2.5:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
zlib/1.2.12:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
Build requirements
sipbuildtool/0.2.4@ultimaker/stable from 'cura' - Cache
standardprojectsettings/0.1.1@ultimaker/stable from 'cura' - Cache
Build requirements packages
sipbuildtool/0.2.4@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
standardprojectsettings/0.1.1@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
expat/2.4.1: Already installed!
libffi/3.2.1: Already installed!
mpdecimal/2.5.0: Already installed!
openssl/1.1.1l: Already installed!
sipbuildtool/0.2.4@ultimaker/stable: Already installed!
sqlite3/3.36.0: Already installed!
standardprojectsettings/0.1.1@ultimaker/stable: Already installed!
xz_utils/5.2.5: Already installed!
zlib/1.2.12: Already installed!
protobuf/3.21.9: Already installed!
tcl/8.6.10: Already installed!
arcus/5.3.1: Already installed!
tk/8.6.10: Already installed!
tk/8.6.10: Setting TK_LIBRARY environment variable: C:/.conan/22c471/1/lib/tk8.6
tk/8.6.10: Setting TK_ROOT environment variable: C:/.conan/22c471/1
cpython/3.10.4: WARN: Build folder is dirty, removing it: C:.conan\c82ca1\1
cpython/3.10.4: Copying sources to build folder
cpython/3.10.4: Building your package in C:.conan\c82ca1\1
cpython/3.10.4: Generator 'MSBuildDeps' calling 'generate()'
cpython/3.10.4: Generator txt created conanbuildinfo.txt
cpython/3.10.4: Aggregating env generators
cpython/3.10.4: Calling build()
cpython/3.10.4: Patching runtime
cpython/3.10.4:
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).

</details>



@jellespijker
Copy link
Member

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.

@GitJakobHub
Copy link
Author

GitJakobHub commented Jul 23, 2024

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:

``` (pyarcus_env) C:\Users\Jakob\Desktop\AutomateCura\ArcusServer\pyArcus>conan install . --build=missing --update --require-override=cpython/3.10.4@ultimaker/stable WARN: *** Conan 1 is legacy and on a deprecation path *** WARN: *** Please upgrade to Conan 2 *** Configuration (profile_host): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.cppstd=17 compiler.runtime=MD compiler.version=17 os=Windows os_build=Windows curaengine:compiler.cppstd=20 curaengine*:compiler.cppstd=20 curaengine_plugin_infill_generate:compiler.cppstd=20 curaengine_plugin_gradual_flow:compiler.cppstd=20 curaengine_grpc_definitions:compiler.cppstd=20 scripta:compiler.cppstd=20 umspatial*:compiler.cppstd=20 dulcificum:compiler.cppstd=20 cura_settings:compiler.cppstd=20 [options] [build_requires] [env] [conf] tools.cmake.cmaketoolchain:generator=Ninja tools.env.virtualenv:auto_use=True tools.gnu:define_libcxx11_abi=True tools.build:skip_test=False

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False

WARN: cpython/3.10.4@ultimaker/stable: requirement zlib/1.2.11 overridden by pyarcus/5.4.0-alpha.0+source to zlib/1.2.12
WARN: openssl/3.2.0: requirement zlib/[>=1.2.11 <2] overridden by cpython/3.10.4@ultimaker/stable to zlib/1.2.12
WARN: tcl/8.6.10: requirement zlib/[>=1.2.11 <2] overridden by tk/8.6.10 to zlib/1.2.12
WARN: protobuf/3.21.9: requirement zlib/[>=1.2.11 <2] overridden by arcus/5.3.1 to zlib/1.2.12
bzip2/1.0.8: WARN: Can't update, no remote defined
expat/2.4.1: WARN: Can't update, no remote defined
libffi/3.2.1: WARN: Can't update, no remote defined
mpdecimal/2.5.0: WARN: Can't update, no remote defined
sqlite3/3.36.0: WARN: Can't update, no remote defined
xz_utils/5.2.5: WARN: Can't update, no remote defined
zlib/1.2.12: WARN: Can't update, no remote defined
openssl/3.2.0: WARN: Can't update, no remote defined
protobuf/3.21.9: WARN: Can't update, no remote defined
tcl/8.6.10: WARN: Can't update, no remote defined
arcus/5.3.1: WARN: Can't update, no remote defined
tk/8.6.10: WARN: Can't update, no remote defined
cpython/3.10.4@ultimaker/stable: WARN: Package binary is corrupted, removing: ab5f3f7cb84662b7c70bba602ca42a5ef97dae8e
sipbuildtool/0.2.4@ultimaker/stable: WARN: Can't update, no remote defined
standardprojectsettings/0.1.1@ultimaker/stable: WARN: Can't update, no remote defined
Version ranges solved
%s versions not found in remotes
Version range '>=0.1.7' required by 'py_require' resolved to 'pyprojecttoolchain/0.1.7@ultimaker/stable' in local cache
%s versions not found in remotes
Version range '>=0.2.4' required by 'py_require' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in local cache
%s versions not found in remotes
Version range '>=0.1.0' required by 'conanfile.py (pyarcus/5.4.0-alpha.0+source)' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in local cache
Version range '>=0.2.4' required by 'conanfile.py (pyarcus/5.4.0-alpha.0+source)' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in local cache

conanfile.py (pyarcus/5.4.0-alpha.0+source): Installing package
Requirements
arcus/5.3.1 from local cache - No remote
bzip2/1.0.8 from local cache - No remote
cpython/3.10.4@ultimaker/stable from local cache - No remote
expat/2.4.1 from local cache - No remote
libffi/3.2.1 from local cache - No remote
mpdecimal/2.5.0 from local cache - No remote
openssl/3.2.0 from local cache - No remote
protobuf/3.21.9 from local cache - No remote
sqlite3/3.36.0 from local cache - No remote
tcl/8.6.10 from local cache - No remote
tk/8.6.10 from local cache - No remote
xz_utils/5.2.5 from local cache - No remote
zlib/1.2.12 from local cache - No remote
Python requires
sipbuildtool/0.2.4@ultimaker/stable
pyprojecttoolchain/0.1.7@ultimaker/stable
Packages
arcus/5.3.1:e002014d36729974138cfdc145f7b3093abadf6c - Cache
bzip2/1.0.8:53b5fd22ba061620078deefdae9a437c5f693201 - Cache
cpython/3.10.4@ultimaker/stable:ab5f3f7cb84662b7c70bba602ca42a5ef97dae8e - Build
expat/2.4.1:8e589e066a19f700666be77ed94ff8e8bc88ee10 - Cache
libffi/3.2.1:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
mpdecimal/2.5.0:5c8fc3ef602a8e57d81400f2865131af6a719c3d - Cache
openssl/3.2.0:d2b4b9fa02b3c8f957ee4b7c4e18b5bba1df1396 - Cache
protobuf/3.21.9:25c559d9bd3e56ee56fea11c9082b7e32838e206 - Cache
sqlite3/3.36.0:d4c90a44e87a0129d6c89e58d1337c25a5bec2b4 - Cache
tcl/8.6.10:fcff1a7682b466eb6f2504a0d9ba2400f494d9a7 - Cache
tk/8.6.10:604976367e9e090940576d923c0209d158388d81 - Cache
xz_utils/5.2.5:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
zlib/1.2.12:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
Build requirements
sipbuildtool/0.2.4@ultimaker/stable from local cache - No remote
standardprojectsettings/0.1.1@ultimaker/stable from local cache - No remote
Build requirements packages
sipbuildtool/0.2.4@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
standardprojectsettings/0.1.1@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
expat/2.4.1: Already installed!
libffi/3.2.1: Already installed!
mpdecimal/2.5.0: Already installed!
sipbuildtool/0.2.4@ultimaker/stable: Already installed!
sqlite3/3.36.0: Already installed!
standardprojectsettings/0.1.1@ultimaker/stable: Already installed!
xz_utils/5.2.5: Already installed!
zlib/1.2.12: Already installed!
openssl/3.2.0: Already installed!
protobuf/3.21.9: Already installed!
tcl/8.6.10: Already installed!
arcus/5.3.1: Already installed!
tk/8.6.10: Already installed!
tk/8.6.10: Setting TK_LIBRARY environment variable: C:/.conan/22c471/1/lib/tk8.6
tk/8.6.10: Setting TK_ROOT environment variable: C:/.conan/22c471/1
cpython/3.10.4@ultimaker/stable: WARN: Build folder is dirty, removing it: C:.conan\c2ee76\1
cpython/3.10.4@ultimaker/stable: Copying sources to build folder
cpython/3.10.4@ultimaker/stable: Building your package in C:.conan\c2ee76\1
cpython/3.10.4@ultimaker/stable: Generator 'MSBuildDeps' calling 'generate()'
cpython/3.10.4@ultimaker/stable: Generator txt created conanbuildinfo.txt
cpython/3.10.4@ultimaker/stable: Aggregating env generators
cpython/3.10.4@ultimaker/stable: Calling build()
cpython/3.10.4@ultimaker/stable: Patching runtime
cpython/3.10.4@ultimaker/stable:
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).

</details>

@GitJakobHub
Copy link
Author

GitJakobHub commented Jul 24, 2024

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:

(pyarcus_env) C:\Users\Jakob\Desktop\AutomateCura\ArcusServer\pyArcus>conan install . --build=missing --update --require-override=cpython/3.10.4@ultimaker/stable
WARN: *** Conan 1 is legacy and on a deprecation path ***
WARN: *** Please upgrade to Conan 2 ***
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
curaengine:compiler.cppstd=20
curaengine*:compiler.cppstd=20
curaengine_plugin_infill_generate:compiler.cppstd=20
curaengine_plugin_gradual_flow:compiler.cppstd=20
curaengine_grpc_definitions:compiler.cppstd=20
scripta:compiler.cppstd=20
umspatial*:compiler.cppstd=20
dulcificum:compiler.cppstd=20
cura_settings:compiler.cppstd=20
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False

WARN: cpython/3.10.4@ultimaker/stable: requirement zlib/1.2.11 overridden by pyarcus/5.4.0-alpha.0+source to zlib/1.2.12
WARN: openssl/3.2.0: requirement zlib/[>=1.2.11 <2] overridden by cpython/3.10.4@ultimaker/stable to zlib/1.2.12
WARN: tcl/8.6.10: requirement zlib/[>=1.2.11 <2] overridden by tk/8.6.10 to zlib/1.2.12
WARN: protobuf/3.21.9: requirement zlib/[>=1.2.11 <2] overridden by arcus/5.3.1 to zlib/1.2.12
bzip2/1.0.8: WARN: Can't update, no remote defined
expat/2.4.1: WARN: Can't update, no remote defined
libffi/3.2.1: WARN: Can't update, no remote defined
mpdecimal/2.5.0: WARN: Can't update, no remote defined
sqlite3/3.36.0: WARN: Can't update, no remote defined
xz_utils/5.2.5: WARN: Can't update, no remote defined
zlib/1.2.12: WARN: Can't update, no remote defined
openssl/3.2.0: WARN: Can't update, no remote defined
protobuf/3.21.9: WARN: Can't update, no remote defined
tcl/8.6.10: WARN: Can't update, no remote defined
arcus/5.3.1: WARN: Can't update, no remote defined
tk/8.6.10: WARN: Can't update, no remote defined
cpython/3.10.4@ultimaker/stable: WARN: Can't update, no remote defined
sipbuildtool/0.2.4@ultimaker/stable: WARN: Can't update, no remote defined
standardprojectsettings/0.1.1@ultimaker/stable: WARN: Can't update, no remote defined
Version ranges solved
    %s versions not found in remotes
    Version range '>=0.1.7' required by 'py_require' resolved to 'pyprojecttoolchain/0.1.7@ultimaker/stable' in local cache
    %s versions not found in remotes
    Version range '>=0.2.4' required by 'py_require' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in local cache
    %s versions not found in remotes
    Version range '>=0.1.0' required by 'conanfile.py (pyarcus/5.4.0-alpha.0+source)' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in local cache
    Version range '>=0.2.4' required by 'conanfile.py (pyarcus/5.4.0-alpha.0+source)' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in local cache

conanfile.py (pyarcus/5.4.0-alpha.0+source): Installing package
Requirements
    arcus/5.3.1 from local cache - No remote
    bzip2/1.0.8 from local cache - No remote
    cpython/3.10.4@ultimaker/stable from local cache - No remote
    expat/2.4.1 from local cache - No remote
    libffi/3.2.1 from local cache - No remote
    mpdecimal/2.5.0 from local cache - No remote
    openssl/3.2.0 from local cache - No remote
    protobuf/3.21.9 from local cache - No remote
    sqlite3/3.36.0 from local cache - No remote
    tcl/8.6.10 from local cache - No remote
    tk/8.6.10 from local cache - No remote
    xz_utils/5.2.5 from local cache - No remote
    zlib/1.2.12 from local cache - No remote
Python requires
    sipbuildtool/0.2.4@ultimaker/stable
    pyprojecttoolchain/0.1.7@ultimaker/stable
Packages
    arcus/5.3.1:e002014d36729974138cfdc145f7b3093abadf6c - Cache
    bzip2/1.0.8:53b5fd22ba061620078deefdae9a437c5f693201 - Cache
    cpython/3.10.4@ultimaker/stable:ab5f3f7cb84662b7c70bba602ca42a5ef97dae8e - Cache
    expat/2.4.1:8e589e066a19f700666be77ed94ff8e8bc88ee10 - Cache
    libffi/3.2.1:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
    mpdecimal/2.5.0:5c8fc3ef602a8e57d81400f2865131af6a719c3d - Cache
    openssl/3.2.0:d2b4b9fa02b3c8f957ee4b7c4e18b5bba1df1396 - Cache
    protobuf/3.21.9:25c559d9bd3e56ee56fea11c9082b7e32838e206 - Cache
    sqlite3/3.36.0:d4c90a44e87a0129d6c89e58d1337c25a5bec2b4 - Cache
    tcl/8.6.10:fcff1a7682b466eb6f2504a0d9ba2400f494d9a7 - Cache
    tk/8.6.10:604976367e9e090940576d923c0209d158388d81 - Cache
    xz_utils/5.2.5:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
    zlib/1.2.12:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
Build requirements
    sipbuildtool/0.2.4@ultimaker/stable from local cache - No remote
    standardprojectsettings/0.1.1@ultimaker/stable from local cache - No remote
Build requirements packages
    sipbuildtool/0.2.4@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    standardprojectsettings/0.1.1@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
expat/2.4.1: Already installed!
libffi/3.2.1: Already installed!
mpdecimal/2.5.0: Already installed!
sipbuildtool/0.2.4@ultimaker/stable: Already installed!
sqlite3/3.36.0: Already installed!
standardprojectsettings/0.1.1@ultimaker/stable: Already installed!
xz_utils/5.2.5: Already installed!
zlib/1.2.12: Already installed!
openssl/3.2.0: Already installed!
protobuf/3.21.9: Already installed!
tcl/8.6.10: Already installed!
arcus/5.3.1: Already installed!
tk/8.6.10: Already installed!
tk/8.6.10: Setting TK_LIBRARY environment variable: C:/.conan/22c471/1/lib/tk8.6
tk/8.6.10: Setting TK_ROOT environment variable: C:/.conan/22c471/1
cpython/3.10.4@ultimaker/stable: Already installed!
cpython/3.10.4@ultimaker/stable: Appending PATH environment variable: C:\.conan\6f92c0\1\bin
cpython/3.10.4@ultimaker/stable: Setting PYTHON environment variable: C:\.conan\6f92c0\1\bin\python.exe
cpython/3.10.4@ultimaker/stable: Setting PYTHONHOME environment variable: C:\.conan\6f92c0\1\bin
cpython/3.10.4@ultimaker/stable: Setting PYTHON_ROOT environment variable: C:\.conan\6f92c0\1
conanfile.py (pyarcus/5.4.0-alpha.0+source): Applying build-requirement: standardprojectsettings/0.1.1@ultimaker/stable
conanfile.py (pyarcus/5.4.0-alpha.0+source): Applying build-requirement: sipbuildtool/0.2.4@ultimaker/stable
conanfile.py (pyarcus/5.4.0-alpha.0+source): Generator 'VirtualRunEnv' calling 'generate()'
conanfile.py (pyarcus/5.4.0-alpha.0+source): Generator 'VirtualBuildEnv' calling 'generate()'
conanfile.py (pyarcus/5.4.0-alpha.0+source): Generator txt created conanbuildinfo.txt
conanfile.py (pyarcus/5.4.0-alpha.0+source): Generator 'CMakeDeps' calling 'generate()'
conanfile.py (pyarcus/5.4.0-alpha.0+source): Calling generate()
['\n[build-system]\nrequires = ["sip >=6, <7", "setuptools>=40.8.0", "wheel"]\nbuild-backend = "sipbuild.api"', '\n[tool.sip.metadata]\nname = "pyArcus"\nversion = "5.4.0a0"\nsummary = "Communication library between internal components for Ultimaker software"\nhome-page = "https://github.com/Ultimaker/pyArcus"\nauthor = "Ultimaker B.V."\nlicense = "LGPL-3.0"\ndescription-file = "README.md"\nrequires-python = ">=3.10.4"', '\n[tool.sip.project]\ncompile = false\nsip-files-dir = "python"\nbuild-dir = "C:/Users/Jakob/Desktop/AutomateCura/ArcusServer/pyArcus/build/Release/sip"\ntarget-dir = "C:/Users/Jakob/Desktop/AutomateCura/ArcusServer/pyArcus/build/Release/site-packages"\npy-include-dir = "C:/.conan/6f92c0/1/bin/include"\npy-major-version = 3\npy-minor-version = 10', "\n[tool.sip.bindings.pyArcus]\nexceptions = true\nrelease-gil = true\nlibraries = ['python310', 'Arcus', 'libssl', 'libcrypto', 'libexpatMD', 'libffi', 'libmpdec++-2.5.0', 'libmpdec-2.5.0', 'bz2', 'sqlite3', 'tk86tsx', 'tkstub86', 'lzma', 'libprotoc', 'libprotobuf', 'tcl86tsx', 'tcldde14sx', 'tclreg13sx', 'tclstub86', 'zlib']\nlibrary-dirs = ['C:/.conan/6f92c0/1/bin/libs', 'C:/.conan/6412bc/1/lib', 'C:/.conan/a1bdb8/1/lib', 'C:/.conan/cf982c/1/lib', 'C:/.conan/5b2a2c/1/lib', 'C:/.conan/f4d7b9/1/lib', 'C:/.conan/9688cf/1/lib', 'C:/.conan/fa0882/1/lib', 'C:/.conan/22c471/1/lib', 'C:/.conan/3c79d5/1/lib', 'C:/.conan/875b46/1/lib', 'C:/.conan/0f12e2/1/lib', 'C:/.conan/d9ec26/1/lib']\ninclude-dirs = ['C:/.conan/6f92c0/1/bin/include', 'C:/.conan/6412bc/1/include', 'C:/.conan/a1bdb8/1/include', 'C:/.conan/cf982c/1/include', 'C:/.conan/5b2a2c/1/include', 'C:/.conan/f4d7b9/1/include', 'C:/.conan/9688cf/1/include', 'C:/.conan/fa0882/1/include', 'C:/.conan/22c471/1/include', 'C:/.conan/3c79d5/1/include', 'C:/.conan/875b46/1/include', 'C:/.conan/0f12e2/1/include', 'C:/.conan/d9ec26/1/include', 'include']\npep484-pyi = true\nstatic = false\ndebug = false", "\nheaders = ['PythonMessage.h']\nsources = ['src/PythonMessage.cpp']", "\nextra-compile-args = ['/std:c++17', '-MD', '-O2', '-Ob2']\nextra-link-args = []"]
conanfile.py (pyarcus/5.4.0-alpha.0+source): Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release'
conanfile.py (pyarcus/5.4.0-alpha.0+source): If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\Users\Jakob\Desktop\AutomateCura\ArcusServer\pyArcus\build\Release\generators\conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0077=NEW -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
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"

@GitJakobHub
Copy link
Author

Solved. The solution was to not send the command "conan remote remove cura" and to install sip manually.

Process:

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 .

@jellespijker
Copy link
Member

Persistence wins, congrats and good job.

question I noticed the following in your log

Die Plattform 'ARM64

Are you compiling for Windows ARM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants