I’m trying to build a Pure data patch locally using Heavy, but I’m having some problems with the
The target platform is Lich, but I’m unsure if that’s relevant.
The build succeeds for basic patches with a few objects and I can run them on the Lich. The problem occurs when I include any receive-objects for the potentiometer or gate inputs.
A simple patch that fails is:
The error I get is
root@4cbe9c067f0e:/OwlProgram# make clean
root@4cbe9c067f0e:/OwlProgram# make HEAVY=simple patch
Traceback (most recent call last):
File "./Tools/build_send_receive_constants.py", line 101, in <module>
main()
File "./Tools/build_send_receive_constants.py", line 91, in main
outputText = template.render(jdata=jdata) # this is where to put args to the template renderer
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/OwlProgram/Tools/Heavy_owl_constants.tpl.h", line 2, in top-level template code
// {{param}} {{name}} {{typ}} {{namehash}} {{minvalue}} {{maxvalue}} {{defvalue}} {{(defvalue-minvalue)/(maxvalue-minvalue)}}
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
heavy.mk:17: recipe for target 'Build/Source/Heavy_owl.h' failed
make[1]: *** [Build/Source/Heavy_owl.h] Error 1
Makefile:128: recipe for target 'heavy' failed
make: *** [heavy] Error 2
If I remove the [r Pot_A @owl A] object the build succeeds.
Could this be a problem with my build environment? I’m running it in a Docker container built with the file
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y \
python \
python-pip \
python-enum34 \
python-jinja2 \
python-nose2 \
build-essential \
git \
curl \
pkg-config \
make \
cmake \
gcc-arm-none-eabi \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/pingdynasty/hvcc.git && cd hvcc/ && pip install -r requirements.txt && cd ..
RUN git clone --recurse-submodules https://github.com/RebelTechnology/OwlProgram.git \
&& cd OwlProgram \
&& git checkout release/v21.1
based on https://github.com/yrn1/owlbuilder but with the Heavy compiler installed instead of the Faust dependencies.
I would appreciate any suggestions for how to troubleshoot!