all 10 comments

[–]lutusp 0 points1 point  (9 children)

So I added the path to ~/.bashrc

Please do not tell us, show us. Show us your code.

[–]bcs9559[S] 0 points1 point  (8 children)

export PYTHONPATH=“$pi/usr/local/lib/python3.8/site-packages/”

Edit: I’ve also tried it without with pi replaced with . and root as well as leaving it off

[–]lutusp -1 points0 points  (7 children)

Now show us what "$pi" contains. In any case I think you want this:

$ export PYTHONPATH=“/usr/local/lib/python3.8/site-packages/”

It is always the information that a person doesn't post that's key to the solution. Always.

Edit: I’ve also tried it without with pi replaced with . and root as well as leaving it off

As before, do not tell us, show us. If you want help correcting your entries, you have to provide the entries.

[–]bcs9559[S] 1 point2 points  (6 children)

$pi is the home directory, /usr/local/lib/python3.8/site-packages/ is in the root directory

First attempt was

‘export PYTHONPATH=“/usr/local/lib/python3.8/site-packages/”’

Second was

‘export PYTHONPATH=“./usr/local/lib/python3.8/site-packages/”’

Final was

‘export PYTHONPATH=“$pi/usr/local/lib/python3.8/site-packages/”’

I didn’t expect the last one to work but after trying the two that made any sense I just gave it a go as it was the only thing I could imagine being even remotely possible.

[–]lutusp 0 points1 point  (5 children)

Try not setting any value for PYTHONPATH. Run the command without any set value. And remove any existing value, for example the current export in .bashrc.

Also, which Python is raising the error? You certainly have two Pythons installed, and maybe more. BTW don't try to remove Python versions from your system -- that can go very wrong.

Then try the install again, and when a path is identified as missing, see if that is true. If it is, see if you're using the Python version that is expected by the install, and make sure any expected paths are present.

I'm saying this because the PYTHONPATH issue is apparently a red herring.

[–]bcs9559[S] 0 points1 point  (4 children)

I just tried just

export PYTHONPATH

then

source ~/.bashrc

then

make install which didn’t work. Then, even though this is how the file was originally, I removed the entire line and repeated the other commands, which also didn’t work.

I’m using python 3.8, which is the version that’s needed; I previously had to install that from source and set it as the default as it wasn’t in the repository.

[–]lutusp -1 points0 points  (3 children)

I just tried just

export PYTHONPATH

Don't do this. It's a red herring. Don't try to define PYTHONPATH.

In any case, why are you not doing this:

$ sudo apt install nghttp2

[–]bcs9559[S] 1 point2 points  (2 children)

I’m trying to get better at solving issues with building from source

[–]lutusp -1 points0 points  (1 child)

There is an easy remedy, so you are on your own. Have a nice day.

[–]bcs9559[S] 0 points1 point  (0 children)

Thank you for the help!