You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, build the image using the provided Dockerfile, placing the requirements.txt alongside: docker build -t msvc17-windowsservercore-ltsc2022 .
On the host, install the profile in the conan cache to allow container to access it: cat profile.txt > $env:MySharedDrive\conan\profiles\msvc (create the necessary locations)
Also on the host, add the conanfile.txt to the shared workspace: cat conanfile.txt > $env:MySharedDrive\conanfile.txt
Run the container: docker run -it --rm -v $env:MySharedDrive\:C:\workspace -v $env:MySharedDrive\conan:C:\conan msvc17-windowsservercore-ltsc2022
Inside the container run the install command: conan install -pr:a msvc conanfile.txt -r conancenter --build=missing
Logs
Click to expand log
-------- Installing package boost/1.85.0 (2 of 2) --------
boost/1.85.0: Building from source
boost/1.85.0: Package boost/1.85.0:30d4c6379266b1c341c3cd6a3344c5a261665bd1
boost/1.85.0: Building your package in C:\conan\p\b\boost979c71eb92da0\b
boost/1.85.0: Calling generate()
boost/1.85.0: Generators folder: C:\conan\p\b\boost979c71eb92da0\b\build-release\conan
boost/1.85.0: Generating aggregated env files
boost/1.85.0: Generated aggregated env files: ['conanbuild.bat', 'conanbuild.ps1', 'conanrun.ps1']
boost/1.85.0: Calling build()
boost/1.85.0: WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\conan\p\boost06c6495d1787e\s\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file.
boost/1.85.0: WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\conan\p\boost06c6495d1787e\s\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file.
boost/1.85.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:\conan\p\boost06c6495d1787e\s\src\tools\build\src\tools\gcc.jam' file.
boost/1.85.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\conan\p\boost06c6495d1787e\s\src\tools\build\src\tools\gcc.jam' file.
boost/1.85.0: WARN: Patching user-config.jam
boost/1.85.0: running "C:/venv/Scripts/python.exe" -c "from __future__ import print_function; import sys; print('{}.{}'.format(sys.version_info[0], sys.version_info[1]))"
boost/1.85.0: RUN: "C:/venv/Scripts/python.exe" -c "from __future__ import print_function; import sys; print('{}.{}'.format(sys.version_info[0], sys.version_info[1]))"
File "<string>", line 1
from __future__ import print_function; import sys; print(
^
SyntaxError: unexpected EOF while parsing
boost/1.85.0: (failed)
boost/1.85.0: running "C:/venv/Scripts/python.exe" -c "from __future__ import print_function; import sysconfig; print(sysconfig.get_path('include'))"
boost/1.85.0: RUN: "C:/venv/Scripts/python.exe" -c "from __future__ import print_function; import sysconfig; print(sysconfig.get_path('include'))"
File "<string>", line 1
from __future__ import print_function; import sysconfig; print(sysconfig.get_path(
^
SyntaxError: unexpected EOF while parsing
boost/1.85.0: (failed)
boost/1.85.0: running "C:/venv/Scripts/python.exe" -c "from __future__ import print_function; import sysconfig; print(sysconfig.get_path('platinclude'))"
boost/1.85.0: RUN: "C:/venv/Scripts/python.exe" -c "from __future__ import print_function; import sysconfig; print(sysconfig.get_path('platinclude'))"
File "<string>", line 1
from __future__ import print_function; import sysconfig; print(sysconfig.get_path(
^
SyntaxError: unexpected EOF while parsing
boost/1.85.0: (failed)
boost/1.85.0: ERROR:
Package '30d4c6379266b1c341c3cd6a3344c5a261665bd1' build failed
boost/1.85.0: WARN: Build folder C:\conan\p\b\boost979c71eb92da0\b\build-release
ERROR: boost/1.85.0: Error in build() method, line 1152
self._create_user_config_jam(self._boost_build_dir)
while calling '_create_user_config_jam', line 1549
contents += f'\nusing python : {self._python_version} : "{self._python_executable}" : "{self._python_includes}" : "{self._python_library_dir}" ;'
while calling '_python_includes', line 974
include_py = self._get_python_var("INCLUDEPY")
while calling '_get_python_var', line 923
python_major = int(python_version_parts[0])
ValueError: invalid literal for int() with base 10: 'None'
The text was updated successfully, but these errors were encountered:
Description
Hello, I am unable to build boost python on a Windows Docker image that has been built using this file:
The
requirements.txt
is the following:And the
conanfile.txt
:Package and Environment Details
Conan profile
Steps to reproduce
requirements.txt
alongside:docker build -t msvc17-windowsservercore-ltsc2022 .
cat profile.txt > $env:MySharedDrive\conan\profiles\msvc
(create the necessary locations)cat conanfile.txt > $env:MySharedDrive\conanfile.txt
docker run -it --rm -v $env:MySharedDrive\:C:\workspace -v $env:MySharedDrive\conan:C:\conan msvc17-windowsservercore-ltsc2022
conan install -pr:a msvc conanfile.txt -r conancenter --build=missing
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: