Question then is why "python-exec2c" dispatched via a symlink from
"python3" would fail to see the installed copy of pyyaml (or how
should I check with modules are avalable via "python3")?

e.g., is there the equivalent of "perl -MYAML -d -E 0" that would
allow me to check what it is that python thinks is installed?



I think that pyyaml is installed:

*  dev-python/pyyaml
      Latest version available: 5.4.1
      Latest version installed: 5.4.1
      Size of files: 170 KiB
      Homepage:      https://pyyaml.org/wiki/PyYAML 
https://pypi.org/project/PyYAML/ https://github.com/yaml/pyyaml
      Description:   YAML parser and emitter for Python
      License:       MIT

Running make for a program blows up with:

    <snip>
        PYTHON species-data.h
    Traceback (most recent call last):
 *    File "/scratch/Build/crawl/crawl-ref/source/util/species-gen.py", line 
23, in <module>
 *      import yaml  # pip install pyyaml
    ModuleNotFoundError: No module named 'yaml'
    make: *** [Makefile:1741: species-data.h] Error 1
    make -C rltiles all ARCH=x86_64-pc-linux-gnu NO_PKGCONFIG= TILES=y
    make[1]: Entering directory '/scratch/Build/crawl/crawl-ref/source/rltiles'
    make[1]: Leaving directory '/scratch/Build/crawl/crawl-ref/source/rltiles'
    make: Target 'all' not remade because of errors.
    make: Leaving directory '/scratch/Build/crawl/crawl-ref/source'

    $ head -n1 /scratch/Build/crawl/crawl-ref/source/util/species-gen.py
    #!/usr/bin/env python3

    $ which python3
    /usr/bin/python3

    $ ls -ld $(which python3)
    lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python3 -> python-exec2c

Thanks

--
Steven Lembark
Workhorse Computing
[email protected]
+1 888 359 3508

Reply via email to