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

build a development version on Windows 11, and use it on Visual Studio 2022 by C++ #997

Open
Thomas-yunhui opened this issue Jun 26, 2024 · 4 comments

Comments

@Thomas-yunhui
Copy link

I would appreciate it if you could help me! I follow the instructions in https://github.com/cctbx/cctbx_project to build a development version. But there are some errors that occur when I run the command python bootstrap.py --use-conda. I try it on Windows 11 and use it on Visual Studio 2022. here are some error during installation. also, I want to know how to use cctbx onVisual Studio 2022.

PS C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build> D:\Software\anaconda3\python.exe .\bootstrap.py --use-conda
Performing actions: hot update base build
Installing base packages using:
D:\Software\anaconda3\python.exe modules\cctbx_project\libtbx\auto_build\install_conda.py --builder=cctbx --install_conda --python=37
===== Running in .: deleting dist, tests, tmp

C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty dist /MIR /COPYALL 1>nul ) & rmdir /S /Q dist\ & )
系统找不到指定的文件。

C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty tests /MIR /COPYALL 1>nul ) & rmdir /S /Q tests\ & )
系统找不到指定的文件。

C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty tmp /MIR /COPYALL 1>nul ) & rmdir /S /Q tmp\ & )
系统找不到指定的文件。
===== Running in modules\ccp4io_adaptbx: git pull --rebase
Already up to date.
===== Running in modules\dxtbx: git pull --rebase
Already up to date.
===== Running in modules\dxtbx: git remote set-url origin https://github.com/dials/dxtbx.git
===== Running in modules\dxtbx: git fetch origin
===== Running in modules\dxtbx: git checkout dials-3.5
Already on 'dials-3.5'
Your branch is up to date with 'origin/dials-3.5'.
===== Running in modules\dxtbx: git branch --set-upstream-to=origin/dials-3.5 dials-3.5
branch 'dials-3.5' set up to track 'origin/dials-3.5'.
WARNING: Can not update existing git repository! You are not on a branch.
This may be legitimate when run eg. via Jenkins, but be aware that you cannot commit any changes
===== Running in modules\cbflib: git pull --rebase
Already up to date.
===== Running in modules\boost: git pull --rebase
Already up to date.
===== Running in modules\annlib_adaptbx: git pull --rebase
Already up to date.
===== Running in modules\clipper: git pull --rebase
Already up to date.
===== Running in modules\annlib: git pull --rebase
Already up to date.
===== Running in modules\reduce: git pull --rebase
Already up to date.
===== Running in modules\cctbx_project: git pull --rebase
Already up to date.
===== Running in modules\cctbx_project: D:\Software\anaconda3\python.exe libtbx\version.py
Writing files containing version information for cctbx_project

Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\cctbx_version.txt
Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\cctbx_version.h
Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\setup.py

===== Running in modules\tntbx: git pull --rebase
Already up to date.
===== Running in modules\gui_resources: git pull --rebase
Already up to date.
===== Running in modules\ccp4io: git pull --rebase
Already up to date.

removing .pyc files in C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules, walk? True
removed 17 files
===== Running in .: base
Base conda installation:
D:\Software\anaconda3
The environment is newer than the environment file. Skipping update.
===== Running in build: run configure.py
Traceback (most recent call last):
File "..\modules\cctbx_project\libtbx\configure.py", line 34, in
if not run():
File "..\modules\cctbx_project\libtbx\configure.py", line 29, in run
libtbx.env_config.cold_start(sys.argv)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\env_config.py", line 3071, in cold_start
env = environment(build_path=build_path)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\env_config.py", line 455, in init
self.manage_python_version_major_minor()
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\env_config.py", line 508, in manage_python_version_major_minor
self.raise_python_version_incompatible(prev_pvmm=prev_pvmm)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\env_config.py", line 484, in raise_python_version_incompatible
+ " Python version in use now: %d.%d" % sys.version_info[:2])
RuntimeError: Python version incompatible with this build:
Build directory: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build"
Python version used initially: 2.7
Python version in use now: 3.7
Process failed with return code 1

@Thomas-yunhui Thomas-yunhui changed the title build a development version on Windows 11, and use it on Visual Studio 2022 build a development version on Windows 11, and use it on Visual Studio 2022 by C++ Jun 26, 2024
@Thomas-yunhui
Copy link
Author

I want use cctbx on VS by C++, I'm not comfortable with python code habits, I'm not comfortable with python code habits, is there a cctbx version that can be used with just #include

@bkpoon
Copy link
Member

bkpoon commented Jul 2, 2024

It looks like you're switching from Python 2 to Python 3. You can try completely deleting your build directory and run bootstrap.py again. To see how we build on Visual Studio, you can look at our CI build in these lines from cctbx_project/.azure-pipelines/conda-win.yml

  - script: |
      cd $(Pipeline.Workspace)


      if exist "C:\Program Files (x86)\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
        call "C:\Program Files (x86)\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
      )
      if exist "C:\Program Files\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
        call "C:\Program Files\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
      )
      call %CONDA%\condabin\activate.bat %PYTHON_VERSION%
      python bootstrap.py build ^
        --builder=cctbx ^
        --use-conda=%CONDA_PREFIX% ^
        --nproc=4

We set up the Visual Studio compiler (either 2019 or 2022) with vcvarsall.bat and then run bootstrap.py.

If you are writing a separate program, you can write a regular C/C++ program with our includes and linking against our libraries.

@Thomas-yunhui
Copy link
Author

It looks like you're switching from Python 2 to Python 3. You can try completely deleting your build directory and run bootstrap.py again. To see how we build on Visual Studio, you can look at our CI build in these lines from cctbx_project/.azure-pipelines/conda-win.yml

  - script: |
      cd $(Pipeline.Workspace)


      if exist "C:\Program Files (x86)\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
        call "C:\Program Files (x86)\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
      )
      if exist "C:\Program Files\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
        call "C:\Program Files\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
      )
      call %CONDA%\condabin\activate.bat %PYTHON_VERSION%
      python bootstrap.py build ^
        --builder=cctbx ^
        --use-conda=%CONDA_PREFIX% ^
        --nproc=4

We set up the Visual Studio compiler (either 2019 or 2022) with vcvarsall.bat and then run bootstrap.py.

If you are writing a separate program, you can write a regular C/C++ program with our includes and linking against our libraries.

Thank you very much for your answer, the installation of C++ package is too complicated for me, I hope you can provide a detailed manual for installing C++ package under windows and using VS, the manual may be as detailed as possible and explain the role of each step, so as to facilitate the installation of users.
I have begun to adapt to the habit of using python, and the use of python packages is very convenient. Because I want to package my code for daily calls, I believe I will encounter many difficulties later, and I still need your advice. I sincerely appreciate your help!

@Thomas-yunhui
Copy link
Author

It looks like you're switching from Python 2 to Python 3. You can try completely deleting your build directory and run bootstrap.py again. To see how we build on Visual Studio, you can look at our CI build in these lines from cctbx_project/.azure-pipelines/conda-win.yml

  - script: |
      cd $(Pipeline.Workspace)


      if exist "C:\Program Files (x86)\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
        call "C:\Program Files (x86)\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
      )
      if exist "C:\Program Files\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
        call "C:\Program Files\Microsoft Visual Studio\${{ parameters.vs }}\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
      )
      call %CONDA%\condabin\activate.bat %PYTHON_VERSION%
      python bootstrap.py build ^
        --builder=cctbx ^
        --use-conda=%CONDA_PREFIX% ^
        --nproc=4

We set up the Visual Studio compiler (either 2019 or 2022) with vcvarsall.bat and then run bootstrap.py.

If you are writing a separate program, you can write a regular C/C++ program with our includes and linking against our libraries.

(cctbx_env) PS C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build> D:\Software\anaconda3\python.exe .\bootstrap.py --use-conda
Performing actions: hot update base build
Installing base packages using:
D:\Software\anaconda3\python.exe modules\cctbx_project\libtbx\auto_build\install_conda.py --builder=cctbx --install_conda --python=37
===== Running in .: deleting dist, tests, tmp

C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty dist /MIR /COPYALL 1>nul ) & rmdir /S /Q dist\ & )
系统找不到指定的文件。

C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty tests /MIR /COPYALL 1>nul ) & rmdir /S /Q tests\ & )
系统找不到指定的文件。

C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build>((ROBOCOPY empty tmp /MIR /COPYALL 1>nul ) & rmdir /S /Q tmp\ & )
系统找不到指定的文件。
===== Running in modules\annlib_adaptbx: git pull --rebase
Already up to date.
===== Running in modules\gui_resources: git pull --rebase
Already up to date.
===== Running in modules\tntbx: git pull --rebase
Already up to date.
===== Running in modules\annlib: git pull --rebase
Already up to date.
WARNING: Can not update existing git repository! You are not on a branch.
This may be legitimate when run eg. via Jenkins, but be aware that you cannot commit any changes
===== Running in modules\clipper: git pull --rebase
Already up to date.
===== Running in modules\cctbx_project: git pull --rebase
remote: Enumerating objects: 119, done.
remote: Counting objects: 100% (119/119), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 119 (delta 71), reused 102 (delta 56), pack-reused 0
Receiving objects: 100% (119/119), 134.41 KiB | 211.00 KiB/s, done.
Resolving deltas: 100% (71/71), completed with 16 local objects.
From https://github.com/cctbx/cctbx_project
c779886..2d12ea1 master -> origin/master
d8c84e1..35866ea mpisafe_ensemble_refinement -> origin/mpisafe_ensemble_refinement

  • [new branch] releases/2024.6 -> origin/releases/2024.6
    e82362f..ddfb031 ribbons -> origin/ribbons
  • [new tag] v2024.6 -> v2024.6
    Updating c779886..2d12ea1
    Fast-forward
    .azure-pipelines/ci-build.yml | 6 +-
    .azure-pipelines/full-build.yml | 12 +--
    .azure-pipelines/xfel/conda-linux.yml | 18 +---
    .azure-pipelines/xfel/conda-osx.yml | 9 +-
    .azure-pipelines/xfel/unix-conda-build.yml | 2 +-
    .azure-pipelines/xfel/xfel-ci-build.yml | 12 +--
    CHANGELOG.rst | 7 ++
    iotbx/cli_parser.py | 4 +-
    iotbx/pdb/atom_selection.py | 11 ++-
    iotbx/regression/tst_cli_parser.py | 62 ++++++++++++++
    mmtbx/model/model.py | 13 +--
    mmtbx/ncs/ncs_restraints_group_list.py | 3 +-
    mmtbx/ncs/ncs_search.py | 128 +++++++++++++++++------------
    mmtbx/refinement/real_space/fit_residue.py | 6 ++
    mmtbx/solvent/ordered_solvent.py | 4 +-
    xfel/small_cell/README.md | 23 ------
    16 files changed, 184 insertions(+), 136 deletions(-)
    ===== Running in modules\cctbx_project: D:\Software\anaconda3\python.exe libtbx\version.py
    Writing files containing version information for cctbx_project
    ===============================================================================
    Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\cctbx_version.txt
    Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\cctbx_version.h
    Wrote C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx....\cctbx_project\setup.py
    ===============================================================================
    ===== Running in modules\dxtbx: git pull --rebase
    remote: Enumerating objects: 27, done.
    remote: Counting objects: 100% (27/27), done.
    remote: Compressing objects: 100% (9/9), done.
    remote: Total 27 (delta 17), reused 26 (delta 16), pack-reused 0
    Unpacking objects: 100% (27/27), 3.37 KiB | 45.00 KiB/s, done.
    From https://github.com/dials/dxtbx
  • [new branch] FormatMRC-relax-MZ-check -> origin/FormatMRC-relax-MZ-check
  • [new branch] Windows-fix-for-FormatCBFMini -> origin/Windows-fix-for-FormatCBFMini
    e8c2c928..4e46bec4 main -> origin/main
    Already up to date.
    ===== Running in modules\dxtbx: git remote set-url origin https://github.com/dials/dxtbx.git
    ===== Running in modules\dxtbx: git fetch origin
    ===== Running in modules\dxtbx: git checkout dials-3.5
    Already on 'dials-3.5'
    Your branch is up to date with 'origin/dials-3.5'.
    ===== Running in modules\dxtbx: git branch --set-upstream-to=origin/dials-3.5 dials-3.5
    branch 'dials-3.5' set up to track 'origin/dials-3.5'.
    ===== Running in modules\cbflib: git pull --rebase
    Already up to date.
    ===== Running in modules\ccp4io_adaptbx: git pull --rebase
    Already up to date.
    ===== Running in modules\boost: git pull --rebase
    Already up to date.
    ===== Running in modules\reduce: git pull --rebase
    Already up to date.
    ===== Running in modules\ccp4io: git pull --rebase
    Already up to date.

removing .pyc files in C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules, walk? True
removed 17 files
===== Running in .: base
Base conda installation:
D:\Software\anaconda3
The environment is newer than the environment file. Skipping update.
===== Running in build: run configure.py
Python: 3.7.16 "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\conda_base\python.exe"
Compiler: default
Build mode: release
Warning level: 0
Precompiled Headers: False
Static libraries: False
Static exe: False
Scan Boost headers: False
Write full flex_fwd.h files: False
Build Boost.Python extensions: True
Define BOOST_PYTHON_NO_PY_SIGNATURES: False
Define BOOST_PYTHON_BOOL_INT_STRICT: True
Enable OpenMP if possible: False
Boost threads enabled: True
Enable CUDA: False
Enable KOKKOS: False
Use conda: True
Use opt_resources if available: False
Use environment flags: False
Enable C++11: False
command_version_suffix: None
Relocatable paths anchored at: c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build
Top-down list of all modules involved:
wxtbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\wxtbx"
gltbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\gltbx"
crys3d "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\crys3d"
cctbx_website "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cctbx_website"
mmtbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\mmtbx"
reduce "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\reduce"
iotbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\iotbx"
dxtbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\dxtbx"
cbflib+adaptbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cbflib"
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cbflib_adaptbx"
ccp4io+adaptbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\ccp4io"
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\ccp4io_adaptbx"
smtbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\smtbx"
ucif "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\ucif"
cctbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cctbx"
scitbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\scitbx"
fable "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\fable"
cma_es "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cma_es"
omptbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\omptbx"
boost+adaptbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\boost"
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\boost_adaptbx"
tbxx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\tbxx"
chiltbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\chiltbx"
libtbx "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx"
Creating files in build directory: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build"
dispatcher_include_template.bat
setpaths.bat
setpaths_all.bat
setpaths_debug.bat
unsetpaths.bat
SConstruct
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\boost_adaptbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\fable\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\scitbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cctbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\smtbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cbflib_adaptbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\dxtbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\iotbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\reduce\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\mmtbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cctbx_website\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\crys3d\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\gltbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\wxtbx\command_line"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\libtbx_refresh.py"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\boost_adaptbx\libtbx_refresh.py"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\scitbx\libtbx_refresh.py"
Generating C++ header files in:
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build\include\scitbx\array_family"
Generating C++ files in:
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build\include\scitbx\array_family\boost_python"
Using fable to convert scitbx\lbfgs.f
Updating entry points for scitbx
1 entries for entry point pytest_randomly.random_seeder
running egg_info
creating libtbx.scitbx.egg-info
writing libtbx.scitbx.egg-info\PKG-INFO
writing dependency_links to libtbx.scitbx.egg-info\dependency_links.txt
writing entry points to libtbx.scitbx.egg-info\entry_points.txt
writing top-level names to libtbx.scitbx.egg-info\top_level.txt
writing manifest file 'libtbx.scitbx.egg-info\SOURCES.txt'
reading manifest file 'libtbx.scitbx.egg-info\SOURCES.txt'
writing manifest file 'libtbx.scitbx.egg-info\SOURCES.txt'
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cctbx\libtbx_refresh.py"
Generating C++ files in:
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build\cctbx\eltbx"
Generating C++ files in:
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build\include\cctbx\boost_python"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\smtbx\libtbx_refresh.py"
Generating C++ files in:
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build\include\smtbx\boost_python"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cbflib_adaptbx\libtbx_refresh.py"
Copying to lib: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cbflib\pycbf\pycbf.py"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\dxtbx\libtbx_refresh.py"
Enumerating format classes:
found FormatBruker based on ['Format']
found FormatBrukerFixedChi based on ['FormatBruker']
found FormatBrukerPhotonII based on ['FormatBruker']
found FormatCBF based on ['Format']
found FormatCBFCspad based on ['FormatCBFMultiTileHierarchyStill']
found FormatCBFFullStillInMemory based on ['FormatCBFFullStill']
found FormatCBFMultiTileHierarchyStillInMemory based on ['FormatCBFFullStillInMemory', 'FormatCBFMultiTileHierarchyStill']
found FormatCBFCspadInMemory based on ['FormatCBFMultiTileHierarchyStillInMemory', 'FormatCBFCspad']
found FormatCBFFull based on ['FormatCBF']
found FormatCBFFullStill based on ['FormatStill', 'FormatCBFFull']
found FormatCBFFullPilatus based on ['FormatCBFFull']
found FormatCBFFullPilatusDLS300KSN104 based on ['FormatCBFFullPilatus']
found FormatCBFFullPilatusDLS6MSN100 based on ['FormatCBFFullPilatus']
found FormatCBFFullPilatusDLS6MSN126 based on ['FormatCBFFullPilatus']
found FormatCBFMini based on ['FormatCBF']
found FormatCBFMiniADSCHF4M based on ['FormatCBFMini']
found FormatCBFMiniEiger based on ['FormatCBFMini']
found FormatCBFMiniEigerDLS16MSN160 based on ['FormatCBFMiniEiger']
found FormatCBFMiniEigerMaxIVBio based on ['FormatCBFMiniEiger']
found FormatCBFMiniEigerPetraP14 based on ['FormatCBFMiniEiger']
found FormatCBFMiniEigerPhotonFactory based on ['FormatCBFMini']
found FormatCBFMiniPilatus based on ['FormatCBFMini']
found FormatCBFMiniPilatus3AOS19ID6MSN132 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusCHESS_6MSN127 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusDESY6MSN115 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusDLS12M based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusDLS6MSN100 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusDLS6MSN114 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusDLS6MSN114DMM based on ['FormatCBFMiniPilatus', 'FormatStill']
found FormatCBFMiniPilatusDLS6MSN119 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusDLS6MSN126 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusSOLEILPX16MSN106 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusSPring8_6MSN125 based on ['FormatCBFMiniPilatus']
found FormatCBFMiniPilatusXXX based on ['FormatCBFMiniPilatus']
found FormatCBFMultiTile based on ['FormatCBFFull']
found FormatCBFMultiTileStill based on ['FormatStill', 'FormatCBFMultiTile']
found FormatCBFMultiTileHierarchy based on ['FormatCBFMultiTile']
found FormatCBFMultiTileHierarchyStill based on ['FormatCBFMultiTileStill', 'FormatCBFMultiTileHierarchy']
found FormatDIP2030b based on ['Format']
found FormatEDFALS733 based on ['Format']
found FormatEigerStream based on ['FormatMultiImage', 'Format']
found FormatGatanDM4 based on ['Format']
found FormatGatanDM4Images based on ['FormatGatanDM4']
found FormatGatanDM4Stack based on ['FormatMultiImage', 'FormatGatanDM4']
found FormatHDF5 based on ['FormatMultiImage', 'Format']
found FormatHDF5EigerNearlyNexus based on ['FormatHDF5']
found FormatHDF5EigerNearlyNexusSPring8 based on ['FormatHDF5EigerNearlyNexus']
found FormatHDF5Lambda based on ['FormatHDF5']
found FormatHDF5PAL based on ['FormatHDF5']
found FormatHDF5Sacla based on ['FormatHDF5', 'FormatStill']
found FormatHDF5SaclaMPCCD based on ['FormatMultiImageLazy', 'FormatHDF5', 'FormatStill']
found FormatHDF5SaclaRayonix based on ['FormatHDF5', 'FormatStill']
found FormatMRC based on ['Format']
found FormatMRCimages based on ['FormatMRC']
found FormatMRCstack based on ['FormatMultiImage', 'FormatMRC']
found FormatMarIP based on ['Format']
found FormatMultiImage based on ['Format']
found FormatMultiImageLazy based on ['FormatMultiImage']
found FormatNexus based on ['FormatHDF5']
found FormatNexusStill based on ['FormatMultiImageLazy', 'FormatNexus', 'FormatStill']
found FormatNexusEiger based on ['FormatNexus']
found FormatNexusEigerDLS based on ['FormatNexusEiger']
found FormatNexusEigerDLS16M based on ['FormatNexusEigerDLS']
found FormatNexusEigerDLS16MI03 based on ['FormatNexusEigerDLS16M']
found FormatNexusJungfrauExt based on ['FormatNexus']
found FormatNexusJungfrauHack based on ['FormatNexus']
found FormatNexusTimepix2M based on ['FormatNexus']
found FormatPY based on ['Format']
found FormatPYmultitile based on ['FormatPY']
found FormatPYunspecified based on ['FormatPY']
found FormatPYunspecifiedInMemory based on ['FormatPYunspecified']
found FormatPYunspecifiedStill based on ['FormatStill', 'FormatPYunspecified']
found FormatPYunspecifiedStillInMemory based on ['FormatStill', 'FormatPYunspecifiedInMemory']
found FormatRAXIS based on ['Format']
found FormatRAXISII based on ['Format']
found FormatRAXISIVSPring8 based on ['Format']
found FormatSER based on ['Format']
found FormatSERimages based on ['FormatSER']
found FormatSERstack based on ['FormatMultiImage', 'FormatSER']
found FormatSMV based on ['Format']
found FormatSMVADSC based on ['FormatSMV']
found FormatSMVADSCDBG based on ['FormatSMVADSC']
found FormatSMVADSCNoDateStamp based on ['FormatSMVADSC']
found FormatSMVADSCSN based on ['FormatSMVADSC']
found FormatSMVADSCSN442 based on ['FormatSMVADSCSN']
found FormatSMVADSCSN445 based on ['FormatSMVADSCSN']
found FormatSMVADSCSNSN457 based on ['FormatSMVADSCSN']
found FormatSMVADSCSN905 based on ['FormatSMVADSCSN']
found FormatSMVADSCSN915 based on ['FormatSMVADSCSN']
found FormatSMVADSCSN920 based on ['FormatSMVADSCSN']
found FormatSMVADSCSN926 based on ['FormatSMVADSCSN']
found FormatSMVADSCSN928 based on ['FormatSMVADSCSN']
found FormatSMVADSCSNAPSID19 based on ['FormatSMVADSCSN']
found FormatSMVADSCmlfsom based on ['FormatSMVADSC']
found FormatSMVCMOS1 based on ['FormatSMV']
found FormatSMVHamamatsu based on ['FormatSMVADSC']
found FormatSMVHamamatsuSPring8BL32XU based on ['FormatSMVHamamatsu']
found FormatSMVJHSim based on ['FormatSMV']
found FormatSMVNOIR based on ['FormatSMVRigaku']
found FormatSMVRigaku based on ['FormatSMV']
found FormatSMVRigakuA200 based on ['FormatSMVRigaku']
found FormatSMVRigakuA200SPring8BL26B1 based on ['FormatSMVRigakuA200']
found FormatSMVRigakuEiger based on ['FormatSMVRigaku']
found FormatSMVRigakuPilatus based on ['FormatSMVRigaku']
found FormatSMVRigakuSaturn based on ['FormatSMVRigaku']
found FormatSMVRigakuSaturnNoTS based on ['FormatSMVRigaku']
found FormatSMVRigakuSaturnSN07400090 based on ['FormatSMVRigakuSaturn']
found FormatSMVRigakuSaturn09040159 based on ['FormatSMVRigakuSaturnNoTS']
found FormatSMVRigakuSaturnSN11480296 based on ['FormatSMVRigakuSaturn']
found FormatSMVTimePix_SU based on ['FormatSMV']
found FormatSMVTimePix_SU_512x512 based on ['FormatSMVTimePix_SU']
found FormatSMVTimePix_SU_516x516 based on ['FormatSMVTimePix_SU']
found FormatStill based on ['Format']
found FormatTIFF based on ['Format']
found FormatTIFFBruker based on ['FormatTIFF']
found FormatTIFFRayonix based on ['FormatTIFF']
found FormatTIFFRayonixESRF based on ['FormatTIFFRayonix']
found FormatTIFFRayonixSPring8 based on ['FormatTIFFRayonix']
found FormatTIFFRayonixXPP based on ['FormatTIFFRayonix']
found FormatXDS based on ['Format']
found FormatXTC based on ['FormatMultiImageLazy', 'FormatStill', 'Format']
found FormatXTCCspad based on ['FormatXTC']
found FormatXTCEpix based on ['FormatXTC']
found FormatXTCJungfrau based on ['FormatXTC']
found FormatXTCJungfrauMonolithic based on ['FormatXTCJungfrau']
found FormatXTCMultipleDetectors based on ['FormatXTCRayonix', 'FormatXTCCspad', 'FormatXTCJungfrau']
found FormatXTCRayonix based on ['FormatXTC']
Updating entry points for dxtbx
127 entries for entry point dxtbx.format
running egg_info
creating libtbx.dxtbx.egg-info
writing libtbx.dxtbx.egg-info\PKG-INFO
writing dependency_links to libtbx.dxtbx.egg-info\dependency_links.txt
writing entry points to libtbx.dxtbx.egg-info\entry_points.txt
writing top-level names to libtbx.dxtbx.egg-info\top_level.txt
writing manifest file 'libtbx.dxtbx.egg-info\SOURCES.txt'
reading manifest file 'libtbx.dxtbx.egg-info\SOURCES.txt'
writing manifest file 'libtbx.dxtbx.egg-info\SOURCES.txt'
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\iotbx\libtbx_refresh.py"
Using fable to convert iotbx\pdb\hybrid_36_f.f
Writing: iotbx\pdb\hybrid_36_fem.cpp
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\reduce\libtbx_refresh.py"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\mmtbx\libtbx_refresh.py"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\cctbx_website\libtbx_refresh.py"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\crys3d\libtbx_refresh.py"
Processing: "c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\gltbx\libtbx_refresh.py"
Generating C++ files in:
"c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\build\gltbx"
fonts: 8x13 9x15 10x20
c:\users\dell\source\repos\cctbx_project-master\libtbx\auto_build\conda_base\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
Done.
===== Running in build: save configure command
===== Running in build: Writing additional setup scripts for conda.
Base conda installation:
D:\Software\anaconda3
conda_setpaths.bat has been written successfully.
conda_unsetpaths.bat has been written successfully.
===== Running in build: libtbx.scons.bat
scons: Reading SConscript files ...
AttributeError: 'NoneType' object has no attribute 'startswith':
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\build\SConstruct", line 6:
SConscript("libtbx/SConscript")
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\conda_base\lib\site-packages\SCons\Script\SConscript.py", line 660:
return method(*args, **kw)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\conda_base\lib\site-packages\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\conda_base\lib\site-packages\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\DELL\source\repos\cctbx_project-master\libtbx\auto_build\modules\cctbx_project\libtbx\SConscript", line 357:
elif visual_studio_version.startswith("19.1"):
Process failed with return code 2

I still want to use the C++ version of cctbx, python does not have a clear data structure, the installation according to your method still failed, it seems that some files about SCons reported errors, please give me some guidance. Also, I was wondering if there is a community with cctbx that can discuss issues? Or where is there enough code related to the cctbx library that I can understand the data structure and how each function is used?

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