csound-flossmanual / csound-floss

The Csound FLOSS Manual
https://flossmanual.csound.com/
GNU General Public License v3.0
21 stars 19 forks source link

Syntax error in pandoc-fllter.py when building #4

Closed gogins closed 4 years ago

gogins commented 4 years ago

I am not using Docker. I am using Ubuntu 18.04 with Python 3.6.8. I installed all requirements and installed Pandoc 2.8.1 from the current Debian package.

mkg@bodhimandala:~/csound-floss$ python3 build.py html
-- combined_metadata
.  html
/usr/bin/pandoc -f markdown+line_blocks+escaped_line_breaks+smart+fenced_code_blocks+fenced_code_attributes+backtick_code_blocks+yaml_metadata_block+implicit_figures+tex_math_dollars+implicit_figures+link_attributes +RTS -K4096m -RTS -F scripts/pandoc-filter.py --standalone --mathjax  -t html --css=resources/styles/fonts.css --css=resources/styles/html.css -H resources/html/head_include.html -B resources/html/body_include.html -o csound-floss-export.html tmp/preprocessed/metadata.yaml tmp/preprocessed/00--aa-toc.md tmp/preprocessed/00-a-preface.md tmp/preprocessed/00-b-how-to-use-this-manual.md tmp/preprocessed/00-c-on-this-release.md tmp/preprocessed/00-d-credits.md tmp/preprocessed/01-a-digital-audio.md tmp/preprocessed/01-b-pitch-and-frequency.md tmp/preprocessed/01-c-intensities.md tmp/preprocessed/01-d-random.md tmp/preprocessed/02-a-make-csound-run.md tmp/preprocessed/02-b-csound-syntax.md tmp/preprocessed/02-c-configuring-midi.md tmp/preprocessed/02-d-live-audio.md tmp/preprocessed/02-e-rendering-to-file.md tmp/preprocessed/03-a-initialization-and-performance-pass.md tmp/preprocessed/03-b-local-and-global-variables.md tmp/preprocessed/03-c-control-structures.md tmp/preprocessed/03-d-function-tables.md tmp/preprocessed/03-e-arrays.md tmp/preprocessed/03-f-live-events.md tmp/preprocessed/03-g-user-defined-opcodes.md tmp/preprocessed/03-h-macros.md tmp/preprocessed/03-i-functional-syntax.md tmp/preprocessed/04-a-additive-synthesis.md tmp/preprocessed/04-b-subtractive-synthesis.md tmp/preprocessed/04-c-amplitude-and-ring-modulation.md tmp/preprocessed/04-d-frequency-modulation.md tmp/preprocessed/04-e-waveshaping.md tmp/preprocessed/04-f-granular-synthesis.md tmp/preprocessed/04-g-physical-modelling.md tmp/preprocessed/04-h-scanned-synthesis.md tmp/preprocessed/05-a-envelopes.md tmp/preprocessed/05-b-panning-and-spatialization.md tmp/preprocessed/05-c-filters.md tmp/preprocessed/05-d-delay-and-feedback.md tmp/preprocessed/05-e-reverberation.md tmp/preprocessed/05-f-am-rm-waveshaping.md tmp/preprocessed/05-g-granular-synthesis.md tmp/preprocessed/05-h-convolution.md tmp/preprocessed/05-i-fourier-analysis-spectral-processing.md tmp/preprocessed/05-k-ats-resynthesis.md tmp/preprocessed/05-l-amplitude-and-pitch-tracking.md tmp/preprocessed/06-a-record-and-play-soundfiles.md tmp/preprocessed/06-b-record-and-play-buffers.md tmp/preprocessed/07-a-receiving-events-by-midiin.md tmp/preprocessed/07-b-triggering-instrument-instances.md tmp/preprocessed/07-c-working-with-controllers.md tmp/preprocessed/07-d-reading-midi-files.md tmp/preprocessed/07-e-midi-output.md tmp/preprocessed/08-a-open-sound-control.md tmp/preprocessed/08-b-csound-and-arduino.md tmp/preprocessed/09-a-csound-in-pd.md tmp/preprocessed/09-b-csound-in-maxmsp.md tmp/preprocessed/09-c-csound-as-a-vst-plugin.md tmp/preprocessed/10-a-csoundqt.md tmp/preprocessed/10-b-cabbage.md tmp/preprocessed/10-c-blue.md tmp/preprocessed/10-d-winxound.md tmp/preprocessed/10-e-csound-via-terminal.md tmp/preprocessed/10-f-web-based-csound.md tmp/preprocessed/11-a-analysis.md tmp/preprocessed/11-b-file-info-and-conversion.md tmp/preprocessed/11-c-miscellaneous.md tmp/preprocessed/12-a-the-csound-api.md tmp/preprocessed/12-b-python-and-csound.md tmp/preprocessed/12-c-lua-in-csound.md tmp/preprocessed/12-d-csound-in-ios.md tmp/preprocessed/12-e-csound-on-android.md tmp/preprocessed/12-f-csound-and-haskell.md tmp/preprocessed/12-g-csound-and-html.md tmp/preprocessed/13-a-developing-plugin-opcodes.md tmp/preprocessed/14-a-methods-of-writing-csound-scores.md tmp/preprocessed/14-b-python-in-csoundqt.md tmp/preprocessed/15-a-opcode-guide.md tmp/preprocessed/15-b-glossary.md tmp/preprocessed/15-c-links.md 
[WARNING] Duplicate note reference '1' at line 3367 column 1
[WARNING] Duplicate note reference '1' at line 3905 column 1
[WARNING] Duplicate note reference '2' at line 3907 column 1
[WARNING] Duplicate note reference '1' at line 4314 column 1
[WARNING] Duplicate note reference '2' at line 4315 column 1
[WARNING] Duplicate note reference '3' at line 4328 column 1
[WARNING] Duplicate note reference '1' at line 4471 column 1
[WARNING] Duplicate note reference '1' at line 6153 column 1
[WARNING] Duplicate note reference '2' at line 6156 column 1
[WARNING] Duplicate note reference '3' at line 6159 column 1
[WARNING] Duplicate note reference '4' at line 6160 column 1
[WARNING] Duplicate note reference '5' at line 6164 column 1
[WARNING] Duplicate note reference '6' at line 6168 column 1
[WARNING] Duplicate note reference '1' at line 8381 column 1
[WARNING] Duplicate note reference '2' at line 8384 column 1
[WARNING] Duplicate note reference '3' at line 8386 column 1
[WARNING] Duplicate note reference '1' at line 8488 column 1
[WARNING] Duplicate note reference '2' at line 8535 column 1
[WARNING] Duplicate note reference '3' at line 9085 column 1
[WARNING] Duplicate note reference '1' at line 9729 column 1
[WARNING] Duplicate note reference '3' at line 10141 column 1
[WARNING] Duplicate note reference '4' at line 10565 column 1
[WARNING] Duplicate note reference '1' at line 12361 column 1
[WARNING] Duplicate note reference '2' at line 12423 column 1
[WARNING] Duplicate note reference '3' at line 12487 column 1
[WARNING] Duplicate note reference '1' at line 13545 column 1
[WARNING] Duplicate note reference '1' at line 14166 column 1
[WARNING] Duplicate note reference '2' at line 14262 column 1
[WARNING] Duplicate note reference '3' at line 14296 column 1
[WARNING] Duplicate note reference '4' at line 14339 column 1
[WARNING] Duplicate note reference '1' at line 15722 column 1
[WARNING] Duplicate note reference '1' at line 16143 column 1
[WARNING] Duplicate note reference '2' at line 16236 column 1
[WARNING] Duplicate note reference '3' at line 16243 column 1
[WARNING] Duplicate note reference '1' at line 17925 column 1
[WARNING] Duplicate note reference '2' at line 17962 column 1
[WARNING] Duplicate note reference '1' at line 20202 column 1
[WARNING] Duplicate note reference '2' at line 20254 column 1
[WARNING] Duplicate note reference '1' at line 20798 column 1
[WARNING] Duplicate link reference '[2]' at line 21138 column 1
[WARNING] Duplicate note reference '3' at line 21373 column 1
[WARNING] Duplicate note reference '4' at line 21441 column 1
[WARNING] Duplicate note reference '5' at line 21527 column 1
[WARNING] Duplicate note reference '1' at line 24258 column 1
[WARNING] Duplicate note reference '1' at line 25387 column 1
[WARNING] Duplicate note reference '2' at line 25396 column 1
[WARNING] Duplicate note reference '3' at line 25410 column 1
[WARNING] Duplicate note reference '4' at line 25430 column 1
[WARNING] Duplicate note reference '5' at line 25439 column 1
[WARNING] Duplicate note reference '6' at line 25493 column 1
[WARNING] Duplicate note reference '7' at line 25581 column 1
[WARNING] Duplicate note reference '1' at line 25982 column 1
[WARNING] Duplicate note reference '2' at line 25984 column 1
[WARNING] Duplicate note reference '3' at line 25988 column 1
[WARNING] Duplicate note reference '4' at line 26003 column 1
[WARNING] Duplicate note reference '5' at line 26254 column 1
[WARNING] Duplicate note reference '6' at line 26256 column 1
[WARNING] Duplicate note reference '1' at line 27691 column 1
[WARNING] Duplicate note reference '2' at line 27773 column 1
[WARNING] Duplicate note reference '1' at line 28199 column 1
[WARNING] Duplicate note reference '2' at line 28226 column 1
[WARNING] Duplicate note reference '1' at line 29583 column 1
[WARNING] Duplicate note reference '1' at line 31239 column 1
[WARNING] Duplicate note reference '1' at line 32510 column 1
[WARNING] Duplicate note reference '1' at line 33526 column 1
[WARNING] Duplicate note reference '2' at line 33552 column 1
[WARNING] Duplicate note reference '1' at line 36276 column 1
  File "scripts/pandoc-filter.py", line 103
    def __init__(self, value: Optional[T] = None):
hlolli commented 4 years ago

Hi @gogins, I'm seeing this ticket just now. I'll try to see what could be the reason for this. Did you try python 3.7 as well? (shouldn't be a requirement, 3.6+ should be enough).

hlolli commented 4 years ago

I'm not an expert of python in the sense that I'm not sure if your error means that a previously illeagal syntax is now allowed. There must be more to your error message than this, it seems like an abrupt ending. I'd want to know, what is it about this syntax that's wrong. If the assignment in the fallback arguments is the error, I'll change it. But that would just be a guess. Need to ask some python friends for advice here.

gogins commented 4 years ago

I tried 3.7 and 3.8, neither helped. That might be because I have multiple versions of Python installed.

Regards, Mike


Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com

On Sat, Dec 14, 2019 at 4:39 PM Hlöðver Sigurðsson notifications@github.com wrote:

Hi @gogins https://github.com/gogins, I'm seeing this ticket just now. I'll try to see what could be the reason for this. Did you try python 3.7 as well? (shouldn't be a requirement, 3.6+ should be enough).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/csound-flossmanual/csound-floss/issues/4?email_source=notifications&email_token=ABQIGJMVY5VW4ILUPJMDUSDQYVHCJA5CNFSM4JZRALLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG4L5SI#issuecomment-565755593, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQIGJNWXMYBN63K7KOIDGDQYVHCJANCNFSM4JZRALLA .

hlolli commented 4 years ago

Mainly for performance resons, I've now abandoned python as a build tool in favor of node.js, try to start the project now on latest master using yarn. @gogins

gogins commented 4 years ago

Sorry, that does not work. I get this:

mkg@bodhimandala:~/csound-floss$ yarn
yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
error chokidar@3.3.1: The engine "node" is incompatible with this module. Expected version ">= 8.10.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
mkg@bodhimandala:~/csound-floss$ node --version
v8.9.1
mkg@bodhimandala:~/csound-floss$ 

The csound-floss build system is continuing to assume that everyone has the latest version of all the tools. That is not necessarily the case. I will see if I can install node 8.10.

gogins commented 4 years ago

Sorry, that's my mistake, I had a conflicting version of Node.js on my computer from the Emscripten toolchain used to build Csound for WebAssembly.

The manual now builds correctly for me with yarn.