Python Forum
looking fo documentation for module files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking fo documentation for module files
#39
it might be based on how i'm using symlinks for the "py" and "python" commands. i was trying other stuff this evening and noticed the problem would come and go. so i studied that more closely and noticed the problem always happens when i use "py" or "python" as the engine name and never when i used "python3.8". i found a source of "../../.." and it looks like this is the source. but something is still off as if is replicating the path to python3.8 it should work going that way since it really runs python3.8 either way. i think the merger of /bin and /usr/bin by Ubuntu is a factor in this.
Output:
lt1a/forums/3 /home/forums 12> py -S -c "import site;print(site.getsitepackages())" ['/usr/host/bin/../../../local/lib/python3.8/dist-packages', '/usr/host/bin/../../../lib/python3/dist-packages', '/usr/host/bin/../../../lib/python3.8/dist-packages'] lt1a/forums/3 /home/forums 13> python -S -c "import site;print(site.getsitepackages())" ['/usr/host/bin/../../../local/lib/python3.8/dist-packages', '/usr/host/bin/../../../lib/python3/dist-packages', '/usr/host/bin/../../../lib/python3.8/dist-packages'] lt1a/forums/3 /home/forums 14> python3 -S -c "import site;print(site.getsitepackages())" ['/usr/host/bin/../../../local/lib/python3.8/dist-packages', '/usr/host/bin/../../../lib/python3/dist-packages', '/usr/host/bin/../../../lib/python3.8/dist-packages'] lt1a/forums/3 /home/forums 15> python3.8 -S -c "import site;print(site.getsitepackages())" ['/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.8/dist-packages'] lt1a/forums/3 /home/forums 16> wh py lrwxrwxrwx 1 root 22 Aug 8 01:02 /usr/host/bin/py -> ../../../bin/python3.8 lrwxrwxrwx 1 root 22 Aug 8 01:02 /usr/local/bin/py -> ../../../bin/python3.8 lt1a/forums/3 /home/forums 17> wh python lrwxrwxrwx 1 root 22 Aug 8 01:02 /usr/host/bin/python -> ../../../bin/python3.8 lrwxrwxrwx 1 root 22 Aug 8 01:02 /usr/local/bin/python -> ../../../bin/python3.8 lrwxrwxrwx 1 root 7 Apr 15 2020 /usr/bin/python -> python3 lrwxrwxrwx 1 root 7 Apr 15 2020 /bin/python -> python3 lt1a/forums/3 /home/forums 18> wh python3 lrwxrwxrwx 1 root 22 Aug 8 01:02 /usr/host/bin/python3 -> ../../../bin/python3.8 lrwxrwxrwx 1 root 22 Aug 8 01:02 /usr/local/bin/python3 -> ../../../bin/python3.8 lrwxrwxrwx 1 root 9 May 25 00:58 /usr/bin/python3 -> python3.8 lrwxrwxrwx 1 root 9 May 25 00:58 /bin/python3 -> python3.8 lt1a/forums/3 /home/forums 19> wh python3.8 -rwxr-xr-x 1 root 5502744 Jun 22 16:18 /usr/bin/python3.8 -rwxr-xr-x 1 root 5502744 Jun 22 16:18 /bin/python3.8 lt1a/forums/3 /home/forums 20> box /usr/host/bin/wh +----</usr/host/bin/wh>--------------------------------+ | #!/bin/bash | | which -a "$@"|while read n;do /bin/ls -dGl "$n";done | +------------------------------------------------------+ lt1a/forums/3 /home/forums 21>
edit:

the fact that my symlinks go to ../../../{bin,lib} instead of ../../../usr/{bin,lib} may be the problem. more investigating. i wonder if a venv would have gotten around this.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: looking fo documentation for module files - by Skaperen - Aug-09-2022, 04:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  finding which source files import a module Skaperen 3 2,531 Apr-22-2019, 09:28 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020