Re: Cannot install pkg_resources using pip

2023-04-17 Thread Peter J. Holzer
On 2023-04-16 17:03:43 -0400, Thomas Passin wrote:
> On 4/16/2023 4:42 PM, Rich Shepard wrote:
> > Python3-3.9.10 installed on this Slackware64-14.2 desktop.
[...]
> > # pip install setuptools
> > bash: /usr/bin/pip: /usr/bin/python3.7: bad interpreter: No such file or
> > directory
> > 
> > There is no python3.7 here:
> > # ls /usr/bin/python3.7
> > ls: cannot access '/usr/bin/python3.7': No such file or directory
> > 
> > How do I clean this up?
> 
> What is there to clean up?

There is a version of pip installed for a version of python which isn't
installed. That's definitely not useful, so it should be cleaned up.

As to how to do that:

Find out which package /usr/bin/pip belongs to and deinstall or upgrade
this package. How to find that package is a Slackware question, not a
Python question. And since Rich wrote that he's been comfortably using
Slackware for 20 years, I'll trust that he knows how to do that and just
needed a little nudge into the right direction.

hp

-- 
   _  | Peter J. Holzer| Story must make more sense than reality.
|_|_) ||
| |   | h...@hjp.at |-- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |   challenge!"


signature.asc
Description: PGP signature
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cannot install pkg_resources using pip

2023-04-17 Thread Rich Shepard

On Mon, 17 Apr 2023, aapost wrote:


Slackware isn't as straight forward in it's management as other distros
(not standardized anyway).


I've used Slackware for 20 years; it's completely rationale and comfortable
for me. :-)


That being said, if you start from python source ...


If worse came to worse, I'd reinstall the distro package.

Thanks,

Rich
--
https://mail.python.org/mailman/listinfo/python-list


Re: Cannot install pkg_resources using pip [RESOLVED]

2023-04-17 Thread Rich Shepard

On Sun, 16 Apr 2023, Rich Shepard wrote:


How do I clean this up?


My thanks for the suggestions and ideas you sent me on this issue. I've
resolved it by not trying to build pulseaudio-equalizer. I don't need it
because I learned this morning that my Yamaha CM500 headset clearly heard
the Zoom audio test tones and voices on a YouTube video.

I'm testing the headset on a Zoom call this afternoon with a friend.
Assuming it works with the meeting as it did on the Zoom test I'll use it
for Zoom and Jitsi meetings and use the Marantz Pro mic and Panasonic
headphones for recording web tutorials and podcasts.

Regards,

Rich
--
https://mail.python.org/mailman/listinfo/python-list


Re: Cannot install pkg_resources using pip

2023-04-17 Thread aapost

On 4/17/23 08:45, Rich Shepard wrote:

On Sun, 16 Apr 2023, Thomas Passin wrote:


Slackware isn't as straight forward in it's management as other distros 
(not standardized anyway). If this is someone elses install I would be 
cautious in using any advice I am providing, as it would be better for 
someone with familiarity with how they want the device set up to address 
the issues (such as if they prefer using some sort of package scheme or 
if doing everything from source is ok).


That being said, if you start from python source (as in overwriting what 
is currently there and doing a fresh reinstall), you can download 
Python3.9, then run

./configure
make
make install

after doing that, verify (python may still link to something old, that 
may be ok in this case, but good to note)

python --version
python3 --version
python3.9 --version

pkg_resources is inside of setuptools

so you would run
python3.9 -m pip install setuptools
(might already be there with the reinstall)

after that run
python3.9

then run
import pkg_resources
import setuptools
to see if you get errors or successful imports

if they import successfully, attempt to reinstall meson and ninja 
against your fresh python install

python3.9 -m pip install meson
python3.9 -m pip install ninja

verify versions with
meson -v
ninja --version

Then follow the instructions of the meson package from there (you 
mentioned some sort of pulseaudio-equalizer, depending on your desktop 
environment, you may run in to additional issues depending on how your 
slackware is setup).


--
https://mail.python.org/mailman/listinfo/python-list


pip upgrade error

2023-04-17 Thread 羅 中勇


When I using pip list, it tells me there is a new release of pip is available, 
but I got these error messages when I upgrading pip. I don’t know what happened 
it is.
PS C:\Users\USER> pip --version pip
pip 23.0.1 from 
C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip (python 3.10)
PS C:\Users\USER> python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in 
c:\users\user\appdata\roaming\python\python310\site-packages (23.0.1)
Collecting pip
  Using cached pip-23.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
  Attempting uninstall: pip
Found existing installation: pip 23.0.1
Uninstalling pip-23.0.1:
  Successfully uninstalled pip-23.0.1
  Rolling back uninstall of pip
  Moving to c:\users\user\appdata\roaming\python\python310\scripts\pip.exe
   from C:\Users\USER\AppData\Local\Temp\pip-uninstall-byh29tpt\pip.exe
  Moving to c:\users\user\appdata\roaming\python\python310\scripts\pip3.10.exe
   from C:\Users\USER\AppData\Local\Temp\pip-uninstall-byh29tpt\pip3.10.exe
  Moving to c:\users\user\appdata\roaming\python\python310\scripts\pip3.exe
   from C:\Users\USER\AppData\Local\Temp\pip-uninstall-byh29tpt\pip3.exe
  Moving to 
c:\users\user\appdata\roaming\python\python310\site-packages\pip-23.0.1.dist-info\
   from 
C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\~ip-23.0.1.dist-info
  Moving to c:\users\user\appdata\roaming\python\python310\site-packages\pip\
   from C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\~ip
ERROR: Exception:
Traceback (most recent call last):
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\cli\base_command.py",
 line 160, in exc_logging_wrapper
status = run_func(*args)
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\cli\req_command.py",
 line 247, in wrapper
return func(self, options, args)
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\commands\install.py",
 line 507, in run
installed = install_given_reqs(
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\req\__init__.py",
 line 73, in install_given_reqs
requirement.install(
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\req\req_install.py",
 line 796, in install
install_wheel(
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\operations\install\wheel.py",
 line 729, in install_wheel
_install_wheel(
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\operations\install\wheel.py",
 line 646, in _install_wheel
generated_console_scripts = maker.make_multiple(scripts_to_generate)
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py",
 line 436, in make_multiple
filenames.extend(self.make(specification, options))
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\operations\install\wheel.py",
 line 427, in make
return super().make(specification, options)
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py",
 line 425, in make
self._make_script(entry, filenames, options=options)
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py",
 line 325, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py",
 line 249, in _write_script
launcher = self._get_launcher('t')
  File 
"C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py",
 line 404, in _get_launcher
raise ValueError(msg)
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

[notice] A new release of pip is available: 23.0.1 -> 23.1
[notice] To update, run: python.exe -m pip install --upgrade pip
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cannot install pkg_resources using pip

2023-04-17 Thread Rich Shepard

On Sun, 16 Apr 2023, Thomas Passin wrote:


Sorry, Rich, I've never dealt with this so someone else will have to give
suggestions.


Thomas,

This is all new to me, too.


I would try to see if there are any versions available. It could be that
meson says it needs version x but only version y > x is available. Pip
will quit but meson may very well work with the available version anyway.
So I would try to install pkg_resources on its own, and then see if the
meson build can succeed. No guarantees, but I've seen this work before. So
python3.9 -m pip install --user pkg_resources

Or, to see what versions if any are available:
python3.9 -m pip install --user pkg_resources==
# NO spaces allowed before the "==".


Thank you. I'll give this a try.

Regards,

Rich
--
https://mail.python.org/mailman/listinfo/python-list