LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-22-2024, 09:41 AM   #1
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Messed my path to python up I think...


Hiya folks,

Yep, it's me again with another adventure.

This time I tried to install 'gajim' from SBo. It had quite a few dependencies, and several of the dependencies had more dependencies. That in itself is fine with me. The problem arose when one of the dependencies says you need to do something to make that dependencie the python 'builder' for the package of gajim.

What it had me do was this:

Code:
export PYTHONPATH=/opt/python3.9/site-packages/
That was great as I could see in several of the dependencies that needed that, were using it.

Then I got to needing the dependency of protobuf3 and for some reason it didn't build with this python thing. After several other dependencies also died from the exact same error codes, I decided to just give up on gajim.

What I need to know, is what command do I need to do to get my system to go back to using the stock path to python. Anyone happen to know it off the top of their head, please? I'm sure it'll be something similar to the above export, I just don't know where it points to or if it's for python3 or what.
 
Old 01-22-2024, 11:02 AM   #2
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Close your current shell where you did that, or log out and log back in again.

The effect of that command only sets the PYTHONPATH environment variable in the shell where you execute it (and all child processes).
 
1 members found this post helpful.
Old 01-22-2024, 11:06 AM   #3
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
To illustrate, open up 2 shells (or if you're in run level 3, then log in to 2 different terminals using Ctrl-Alt-F2, Ctrl-Alt-F1).

In the first do
Code:
export MY_SPECIAL_VAR=1
Now in each shell do
Code:
echo $MY_SPECIAL_VAR
Are you surprised by the output? Why?
 
1 members found this post helpful.
Old 01-22-2024, 12:46 PM   #4
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Got it. Thank you very much!
 
Old 01-22-2024, 01:58 PM   #5
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 325

Rep: Reputation: 216Reputation: 216Reputation: 216
Code:
export PYTHONPATH=/opt/python3.9/site-packages/
That is a build time only requirement (currently) for the SBo python slackbuilds that need the slackbuild packages installed there. There's no reason to have it set otherwise.

Just follow what drumz said.

Last edited by fourtysixandtwo; 01-22-2024 at 02:00 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of python and dependencies in customized path instead of standard path srinietrx Linux - Software 1 05-31-2015 02:38 AM
messed up Ubunto, messed it up good... ButterflyMelissa Linux - Newbie 6 02-13-2015 08:28 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
I think I messed up my PATH... tcv Linux - Software 11 01-08-2005 10:41 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration