Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
Hello, On Sat, 06 Mar 2021, Steven Lembark wrote: >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")? [..] >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 Check with 'eix dev-python/pyyaml' or 'equery uses dev-python/pyyaml' for what python versions that module is actually installed for and compare that with the default python3 version (check 'python3 --version') You probably need to re-emerge dev-python/pyyaml if PYTHON_TARGETS has changed. You probably have it installed just for one target (which is not your current default python3). $ equery uses dev-python/pyyaml [..] + + python_targets_python3_7 : Build with Python 3.7 + + python_targets_python3_8 : Build with Python 3.8 - - python_targets_python3_9 : Build with Python 3.9 [..] So I have it installed for python 3.7.x and 3.8.x ... HTH, -dnh -- It's simply unbelievable how much energy and creativity people have invested into creating contradictory, bogus and stupid licenses... --- Sven Rudolph about licences in debian/non-free.
Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
On Sat, Mar 6, 2021 at 12:38 PM Steven Lembark wrote: > > $ which python3 > /usr/bin/python3 > > $ ls -ld $(which python3) > lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python3 -> python-exec2c > > Thanks > What do you see just running python3 in a terminal? - Mark
[gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
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: PYTHON species-data.h Traceback (most recent call last): *File "/scratch/Build/crawl/crawl-ref/source/util/species-gen.py", line 23, in * 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 lemb...@wrkhors.com +1 888 359 3508