• WANTED: Happy members who like to discuss audio and other topics related to our interest. Desire to learn and share knowledge of science required. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

camillagui on windows 7 - SOLVED

atomant

Member
Joined
Sep 8, 2024
Messages
64
Likes
8
Hi,

I installed camillagui on windows 7, with git and python 3.8. Had no problem installing the requirements and reconfiguring camillagui. Requirements installed fine without a warning but the pip version being old.

Code:
pip install aiohttp
pip install jsonschema
pip install PyYAML
pip install git+https://github.com/HEnquist/[email protected]
pip install camilladsp-plot[plot]@git+https://github.com/HEnquist/[email protected]

I'm getting this error when I want to run it though.

Code:
E:\Program Files\camilla\gui>python main.py
Traceback (most recent call last):
  File "main.py", line 6, in <module>
    from camilladsp_plot.validate_config import CamillaValidator
  File "E:\program files\python38\lib\site-packages\camilladsp_plot\validate_config.py", line 4, in <module>
    from jsonschema import Draft7Validator, validators
  File "E:\program files\python38\lib\site-packages\jsonschema\__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "E:\program files\python38\lib\site-packages\jsonschema\_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "E:\program files\python38\lib\site-packages\jsonschema\exceptions.py", line 15, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
  File "E:\program files\python38\lib\site-packages\referencing\__init__.py", line 5, in <module>
    from referencing._core import Anchor, Registry, Resource, Specification
  File "E:\program files\python38\lib\site-packages\referencing\_core.py", line 9, in <module>
    from rpds import HashTrieMap, HashTrieSet, List
  File "E:\program files\python38\lib\site-packages\rpds\__init__.py", line 1, in <module>
    from .rpds import *
ImportError: DLL load failed while importing rpds: The specified procedure could not be found.

Modules installed:

Code:
E:\Program Files\camilla\gui>dir "E:\program files\python38\lib\site-packages"
 Volume in drive E is NTFS
 Volume Serial Number is 624A-8096

 Directory of E:\program files\python38\lib\site-packages

2024-10-05  16:11    <DIR>          .
2024-10-05  16:11    <DIR>          ..
2024-10-05  15:42    <DIR>          aiohappyeyeballs
2024-10-05  15:42    <DIR>          aiohappyeyeballs-2.4.3.dist-info
2024-10-05  15:42    <DIR>          aiohttp
2024-10-05  15:42    <DIR>          aiohttp-3.10.9.dist-info
2024-10-05  15:42    <DIR>          aiosignal
2024-10-05  15:42    <DIR>          aiosignal-1.3.1.dist-info
2024-10-05  15:42    <DIR>          async_timeout
2024-10-05  15:42    <DIR>          async_timeout-4.0.3.dist-info
2024-10-05  15:42    <DIR>          attr
2024-10-05  15:42    <DIR>          attrs
2024-10-05  15:42    <DIR>          attrs-24.2.0.dist-info
2024-10-05  16:02    <DIR>          camilladsp
2024-10-05  16:02    <DIR>          camilladsp-2.0.2.dist-info
2024-10-05  15:54    <DIR>          camilladsp_plot
2024-10-05  15:54    <DIR>          camilladsp_plot-2.0.0.dist-info
2024-10-05  15:54    <DIR>          contourpy
2024-10-05  15:54    <DIR>          contourpy-1.1.1.dist-info
2024-10-05  15:54    <DIR>          cycler
2024-10-05  15:54    <DIR>          cycler-0.12.1.dist-info
2024-10-05  15:54    <DIR>          dateutil
2024-10-05  15:36               126 easy_install.py
2024-10-05  15:54    <DIR>          fontTools
2024-10-05  15:54    <DIR>          fonttools-4.54.1.dist-info
2024-10-05  15:42    <DIR>          frozenlist
2024-10-05  15:42    <DIR>          frozenlist-1.4.1.dist-info
2024-10-05  15:42    <DIR>          idna
2024-10-05  15:42    <DIR>          idna-3.10.dist-info
2024-10-05  15:42    <DIR>          importlib_resources
2024-10-05  15:42    <DIR>          importlib_resources-6.4.5.dist-info
2024-10-05  15:42    <DIR>          jsonschema
2024-10-05  15:42    <DIR>          jsonschema-4.23.0.dist-info
2024-10-05  15:42    <DIR>          jsonschema_specifications
2024-10-05  15:42    <DIR>          jsonschema_specifications-2023.12.1.dist-info
2024-10-05  15:54    <DIR>          kiwisolver
2024-10-05  15:54    <DIR>          kiwisolver-1.4.7.dist-info
2024-10-05  15:54    <DIR>          matplotlib
2024-10-05  15:54               498 matplotlib-3.7.5-py3.8-nspkg.pth
2024-10-05  15:54    <DIR>          matplotlib-3.7.5.dist-info
2024-10-05  15:54    <DIR>          matplotlib.libs
2024-10-05  15:54    <DIR>          mpl_toolkits
2024-10-05  15:42    <DIR>          multidict
2024-10-05  15:42    <DIR>          multidict-6.1.0.dist-info
2024-10-05  15:54    <DIR>          numpy
2024-10-05  15:54    <DIR>          numpy-1.24.4.dist-info
2024-10-05  15:54    <DIR>          packaging
2024-10-05  15:54    <DIR>          packaging-24.1.dist-info
2024-10-05  15:54    <DIR>          PIL
2024-10-05  15:54    <DIR>          pillow-10.4.0.dist-info
2024-10-05  15:36    <DIR>          pip
2024-10-05  15:36    <DIR>          pip-20.2.1.dist-info
2024-10-05  15:42    <DIR>          pkgutil_resolve_name-1.3.10.dist-info
2024-10-05  15:42             4 391 pkgutil_resolve_name.py
2024-10-05  15:36    <DIR>          pkg_resources
2024-10-05  15:54                93 pylab.py
2024-10-05  15:54    <DIR>          pyparsing
2024-10-05  15:54    <DIR>          pyparsing-3.1.4.dist-info
2024-10-05  15:54    <DIR>          python_dateutil-2.9.0.post0.dist-info
2024-10-05  15:43    <DIR>          PyYAML-6.0.2.dist-info
2020-09-23  15:59               121 README.txt
2024-10-05  15:42    <DIR>          referencing
2024-10-05  15:42    <DIR>          referencing-0.35.1.dist-info
2024-10-05  15:42    <DIR>          rpds
2024-10-05  15:42    <DIR>          rpds_py-0.20.0.dist-info
2024-10-05  15:36    <DIR>          setuptools
2024-10-05  15:36    <DIR>          setuptools-49.2.1.dist-info
2024-10-05  15:54    <DIR>          six-1.16.0.dist-info
2024-10-05  15:54            34 549 six.py
2024-10-05  15:42    <DIR>          typing_extensions-4.12.2.dist-info
2024-10-05  15:42           134 451 typing_extensions.py
2024-10-05  16:02    <DIR>          websocket
2024-10-05  16:02    <DIR>          websocket_client-1.8.0.dist-info
2024-10-05  15:43    <DIR>          yaml
2024-10-05  15:42    <DIR>          yarl
2024-10-05  15:42    <DIR>          yarl-1.13.1.dist-info
2024-10-05  15:42    <DIR>          zipp
2024-10-05  15:42    <DIR>          zipp-3.20.2.dist-info
2024-10-05  15:43    <DIR>          _yaml
2024-10-05  15:54    <DIR>          __pycache__
               7 File(s)        174 229 bytes
              73 Dir(s)  298 106 347 520 bytes free
 
Hi atomant, pardon my ignorance, I hope I haven't misunderstood your question, but have you already tried this;

You already mentioned that 'pip being old', do you mean that camillagui won't/can't run on the latest pip3? Because that's the pip version python3 is expecting AFAIK.

pip install -r requirements.txt [or pip3 install -r requirements.txt]

and

- is your python version looking for the modules in the 'right' location? By that I mean that different versions of python expect to see modules in a specific location. That's how I understand it. I may be wrong.
- You may need to adjust your python environment path in Windows also?

Apologies if this hasn't been useful.
 
Hi atomant, pardon my ignorance, I hope I haven't misunderstood your question, but have you already tried this;

You already mentioned that 'pip being old', do you mean that camillagui won't/can't run on the latest pip3? Because that's the pip version python3 is expecting AFAIK.
It's the last version pip that python 3.8 automatically installed. Python > 3.8 isn't supported on windows 7. I didn't try another pip version. The one included in python 3.8 installed perfectly all that was in need to be installed.
pip install -r requirements.txt [or pip3 install -r requirements.txt]

Yes I have installed it that way after uninstalling everything. I had not the command in mind at first so I individually installed each of the requirements.


and

- is your python version looking for the modules in the 'right' location? By that I mean that different versions of python expect to see modules in a specific location. That's how I understand it. I may be wrong.

I have only one location. E:\program files\python38\lib\site-packages

- You may need to adjust your python environment path in Windows also?
Done that already. Noticed: no python path in 'E:\Program Files\camilla\gui>python main.py'
Apologies if this hasn't been useful.

No problem. Thanks anyways.

One user mentioned it solved the issue by uninstalling python and installing conda. Last version of conda for win 7 contained python 3.7, which isn't compatible with camillagui. Back to case #1. So I uninstalled both python and conda. Left with a broken camillagui installation.
 
It looks like the rpds package has some issue. Python packages are usually distributed as "wheels" that often include some pre-built binaries to simplify installation. This saves a lot of time and means you don't need any compilers to install the package. My guess would be that Windows 7 is too old for the pre-built binaries for rpds. Is upgrading to Windows 10 not an option? Windows 7 reached end of life years ago.
 
  • Like
Reactions: 001
It looks like the rpds package has some issue. Python packages are usually distributed as "wheels" that often include some pre-built binaries to simplify installation. This saves a lot of time and means you don't need any compilers to install the package. My guess would be that Windows 7 is too old for the pre-built binaries for rpds.
Yes, after examination, it's the case.

Is upgrading to Windows 10 not an option? Windows 7 reached end of life years ago.
Not going to be upgraded ever. That is the last version of windows I'll ever run. I keep it for old games, 99% of the time I'm on linux.

I just thought it would be great to have camillagui to switch camilladsp configs instead of stopping and starting batch files.

Thanks @HenrikEnquist
Much appreciated.
 
Installed successfully. However it doesn't run.

Started by installing:
Git-2.46.2-64-bit.exe and python-3.8.6-amd64.exe

Then:
pip install -r requirements.txt

Code:
E:\Program Files\camilla\gui>pip install -r requirements.txt
Collecting git+https://github.com/HEnquist/[email protected] (from -r requirements.txt (line 4))
  Cloning https://github.com/HEnquist/pycamilladsp.git (to revision v2.0.2) to z:\temp\pip-req-build-_xyrjace
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting aiohttp
  Downloading aiohttp-3.10.9-cp38-cp38-win_amd64.whl (383 kB)
     |████████████████████████████████| 383 kB 6.4 MB/s
Collecting jsonschema
  Downloading jsonschema-4.23.0-py3-none-any.whl (88 kB)
     |████████████████████████████████| 88 kB 5.8 MB/s
Collecting PyYAML
  Downloading PyYAML-6.0.2-cp38-cp38-win_amd64.whl (162 kB)
     |████████████████████████████████| 162 kB 6.4 MB/s
Collecting camilladsp-plot[plot]@ git+https://github.com/HEnquist/[email protected]
  Cloning https://github.com/HEnquist/pycamilladsp-plot.git (to revision v2.0.0) to z:\temp\pip-install-b79z86r_\camilladsp-plot
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting websocket-client>=1.6
  Downloading websocket_client-1.8.0-py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 1.6 MB/s
Collecting yarl<2.0,>=1.12.0
  Downloading yarl-1.13.1-cp38-cp38-win_amd64.whl (112 kB)
     |████████████████████████████████| 112 kB 3.2 MB/s
Collecting attrs>=17.3.0
  Downloading attrs-24.2.0-py3-none-any.whl (63 kB)
     |████████████████████████████████| 63 kB 728 kB/s
Collecting async-timeout<5.0,>=4.0; python_version < "3.11"
  Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting multidict<7.0,>=4.5
  Downloading multidict-6.1.0-cp38-cp38-win_amd64.whl (28 kB)
Collecting aiohappyeyeballs>=2.3.0
  Downloading aiohappyeyeballs-2.4.3-py3-none-any.whl (14 kB)
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.4.1-cp38-cp38-win_amd64.whl (50 kB)
     |████████████████████████████████| 50 kB 1.6 MB/s
Collecting aiosignal>=1.1.2
  Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting rpds-py>=0.7.1
  Downloading rpds_py-0.20.0-cp38-none-win_amd64.whl (213 kB)
     |████████████████████████████████| 213 kB 6.8 MB/s
Collecting jsonschema-specifications>=2023.03.6
  Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)
Collecting importlib-resources>=1.4.0; python_version < "3.9"
  Downloading importlib_resources-6.4.5-py3-none-any.whl (36 kB)
Collecting referencing>=0.28.4
  Downloading referencing-0.35.1-py3-none-any.whl (26 kB)
Collecting pkgutil-resolve-name>=1.3.10; python_version < "3.9"
  Downloading pkgutil_resolve_name-1.3.10-py3-none-any.whl (4.7 kB)
Collecting matplotlib; extra == "plot"
  Downloading matplotlib-3.7.5-cp38-cp38-win_amd64.whl (7.5 MB)
     |████████████████████████████████| 7.5 MB 6.8 MB/s
Collecting numpy; extra == "plot"
  Downloading numpy-1.24.4-cp38-cp38-win_amd64.whl (14.9 MB)
     |████████████████████████████████| 14.9 MB 6.4 MB/s
Collecting idna>=2.0
  Downloading idna-3.10-py3-none-any.whl (70 kB)
     |████████████████████████████████| 70 kB 2.1 MB/s
Collecting typing-extensions>=4.1.0; python_version < "3.11"
  Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting zipp>=3.1.0; python_version < "3.10"
  Downloading zipp-3.20.2-py3-none-any.whl (9.2 kB)
Collecting cycler>=0.10
  Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting contourpy>=1.0.1
  Downloading contourpy-1.1.1-cp38-cp38-win_amd64.whl (477 kB)
     |████████████████████████████████| 477 kB 6.8 MB/s
Collecting pyparsing>=2.3.1
  Downloading pyparsing-3.1.4-py3-none-any.whl (104 kB)
     |████████████████████████████████| 104 kB ...
Collecting pillow>=6.2.0
  Downloading pillow-10.4.0-cp38-cp38-win_amd64.whl (2.6 MB)
     |████████████████████████████████| 2.6 MB 6.8 MB/s
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.7-cp38-cp38-win_amd64.whl (55 kB)
     |████████████████████████████████| 55 kB 1.7 MB/s
Collecting python-dateutil>=2.7
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
     |████████████████████████████████| 229 kB 6.4 MB/s
Collecting fonttools>=4.22.0
  Downloading fonttools-4.54.1-cp38-cp38-win_amd64.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 6.8 MB/s
Collecting packaging>=20.0
  Downloading packaging-24.1-py3-none-any.whl (53 kB)
     |████████████████████████████████| 53 kB ...
Collecting six>=1.5
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: camilladsp-plot, camilladsp
  Building wheel for camilladsp-plot (PEP 517) ... done
  Created wheel for camilladsp-plot: filename=camilladsp_plot-2.0.0-py3-none-any.whl size=55613 sha256=6bd2e8f2fd3538d5dce1f1a9c93ae
be68119d8575065a23b305732dfba2956d8
  Stored in directory: Z:\Temp\pip-ephem-wheel-cache-z4l40v56\wheels\f6\e1\10\5e7815d42dd1a996d63109d69f4236e5cffb0f7786d074e144
  Building wheel for camilladsp (PEP 517) ... done
  Created wheel for camilladsp: filename=camilladsp-2.0.2-py3-none-any.whl size=34191 sha256=056e848a7ac7f9f82718a522526f935f40a7fcb
a5efda6e7a938b94c65b60aaf
  Stored in directory: Z:\Temp\pip-ephem-wheel-cache-z4l40v56\wheels\c7\c7\5b\83da89b3b6bb64711731418902b63a55a965d9653d57914acb
Successfully built camilladsp-plot camilladsp
Installing collected packages: idna, typing-extensions, multidict, yarl, attrs, async-timeout, aiohappyeyeballs, frozenlist, aiosign
al, aiohttp, rpds-py, zipp, importlib-resources, referencing, jsonschema-specifications, pkgutil-resolve-name, jsonschema, PyYAML, c
ycler, numpy, contourpy, pyparsing, pillow, kiwisolver, six, python-dateutil, fonttools, packaging, matplotlib, camilladsp-plot, web
socket-client, camilladsp
Successfully installed PyYAML-6.0.2 aiohappyeyeballs-2.4.3 aiohttp-3.10.9 aiosignal-1.3.1 async-timeout-4.0.3 attrs-24.2.0 camillads
p-2.0.2 camilladsp-plot-2.0.0 contourpy-1.1.1 cycler-0.12.1 fonttools-4.54.1 frozenlist-1.4.1 idna-3.10 importlib-resources-6.4.5 js
onschema-4.23.0 jsonschema-specifications-2023.12.1 kiwisolver-1.4.7 matplotlib-3.7.5 multidict-6.1.0 numpy-1.24.4 packaging-24.1 pi
llow-10.4.0 pkgutil-resolve-name-1.3.10 pyparsing-3.1.4 python-dateutil-2.9.0.post0 referencing-0.35.1 rpds-py-0.20.0 six-1.16.0 typ
ing-extensions-4.12.2 websocket-client-1.8.0 yarl-1.13.1 zipp-3.20.2
WARNING: You are using pip version 20.2.1; however, version 24.2 is available.
You should consider upgrading via the 'e:\program files\python38\python.exe -m pip install --upgrade pip' command.

Then downgrading rpds-py:

Code:
E:\Program Files\camilla\gui>pip uninstall rpds-py
Found existing installation: rpds-py 0.20.0
Uninstalling rpds-py-0.20.0:
  Would remove:
    e:\program files\python38\lib\site-packages\rpds\*
    e:\program files\python38\lib\site-packages\rpds_py-0.20.0.dist-info\*
Proceed (y/n)? y
  Successfully uninstalled rpds-py-0.20.0

E:\Program Files\camilla\gui>pip install rpds-py==0.18.1
Collecting rpds-py==0.18.1
  Downloading rpds_py-0.18.1-cp38-none-win_amd64.whl (209 kB)
     |████████████████████████████████| 209 kB 6.4 MB/s
Installing collected packages: rpds-py
Successfully installed rpds-py-0.18.1

This is my config:

Code:
---
camilla_host: "127.0.0.1"
camilla_port: 1234
bind_address: "0.0.0.0"
port: 5005
ssl_certificate: null
ssl_private_key: null
config_dir: "E:\\Program Files\\camilla\\dsp\\configs"
coeff_dir: "C:\\Users\\shizuma\\AppData\\Roaming\\rewfiles"
default_config: "E:\\Program Files\\camilla\\dsp\\configs\\games.yml"
statefile_path: "E:\\Program Files\\camilla\\dsp\\statefile.yml"
log_file: "E:\\Program Files\\camilla\\dsp\\camilladsp.log"
on_set_active_config: null
on_get_active_config: null
supported_capture_types: null
supported_playback_types: null

This is my statefile:

Code:
---
config_path: "E:\\Program Files\\camilla\\dsp\\configs\\stereo.yml"
mute:
  - false
  - false
  - false
  - false
  - false
volume:
  - 0.0
  - 0.0
  - 0.0
  - 0.0
  - 0.0

Then the commands to load the programs:

Code:
E:\Program Files\camilla\dsp>camilladsp -p 1234 -w -s "E:\Program Files\camilla\dsp\statefile.yml"
2024-10-06 00:45:28.305335 INFO [src/bin.rs:683] CamillaDSP version 2.0.3
2024-10-06 00:45:28.305335 INFO [src/bin.rs:684] Running on windows, x86_64

Code:
E:\Program Files\camilla\gui>python main.py
======== Running on http://0.0.0.0:5005 ========
(Press CTRL+C to quit)
ERROR:aiohttp.server:Error handling request
Traceback (most recent call last):
  File "E:\program files\python38\lib\site-packages\aiohttp\web_protocol.py", line 477, in _handle_request
    resp = await request_handler(request)
  File "E:\program files\python38\lib\site-packages\aiohttp\web_app.py", line 559, in _handle
    return await handler(request)
  File "E:\Program Files\camilla\gui\backend\views.py", line 400, in get_config_file
    config_object = make_config_filter_paths_relative(
  File "E:\Program Files\camilla\gui\backend\filemanagement.py", line 312, in make_config_filter_paths_relative
    return convert_config_filter_paths(config_object, conversion)
  File "E:\Program Files\camilla\gui\backend\filemanagement.py", line 324, in convert_config_filter_paths
    convert_filter_path(filt, conversion)
  File "E:\Program Files\camilla\gui\backend\filemanagement.py", line 337, in convert_filter_path
    filename = conversion(filename)
  File "E:\Program Files\camilla\gui\backend\filemanagement.py", line 311, in <lambda>
    conversion = lambda path, config_dir=config_dir: make_relative(path, config_dir)
  File "E:\Program Files\camilla\gui\backend\filemanagement.py", line 374, in make_relative
    return relpath(path, start=base_dir) if isabs(path) else path
  File "E:\program files\python38\lib\ntpath.py", line 703, in relpath
    raise ValueError("path is on mount %r, start on mount %r" % (
ValueError: path is on mount 'C:', start on mount 'E:'
ERROR:aiohttp.server:Error handling request
Traceback (most recent call last):
  File "E:\program files\python38\lib\site-packages\aiohttp\web_protocol.py", line 477, in _handle_request
    resp = await request_handler(request)
  File "E:\program files\python38\lib\site-packages\aiohttp\web_app.py", line 559, in _handle
    return await handler(request)
  File "E:\Program Files\camilla\gui\backend\views.py", line 305, in set_config
    config_object = json["config"]
KeyError: 'config'

The GUI loads, but this error happens whenever I select a config from the shortcuts tab with the config switch.
 

Attachments

  • Clipboard01.jpg
    Clipboard01.jpg
    65.1 KB · Views: 28
UPDATE

It's now working correctly I had to change 2 things:

1 - Change the coeffs path in camillagui.yml from
coeff_dir: "C:\\Users\\shizuma\\AppData\\Roaming\\rewfiles"

to
coeff_dir: "E:\\Program Files\\camilla\\dsp\\coeffs"

2 - Had to change wav filter paths in all my config files from
C:\Users\shizuma\AppData\Roaming\rewfiles
to ..\coeffs

e.g. from
C:\Users\shizuma\AppData\Roaming\rewfiles\26_sept_730hz_front_win2-$samplerate$.wav
to
..\coeffs\26_sept_730hz_front_win2-$samplerate$.wav

Don't know whether this is windows specifics. However it now works beautifully.
 
Back
Top Bottom