Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Ben Koenig
--- Original Message ---
On Sunday, April 16th, 2023 at 3:39 PM, Rich Shepard  
wrote:


> On Sun, 16 Apr 2023, Ben Koenig wrote:
> 
> > Ah ok so here is where we got real problems. First off, you don't want to
> > use pip. it makes it very difficult to remove packages later and can
> > result in a broken python installation.
> 
> 
> Ben,
> 
> I've used pip when I could not find an SBo package.
> 
> > You can try starting the build with "meson build -Dpython=python2.7" to
> > make sure it selects the older python. If that doesn't work you might need
> > to seek other solutions since dealing with an incomplete python stack is a
> > project all on it's own.
> 
> 
> Wait ... meson wants python2 and not python3?
> 
> Nope:
> $ meson build -Dpython=python2.7
> Traceback (most recent call last):
> File "/usr/bin/meson", line 6, in 
> 
> from pkg_resources import load_entry_point
> File 
> "/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/init.py", 
> line 3324, in 
> 
> def _initialize_master_working_set():
> File 
> "/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/init.py", 
> line 3298, in _call_aside
> f(*args, **kwargs)
> File 
> "/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/init.py", 
> line 3336, in _initialize_master_working_set
> working_set = WorkingSet._build_master()
> File 
> "/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/init.py", 
> line 629, in _build_master
> ws.require(requires)
> File 
> "/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/init.py", 
> line 966, in require
> needed = self.resolve(parse_requirements(requirements))
> File 
> "/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/init.py", 
> line 827, in resolve
> dist = self._resolve_dist(
> File 
> "/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/init.py", 
> line 868, in _resolve_dist
> raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'meson==0.59.2' distribution was not 
> found and is required by the application
> 
> Yet,
> $ ls /var/log/packages/ | grep meson
> meson-0.59.2-x86_64-2
> 
> Thanks,
> 
> Rich

 you'll figure it out. sink or swim. Most of the slackware community has 
pretty much given up using python on 14.2 for this exact reason. 

And you've been using pip so this ones on you. 
-Ben


Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Rich Shepard

On Sun, 16 Apr 2023, Ben Koenig wrote:


Ah ok so here is where we got real problems. First off, you don't want to
use pip. it makes it very difficult to remove packages later and can
result in a broken python installation.


Ben,

I've used pip when I could not find an SBo package.


You can try starting the build with "meson build -Dpython=python2.7" to
make sure it selects the older python. If that doesn't work you might need
to seek other solutions since dealing with an incomplete python stack is a
project all on it's own.


Wait ... meson wants python2 and not python3?

Nope:
$ meson build -Dpython=python2.7
Traceback (most recent call last):
  File "/usr/bin/meson", line 6, in 
from pkg_resources import load_entry_point
  File "/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", 
line 3324, in 
def _initialize_master_working_set():
  File 
"/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", 
line 3298, in _call_aside
f(*args, **kwargs)
  File 
"/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", 
line 3336, in _initialize_master_working_set
working_set = WorkingSet._build_master()
  File 
"/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", 
line 629, in _build_master
ws.require(__requires__)
  File 
"/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", 
line 966, in require
needed = self.resolve(parse_requirements(requirements))
  File 
"/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", 
line 827, in resolve
dist = self._resolve_dist(
  File 
"/home/rshepard/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", 
line 868, in _resolve_dist
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'meson==0.59.2' distribution was not 
found and is required by the application

Yet,
$ ls /var/log/packages/ | grep meson
meson-0.59.2-x86_64-2

Thanks,

Rich


Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Ben Koenig
--- Original Message ---
On Sunday, April 16th, 2023 at 1:35 PM, Rich Shepard  
wrote:


> On Sun, 16 Apr 2023, Ben Koenig wrote:
> 
> > "meson build" didn't work?
> 
> 
> No:
> $ meson build
> Traceback (most recent call last):
> File "/usr/bin/meson", line 6, in 
> 
> from pkg_resources import load_entry_point
> ModuleNotFoundError: No module named 'pkg_resources'
> 
> Now I'm trying to learn why I can't install pkg_resources using pip with
> python3-3.9.10 installed here:
> # pip install pkg_resources
> bash: /usr/bin/pip: /usr/bin/python3.7: bad interpreter: No such file or 
> directory
> 
> There is no python3.7 installed:
> [root@salmo /usr/bin]# ls python*
> python@ python2-config@ python2.7-config* python3-sip* pythontex*
> python-config@ python2-sip* python3@ python3.9*
> python2@ python2.7* python3-config@ python3.9-config*
> 
> Rich

Ah ok so here is where we got real problems. First off, you don't want to use 
pip. it makes it very difficult to remove packages later and can result in a 
broken python installation.

Other than that, this type of thing is not unusual on 14.2 since it doesn't 
include a full python3 stack. Either you are missing a dependency, or meson 
hasn't been properly configured for the correct python version.

You can try starting the build with "meson build -Dpython=python2.7" to make 
sure it selects the older python. If that doesn't work you might need to seek 
other solutions since dealing with an incomplete python stack is a project all 
on it's own. 

-Ben


Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Rich Shepard

On Sun, 16 Apr 2023, Ben Koenig wrote:


"meson build" didn't work?


No:
$ meson build
Traceback (most recent call last):
  File "/usr/bin/meson", line 6, in 
from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

Now I'm trying to learn why I can't install pkg_resources using pip with
python3-3.9.10 installed here:
# pip install pkg_resources
bash: /usr/bin/pip: /usr/bin/python3.7: bad interpreter: No such file or 
directory

There is no python3.7 installed:
[root@salmo /usr/bin]# ls python*
python@ python2-config@  python2.7-config*  python3-sip*   
pythontex*
python-config@  python2-sip* python3@   python3.9*
python2@python2.7*   python3-config@python3.9-config*

Rich


Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread King Beowulf
On 4/16/23 11:22, Rich Shepard wrote:
> On Sun, 16 Apr 2023, Ben Koenig wrote:
>
>> $ meson build
>> That is 'meson' then a SPACE then 'build'. They didn't tell you to run
>> meson.build, so why are you executing the file manually? Did you just
>> assume that they made a mistake?
> Ben,
>
> Well, I assumed that 'mason.build' was the file name, not the command 'mason
> build.' So, ...
> $ mason build
> -bash: mason: command not found
>
> Regards,
>
> Rich

Today's word is

M E S O N

1. hadronic subatomic particle composed of an equal number of quarks and
antiquarks,

2. an open source build system meant to be both extremely fast, and,
even more importantly, as user friendly as possible

-Ed





Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Ben Koenig
--- Original Message ---
On Sunday, April 16th, 2023 at 11:22 AM, Rich Shepard 
 wrote:


> On Sun, 16 Apr 2023, Ben Koenig wrote:
> 
> > $ meson build
> > That is 'meson' then a SPACE then 'build'. They didn't tell you to run
> > meson.build, so why are you executing the file manually? Did you just
> > assume that they made a mistake?
> 
> 
> Ben,
> 
> Well, I assumed that 'mason.build' was the file name, not the command 'mason
> build.' So, ...
> $ mason build
> -bash: mason: command not found
> 
> Regards,
> 
> Rich

"meson build" didn't work?

mason meson mason meson mason meson..


Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Rich Shepard

On Sun, 16 Apr 2023, Ben Koenig wrote:


$ meson build
That is 'meson' then a SPACE then 'build'. They didn't tell you to run
meson.build, so why are you executing the file manually? Did you just
assume that they made a mistake?


Ben,

Well, I assumed that 'mason.build' was the file name, not the command 'mason
build.' So, ...
$ mason build
-bash: mason: command not found

Regards,

Rich


Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Ben Koenig
--- Original Message ---
On Sunday, April 16th, 2023 at 10:36 AM, Rich Shepard 
 wrote:


> On Sun, 16 Apr 2023, Ben Koenig wrote:
> 
> > > I'm stuck at the first command:
> > > $ mason.build
> > > -bash: mason.build: command not found
> 
> > Run the command provided in their README.
> > $ meson build
> 
> 
> Ben,
> 
> Isn't that what I did with bash telling me the command's not found?
> 
> Now, combining the first two lines from the README's build and install
> section I get this result:
> $ sh meson.build
> meson.build: line 1: syntax error near unexpected token 
> `'pulseaudio-equalizer-ladspa',' meson.build: line 1:` 
> project('pulseaudio-equalizer-ladspa','
> 
> Regards,
> 
> Rich

As mentioned in their instructions, you run the meson command with the build 
argument.

$ meson build

That is 'meson' then a SPACE then 'build'. They didn't tell you to run 
meson.build, so why are you executing the file manually? Did you just assume 
that they made a mistake? 

-Ben


Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Rich Shepard

On Sun, 16 Apr 2023, Ben Koenig wrote:


I'm stuck at the first command:
$ mason.build
-bash: mason.build: command not found



Run the command provided in their README.
$ meson build


Ben,

Isn't that what I did with bash telling me the command's not found?

Now, combining the first two lines from the README's build and install
section I get this result:
$ sh meson.build 
meson.build: line 1: syntax error near unexpected token `'pulseaudio-equalizer-ladspa','

meson.build: line 1: `project('pulseaudio-equalizer-ladspa','

Regards,

Rich


Re: [PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Ben Koenig
--- Original Message ---
On Sunday, April 16th, 2023 at 10:11 AM, Rich Shepard 
 wrote:


> To build LAD's improved fork of pulseaudio-equalizer I built the two
> dependencies not present on my system: ladswa and fftw. Now I have all
> needed dependencies:
> ## Dependencies
> 
> * Meson ≥ 0.46 & Ninja
> * GTK+ 3
> * Python ≥ 2.7 or 3
> * PyGObject ≥ 3.30
> * SWH Plugins
> * Pulseaudio
> * bash & bc
> 
> and when I try to implement the build sequence:
> ## Build & Install
> 
> ```sh
> meson build
> cd build
> ninja
> (sudo) ninja install
> 
> I'm stuck at the first command:
> $ mason.build
> -bash: mason.build: command not found
> [rshepard@salmo pulseaudio-equalizer]$ ./meson.build
> -bash: ./meson.build: Permission denied
> 
> The mason.build perms are:
> -rw-r--r-- 1 rshepard users 738 Apr 16 09:45 meson.build
> 
> What have I done incorrectly?
> 
> TIA,
> 
> Rich

Run the command provided in their README.

$ meson build

-Ben


[PLUG] Building pulseaudio-equalizer

2023-04-16 Thread Rich Shepard

To build LAD's improved fork of pulseaudio-equalizer I built the two
dependencies not present on my system: ladswa and fftw. Now I have all
needed dependencies:
## Dependencies

 * [Meson](https://mesonbuild.com/) ≥ 0.46 & [Ninja](https://ninja-build.org/)
 * [GTK+](https://www.gtk.org/) 3
 * [Python](https://www.python.org/) ≥ 2.7 or 3
 * [PyGObject](https://pygobject.readthedocs.io/en/latest/) ≥ 3.30
 * [SWH Plugins](https://github.com/swh/ladspa)
 * [Pulseaudio](https://www.freedesktop.org/wiki/Software/PulseAudio/)
 * [bash](https://www.gnu.org/software/bash/) & 
[bc](https://www.gnu.org/software/bc/)

and when I try to implement the build sequence:
## Build & Install

```sh
meson build
cd build
ninja
(sudo) ninja install

I'm stuck at the first command:
$ mason.build 
-bash: mason.build: command not found

[rshepard@salmo pulseaudio-equalizer]$ ./meson.build
-bash: ./meson.build: Permission denied

The mason.build perms are:
-rw-r--r-- 1 rshepard users 738 Apr 16 09:45 meson.build

What have I done incorrectly?

TIA,

Rich