public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed  copy of pyyaml?
@ 2021-03-06 19:38 Steven Lembark
  2021-03-06 21:29 ` Mark Knecht
  2021-03-06 23:09 ` David Haller
  0 siblings, 2 replies; 18+ messages in thread
From: Steven Lembark @ 2021-03-06 19:38 UTC (permalink / raw
  To: gentoo-user; +Cc: lembark


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
lembark@wrkhors.com
+1 888 359 3508


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-03-13 17:52 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-06 19:38 [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml? Steven Lembark
2021-03-06 21:29 ` Mark Knecht
2021-03-06 23:09 ` David Haller
2021-03-07 16:00   ` Steven Lembark
2021-03-07 17:03     ` Arve Barsnes
2021-03-07 17:06       ` Michael
2021-03-07 18:37         ` Steven Lembark
2021-03-07 18:43         ` Steven Lembark
2021-03-07 19:30           ` Michael
2021-03-07 23:33             ` Steven Lembark
2021-03-07 22:04     ` Neil Bothwick
2021-03-07 23:32       ` Steven Lembark
2021-03-07 23:47         ` Neil Bothwick
2021-03-07 23:51           ` Neil Bothwick
2021-03-07 23:52           ` Steven Lembark
2021-03-08  9:20             ` Neil Bothwick
2021-03-08  6:05         ` Arve Barsnes
     [not found]           ` <20210313122340.6d795eb1.lembark@wrkhors.com>
2021-03-13 17:52             ` Arve Barsnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox