Hi Aditya,
Your solution seems to work even with the most complex files, it's a great idea! The only small disadvantage is that you have to place this file in each directory containing files using these modules.
Thank you very much even if this solution is temporary.
Fabrice

Le lun. 13 avr. 2020 à 12:13, Aditya Mahajan <adityam@umich.edu> a écrit :
On Mon, 13 Apr 2020, Fabrice Couvreur wrote:

> Hi,
> Sorry to restart the discussion, but I have updated my entire system and
> the problem remains. I used the example of Aditya.
> Thank you.
> Fabrice
>
> \usemodule[pgfplots]
> \starttext
> \starttikzpicture
>   \startaxis
>     \addplot {x};
>   \stopaxis
> \stoptikzpicture
> \stoptext
>
> tex error       > tex error on line 5 in file pgfplotsbinary.data.code.tex:
> ! Undefined control sequence
>
> l.5 ...ode`\^0=11    \expandafter\xdef\csname pgfp@bin@\the\counter
> \endcsname{^0
>
>    }\advance\counter by1
> lua error:

I have no clue what pgfplotsbinary.data.code.tex does, but simply
bypassing that works for the simple example above.

Simply create an empty file with the name pgfplotsbinary.data.code.tex in
your current directory and compile your example.

Note that if your code uses any of the features which are provided by this
file (and I am not sure what they are), then it will fail. But at least
this "fix" works for the simple example above.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________