View previous topic :: View next topic |
Author |
Message |
gfaccin Tux's lil' helper
Joined: 20 Aug 2004 Posts: 121
|
Posted: Fri Nov 22, 2024 6:32 pm Post subject: [Solved] Fresh install: Relative path found in PYTHONPATH |
|
|
Greetings all,
I've finished a fresh install following the handbook.
I've been able to reboot into the newly created OS and even install two GUIs (awesome and KDE).
However, as the installation proceeds, some packages began to not compile with this "Relative path found in PYTHONPATH: " error:
Code: |
teoria01 /home/gfaccin # emerge gentoolkit -uva
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 1.09 s (backtrack: 0/20).
[ebuild N ] app-portage/gentoolkit-0.6.8::gentoo USE="-test" PYTHON_TARGETS="python3_12 (-pypy3) -python3_10 -python3_11 -python3_13" 3,116 KiB
Total: 1 package (1 new), Size of downloads: 3,116 KiB
Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-portage/gentoolkit-0.6.8::gentoo
>>> Downloading 'http://distfiles.gentoo.org/distfiles/bc/gentoolkit-0.6.8.tar.bz2'
--2024-11-22 14:21:53-- http://distfiles.gentoo.org/distfiles/bc/gentoolkit-0.6.8.tar.bz2
Resolving distfiles.gentoo.org... 79.127.206.208, 79.127.206.234, 2a02:6ea0:c400::53, ...
Connecting to distfiles.gentoo.org|79.127.206.208|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3190065 (3.0M) [application/x-bzip2]
Saving to: ‘/var/cache/distfiles/gentoolkit-0.6.8.tar.bz2.__download__’
/var/cache/distfile 100%[===================>] 3.04M 2.59MB/s in 1.2s
2024-11-22 14:21:54 (2.59 MB/s) - ‘/var/cache/distfiles/gentoolkit-0.6.8.tar.bz2.__download__’ saved [3190065/3190065]
* gentoolkit-0.6.8.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking gentoolkit-0.6.8.tar.bz2 to /var/tmp/portage/app-portage/gentoolkit-0.6.8/work
>>> Source unpacked in /var/tmp/portage/app-portage/gentoolkit-0.6.8/work
>>> Preparing source in /var/tmp/portage/app-portage/gentoolkit-0.6.8/work/gentoolkit-0.6.8 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-portage/gentoolkit-0.6.8/work/gentoolkit-0.6.8 ...
* Relative path found in PYTHONPATH:
*
* PYTHONPATH='/home/gfaccin/.local/lib64/:'
*
* This is guaranteed to cause random breakage. Please make sure that
* your PYTHONPATH contains absolute paths only (and only if necessary).
* Note that empty values (including ':' at either end and an empty
* PYTHONPATH) count as the current directory. If no PYTHONPATH
* is intended, it needs to be unset instead.
* ERROR: app-portage/gentoolkit-0.6.8::gentoo failed (configure phase):
* Relative paths in PYTHONPATH are forbidden: $'
* '
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 3146: Called python_foreach_impl 'my_src_configure'
* environment, line 2683: Called _python_sanity_checks
* environment, line 920: Called die
* The specific snippet of code:
* die "Relative paths in PYTHONPATH are forbidden: ${x@Q}";
*
* If you need support, post the output of `emerge --info '=app-portage/gentoolkit-0.6.8::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-portage/gentoolkit-0.6.8::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-portage/gentoolkit-0.6.8/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-portage/gentoolkit-0.6.8/temp/environment'.
* Working directory: '/var/tmp/portage/app-portage/gentoolkit-0.6.8/work/gentoolkit-0.6.8'
* S: '/var/tmp/portage/app-portage/gentoolkit-0.6.8/work/gentoolkit-0.6.8'
>>> Failed to emerge app-portage/gentoolkit-0.6.8, Log file:
>>> '/var/tmp/portage/app-portage/gentoolkit-0.6.8/temp/build.log'
|
I've reemerged python, it did compile normally but the problem persists.
I can execute python in console normally. But portage has some sort of issue involving this.
Any clues on how to fix this? Thank you!
-----------------
Update: this link was set in the user's .basrc which I copied from another computer. Even though it was in the user configuration, it messed up even when using su through it to perform root tasks. Removing the line and rebooting fixed it. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22727
|
Posted: Fri Nov 22, 2024 7:04 pm Post subject: |
|
|
Using /bin/su - to clear out variables from the normal user's environment when creating the root shell would also work, if you want to keep that setting in the unprivileged user's bashrc. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|