Issue #1139: Cannot run nose tests (yt_analysis/yt)
New issue 1139: Cannot run nose tests https://bitbucket.org/yt_analysis/yt/issues/1139/cannot-run-nose-tests Erik Schnetter: I have cloned and installed yt, but running the self-tests fails (see below). I am using Python 2.7 installed via Macports on OS X El Capitan. Can you give me a pointer to remedy this? ``` $ python setup.py develop --user --prefix= /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/dist.py:285: UserWarning: Normalizing '3.1dev' to '3.1.dev0' normalized_version, non-existing path in 'yt/utilities/spatial': 'yt/utilities/spatial/tests' running develop running build_scripts running egg_info running build_src build_src building py_modules sources building extension "yt.analysis_modules.halo_finding.fof.EnzoFOF" sources building extension "yt.analysis_modules.halo_finding.hop.EnzoHop" sources building extension "yt.analysis_modules.ppv_cube.ppv_utils" sources building extension "yt.frontends.artio._artio_caller" sources building extension "yt.frontends.sph.smoothing_kernel" sources building extension "yt.geometry.oct_container" sources building extension "yt.geometry.oct_visitors" sources building extension "yt.geometry.particle_oct_container" sources building extension "yt.geometry.selection_routines" sources building extension "yt.geometry.particle_deposit" sources building extension "yt.geometry.particle_smooth" sources building extension "yt.geometry.fake_octree" sources building extension "yt.utilities.spatial.ckdtree" sources building extension "yt.utilities.spatial._distance_wrap" sources building extension "yt.utilities.lib.CICDeposit" sources building extension "yt.utilities.lib.ContourFinding" sources building extension "yt.utilities.lib.DepthFirstOctree" sources building extension "yt.utilities.lib.fortran_reader" sources building extension "yt.utilities.lib.geometry_utils" sources building extension "yt.utilities.lib.Interpolators" sources building extension "yt.utilities.lib.alt_ray_tracers" sources building extension "yt.utilities.lib.marching_cubes" sources building extension "yt.utilities.lib.misc_utilities" sources building extension "yt.utilities.lib.Octree" sources building extension "yt.utilities.lib.origami" sources building extension "yt.utilities.lib.image_utilities" sources building extension "yt.utilities.lib.PointsInVolume" sources building extension "yt.utilities.lib.QuadTree" sources building extension "yt.utilities.lib.RayIntegrators" sources building extension "yt.utilities.lib.mesh_utilities" sources building extension "yt.utilities.lib.grid_traversal" sources building extension "yt.utilities.lib.write_array" sources building extension "yt.utilities.lib.ragged_arrays" sources building extension "yt.utilities.lib.GridTree" sources building extension "yt.utilities.lib.amr_kdtools" sources building extension "yt.utilities.data_point_utilities" sources building extension "yt.visualization._MPL" sources building data_files sources build_src: building npy-pkg config files writing yt.egg-info/PKG-INFO writing top-level names to yt.egg-info/top_level.txt writing dependency_links to yt.egg-info/dependency_links.txt writing entry points to yt.egg-info/entry_points.txt reading manifest template 'MANIFEST.in' no previously-included directories found matching 'doc/source/reference/api/generated' no previously-included directories found matching 'doc/build/' writing manifest file 'yt.egg-info/SOURCES.txt' running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext Creating /Users/eschnett/Library/Python/2.7/lib/python/site-packages/yt.egg-link (link to .) yt 3.1.dev0 is already the active version in easy-install.pth Installing yt script to /Users/eschnett/Library/Python/2.7/bin Installing iyt script to /Users/eschnett/Library/Python/2.7/bin Installing pyro_queue.py script to /Users/eschnett/Library/Python/2.7/bin Installing yt_lodgeit.py script to /Users/eschnett/Library/Python/2.7/bin Installed /Users/eschnett/src/yt Processing dependencies for yt==3.1.dev0 Finished processing dependencies for yt==3.1.dev0 ``` ``` $ python Python 2.7.10 (default, Oct 1 2015, 12:52:17) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import yt yt.run_nose() /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin answer-testing = yt.utilities.answer_testing.framework:AnswerTesting: No module named answer_testing.framework RuntimeWarning) E ====================================================================== ERROR: Failure: OSError ([Errno 2] No such file or directory: '')
Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py", line 411, in loadTestsFromName addr.filename, addr.module) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py", line 86, in importFromDir if (self.sameModule(old, filename) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py", line 131, in sameModule if _samefile(mod_path, new_path): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 155, in samefile s1 = os.stat(f1) OSError: [Errno 2] No such file or directory: '' ---------------------------------------------------------------------- Ran 1 test in 0.001s FAILED (errors=1) ```
participants (1)
-
Erik Schnetter