Problems building scitbx.random
Hi, After doing a fresh checkout with these commands:
#! /bin/csh -fe set verbose curl http://cci.lbl.gov/cctbx_build/results/current/cctbx_bundle.selfx -o cctbx_bundle.selfx perl cctbx_bundle.selfx 0 rm cctbx_bundle.selfx rm cctbx_install_script.csh mv cctbx_sources sources cd sources svn co https://cctbx.svn.sourceforge.net/svnroot/cctbx/trunk cctbx_project cctbx_project/libtbx/development/move_obsolete_from_bundle.csh
And using these commands to configue and build cctbx:
mkdir -p build cd build python ../sources/cctbx_project/libtbx/configure.py -- enable_openmp_if_possible=True --scan_boost --build=release boost_adaptbx cctbx chiltbx crys3d iotbx mmtbx rstbx ucif smtbx clipper_adaptbx fable scitbx source setpaths.sh make || ( echo "Make failed!"; exit 1 )
I encounter these errors: Processing: "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/libtbx_refresh.py" Traceback (most recent call last): File "../sources/cctbx_project/libtbx/configure.py", line 21, in <module> run() File "../sources/cctbx_project/libtbx/configure.py", line 17, in run libtbx.env_config.cold_start(sys.argv) File "/home/marten/cctbx/cctbx- dev/sources/cctbx_project/libtbx/env_config.py", line 2061, in cold_start env.refresh() File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/libtbx/env_config.py", line 1401, in refresh module.process_libtbx_refresh_py() File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/libtbx/env_config.py", line 1678, in process_libtbx_refresh_py execfile(abs(custom_refresh), {}, {"self": self}) File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/libtbx_refresh.py", line 3, in <module> from crys3d import qttbx File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/qttbx/__init__.py", line 4, in <module> import gltbx.util File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/gltbx/util.py", line 1, in <module> import scitbx.array_family.flex # import dependency File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/scitbx/array_family/flex.py", line 10, in <module> import scitbx.random File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/scitbx/random/__init__.py", line 24, in <module> mt19937 = mersenne_twister_19937(value=get_random_seed()) NameError: name 'mersenne_twister_19937' is not defined To me these look like scitbx.random-ext is not built. Is this a regression from the changes to the build system or am I doining something wrong here? Cheers, Jan
Hi Marten,
This appears to be a bug that is triggered only if you have PyQt4. Could
you try a local workaround? Edit
cctbx_project/crys3d/libtbx_refresh.py
and comment out all lines. Then run the libtbx/configure.py command again,
followed by make.
Hope this works for you until we have a proper fix.
Ralf
2011/11/25 Jan Marten Simons
Hi,
After doing a fresh checkout with these commands:
#! /bin/csh -fe set verbose curl http://cci.lbl.gov/cctbx_build/results/current/cctbx_bundle.selfx-o cctbx_bundle.selfx perl cctbx_bundle.selfx 0 rm cctbx_bundle.selfx rm cctbx_install_script.csh mv cctbx_sources sources cd sources svn co https://cctbx.svn.sourceforge.net/svnroot/cctbx/trunkcctbx_project cctbx_project/libtbx/development/move_obsolete_from_bundle.csh
And using these commands to configue and build cctbx:
mkdir -p build cd build python ../sources/cctbx_project/libtbx/configure.py -- enable_openmp_if_possible=True --scan_boost --build=release boost_adaptbx cctbx chiltbx crys3d iotbx mmtbx rstbx ucif smtbx clipper_adaptbx fable scitbx source setpaths.sh make || ( echo "Make failed!"; exit 1 )
I encounter these errors:
Processing: "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/libtbx_refresh.py" Traceback (most recent call last): File "../sources/cctbx_project/libtbx/configure.py", line 21, in <module> run() File "../sources/cctbx_project/libtbx/configure.py", line 17, in run libtbx.env_config.cold_start(sys.argv) File "/home/marten/cctbx/cctbx- dev/sources/cctbx_project/libtbx/env_config.py", line 2061, in cold_start env.refresh() File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/libtbx/env_config.py", line 1401, in refresh module.process_libtbx_refresh_py() File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/libtbx/env_config.py", line 1678, in process_libtbx_refresh_py execfile(abs(custom_refresh), {}, {"self": self}) File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/libtbx_refresh.py", line 3, in <module> from crys3d import qttbx File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/qttbx/__init__.py", line 4, in <module> import gltbx.util File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/gltbx/util.py", line 1, in <module> import scitbx.array_family.flex # import dependency File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/scitbx/array_family/flex.py", line 10, in <module> import scitbx.random File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/scitbx/random/__init__.py", line 24, in <module> mt19937 = mersenne_twister_19937(value=get_random_seed()) NameError: name 'mersenne_twister_19937' is not defined
To me these look like scitbx.random-ext is not built. Is this a regression from the changes to the build system or am I doining something wrong here?
Cheers, Jan _______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
Hi Marten, I checked in a fix. Let me know if you're still having a problem. Ralf On Fri, Nov 25, 2011 at 2:07 PM, Ralf Grosse-Kunstleve < [email protected]> wrote:
Hi Marten,
This appears to be a bug that is triggered only if you have PyQt4. Could you try a local workaround? Edit
cctbx_project/crys3d/libtbx_refresh.py
and comment out all lines. Then run the libtbx/configure.py command again, followed by make.
Hope this works for you until we have a proper fix.
Ralf
2011/11/25 Jan Marten Simons
Hi,
After doing a fresh checkout with these commands:
#! /bin/csh -fe set verbose curl http://cci.lbl.gov/cctbx_build/results/current/cctbx_bundle.selfx-o cctbx_bundle.selfx perl cctbx_bundle.selfx 0 rm cctbx_bundle.selfx rm cctbx_install_script.csh mv cctbx_sources sources cd sources svn co https://cctbx.svn.sourceforge.net/svnroot/cctbx/trunkcctbx_project cctbx_project/libtbx/development/move_obsolete_from_bundle.csh
And using these commands to configue and build cctbx:
mkdir -p build cd build python ../sources/cctbx_project/libtbx/configure.py -- enable_openmp_if_possible=True --scan_boost --build=release boost_adaptbx cctbx chiltbx crys3d iotbx mmtbx rstbx ucif smtbx clipper_adaptbx fable scitbx source setpaths.sh make || ( echo "Make failed!"; exit 1 )
I encounter these errors:
Processing: "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/libtbx_refresh.py" Traceback (most recent call last): File "../sources/cctbx_project/libtbx/configure.py", line 21, in <module> run() File "../sources/cctbx_project/libtbx/configure.py", line 17, in run libtbx.env_config.cold_start(sys.argv) File "/home/marten/cctbx/cctbx- dev/sources/cctbx_project/libtbx/env_config.py", line 2061, in cold_start env.refresh() File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/libtbx/env_config.py", line 1401, in refresh module.process_libtbx_refresh_py() File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/libtbx/env_config.py", line 1678, in process_libtbx_refresh_py execfile(abs(custom_refresh), {}, {"self": self}) File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/libtbx_refresh.py", line 3, in <module> from crys3d import qttbx File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/crys3d/qttbx/__init__.py", line 4, in <module> import gltbx.util File "/home/mu/cctbx/cctbx-dev/sources/cctbx_project/gltbx/util.py", line 1, in <module> import scitbx.array_family.flex # import dependency File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/scitbx/array_family/flex.py", line 10, in <module> import scitbx.random File "/home/mu/cctbx/cctbx- dev/sources/cctbx_project/scitbx/random/__init__.py", line 24, in <module> mt19937 = mersenne_twister_19937(value=get_random_seed()) NameError: name 'mersenne_twister_19937' is not defined
To me these look like scitbx.random-ext is not built. Is this a regression from the changes to the build system or am I doining something wrong here?
Cheers, Jan _______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
Am Samstag 26 November 2011 09:07:38 schrieb Ralf Grosse-Kunstleve:
I checked in a fix. Let me know if you're still having a problem. Ralf
Hi Ralf, The fix seems to be working. I just built a fresh source tree and successfully ran the tests. With thanks, Dipl. Phys. Jan M. Simons Institute of Crystallography RWTH Aachen University
participants (2)
-
Jan Marten Simons
-
Ralf Grosse-Kunstleve