Re: [NTG-context] MkIV missing?

2021-10-19 Thread Jörg Hofmann via ntg-context

It works. I don't know why, but it works now.


Best wishes
Jörg

Am 18.10.21 um 17:27 schrieb Jörg Hofmann via ntg-context:



Am 04.10.21 um 15:33 schrieb Taco Hoekwater via ntg-context:

We are busy with this off-list.

If it is urgent:

  luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate

fixed it for me (you’ll need to adjust the path, of course)

Best wishes,
Taco


But not for me. :(

After I set up my PC again, Linux Mint 20.1 Cinnamon, I also 
reinstalled ConTeXt and since then I have been experiencing the error.

Are there any further steps?

Besst wishes
Jörg




On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via 
ntg-context  wrote:

Same problem here, on a linux64, context current version: 2021.09.26 17:00

Greetings

Marcus Vinicius

On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via 
ntg-context  wrote:


Am 04.10.2021 um 13:06 schrieb Hans Hagen:

On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote:

Hi,
since a while, I can’t run MkIV any more, even after several runs of install.sh 
(and mtxrun --generate, of course).
It’s the same on my Mac and my Linux laptop (of course the bin dir is different 
on the latter):
$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.09.26 17:00
mtx-context | main context file: 
/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.09.26 17:00
$ context --version --luatex
mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context 
--version --luatex --redirected
mtxrun  | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
$ which context
/Users/hraban/lmtx/tex/texmf-osx-64/bin/context
$ which luatex
/Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex
$ luatex --version
This is LuaTeX, Version 1.13.0 (TeX Live 2021)
...
$ mtxrun --version
mtxrun  | ConTeXt TDS Runner Tool 1.32
mtxrun  | source path
I thought that was related to the server/provider move, but I guess it isn’t.
It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that a 
call to mtxrun can’t find any configuration.

works here ... maybe a --generate issue?

I re-ran the install script with a shell ("sh install.sh" instead just ". install.sh"), 
but that doesn’t change the "unknown script" issue.

"mtxrun --generate" seems to work without problems; or do you see something 
suspicious in the attached log?

Hraban

___
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
___


--
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem 
seus membros, por ser descanso da alma, primavera do coração, distração do 
aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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
___

—
Taco Hoekwater  E:t...@bittext.nl
genderfluid (all pronouns)



___
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
___


___
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/contex

Re: [NTG-context] MkIV missing?

2021-10-18 Thread Jörg Hofmann via ntg-context


Am 04.10.21 um 15:33 schrieb Taco Hoekwater via ntg-context:

We are busy with this off-list.

If it is urgent:

  luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate

fixed it for me (you’ll need to adjust the path, of course)

Best wishes,
Taco


But not for me. :(

After I set up my PC again, Linux Mint 20.1 Cinnamon, I also reinstalled 
ConTeXt and since then I have been experiencing the error.

Are there any further steps?

Besst wishes
Jörg






On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context 
 wrote:

Same problem here, on a linux64, context current version: 2021.09.26 17:00

Greetings

Marcus Vinicius

On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context 
 wrote:


Am 04.10.2021 um 13:06 schrieb Hans Hagen :

On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote:

Hi,
since a while, I can’t run MkIV any more, even after several runs of install.sh 
(and mtxrun --generate, of course).
It’s the same on my Mac and my Linux laptop (of course the bin dir is different 
on the latter):
$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.09.26 17:00
mtx-context | main context file: 
/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.09.26 17:00
$ context --version --luatex
mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context 
--version --luatex --redirected
mtxrun  | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
$ which context
/Users/hraban/lmtx/tex/texmf-osx-64/bin/context
$ which luatex
/Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex
$ luatex --version
This is LuaTeX, Version 1.13.0 (TeX Live 2021)
...
$ mtxrun --version
mtxrun  | ConTeXt TDS Runner Tool 1.32
mtxrun  | source path
I thought that was related to the server/provider move, but I guess it isn’t.
It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that a 
call to mtxrun can’t find any configuration.

works here ... maybe a --generate issue?

I re-ran the install script with a shell ("sh install.sh" instead just ". install.sh"), 
but that doesn’t change the "unknown script" issue.

"mtxrun --generate" seems to work without problems; or do you see something 
suspicious in the attached log?

Hraban

___
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
___


--
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem 
seus membros, por ser descanso da alma, primavera do coração, distração do 
aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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
___

—
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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
___
___
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
___


Re: [NTG-context] context and sqlite - it works ;-)

2018-10-13 Thread Jörg Hofmann
Hallo Hans,
hallo Luigi,

thank you for your help. After I've re-installed ConTeXt, everything
works fine.

Have a nice weekend
Jörg


Am Sonntag, den 07.10.2018, 16:06 +0200 schrieb Hans Hagen:
> anyway, best keep your libe in the tex tree because otherwise you
> get 
> some random one that is found on your system
> 
> attached a better example file (hard to test without a database here
> so 
> need to make one ... next time proviode a real mwe)
> 
> in util-sql-imp-sqlite.lua remove a pragma line so we get:
___
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
___

Re: [NTG-context] context and sqlite - here is the code

2018-10-07 Thread Jörg Hofmann
Hallo Hans,
hallo Luigi,

Am Samstag, den 06.10.2018, 20:01 +0200 schrieb Jörg Hofmann:
> I've been trying to connect ConTeXt to sqlite for almost a week
> but I have repeatedly failed. Neither the
> "internal" variant according to the documentation, nor the attempt on
> luasql
> have worked. Above all, the Google request showed me that
> not alone with this problem - how reassuring. ;-)
> 
> At the moment, concentrate I am accessing via swiglib and think my
> problem lies here (from my log file):
> 
> sql> start loading method 'sqlite'
> swiglib> unknown: 'swiglib.sqlite.core'
> swiglib> unknown: 'swiglib.helpers.core'
> 
> Obviously, the appropriate modules are not found, but where
> Can I get them and where do they belong? And maybe
> also someone a working code example for me.
> I'm working with Texlive 2017 on XUBUNTU 16.04.
> 
> Best regards
> Jörg Hofmann
> _
> __
> 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/nt
> g-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> _
> __

Many thanks for your help. I have read both manuals but may not
understand it correctly. That's why I send my file and the log file.

Best regards
Jörgopen source > level 1, order 1, name '/usr/local/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2017.05.15 21:48 MKIV beta  fmt: 2017.11.1  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name '/usr/local/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name '/usr/local/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'lua-test', input './lua-test', result 'lua-test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/jorg/Dokumente/Projekte/ConTeXt - Test/lua-test.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
sql > start loading method 'sqlite'
swiglib > unknown: 'swiglib.sqlite.core'
swiglib > unknown: 'swiglib.helpers.core'

lua error   > lua error on line 64 in file /home/jorg/Dokumente/Projekte/ConTeXt - Test/lua-test.tex:

...texmf-dist/tex/context/base/mkiv/util-sql-imp-sqlite.lua:36: attempt to index local 'sqlite' (a boolean value)
stack traceback:
	...texmf-dist/tex/context/base/mkiv/util-sql-imp-sqlite.lua:36: in main chunk
	[C]: in function 'requiem'
	...live/2017/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:180: in function <...live/2017/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:165>
	(...tail calls...)
	...xlive/2017/texmf-dist/tex/context/base/mkiv/util-sql.lua:114: in function '__index'
	...xlive/2017/texmf-dist/tex/context/base/mkiv/util-sql.lua:288: in function 'execute'
	[ctxlua]:38: in main chunk

42 
43 -- ***
44 -- ** 1) intern mit swiglib 
45 -- ***
46 
47 require("util-sql")
48 utilities.sql.setmethod("sqlite")
49 
50 local presets = {
51database = db,
52 >> }
53 
54 local data, keys = utilities.sql.execute {
55presets = presets,
56template = abfrage,
57}
58 
59 context(data[titel])
60 context.crlf()
61 context(data[sachverhalt])
62 context.crlf()


? 

lua error   > lua error on line 64 in file /home/jorg/Dokumente/Projekte/ConTeXt - Test/lua-test.tex:

...texmf-dist/tex/context/base/mkiv/util-sql-imp-sqlite.lua:36: attempt to index local 'sqlite' (a boolean value)
stack traceback:
	...texmf-dist/tex/context/base/mkiv/util-sql-imp-sqlite.lua:36: in main chunk
	[C]: in function 'requiem'
	...live/2017/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:180: in function <...live/2017/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:165>
	(...tail calls...)
	...xlive/2017/texmf-dist/tex/context/base/mkiv/util-sql.lua:114: in function '__index'
	...xlive/2017/texmf-dist/tex/context/base/mkiv/util-sql.lua:288: in fun

[NTG-context] context and sqlite

2018-10-06 Thread Jörg Hofmann
I've been trying to connect ConTeXt to sqlite for almost a week
but I have repeatedly failed. Neither the
"internal" variant according to the documentation, nor the attempt on
luasql
have worked. Above all, the Google request showed me that
not alone with this problem - how reassuring. ;-)

At the moment, concentrate I am accessing via swiglib and think my
problem lies here (from my log file):

sql> start loading method 'sqlite'
swiglib> unknown: 'swiglib.sqlite.core'
swiglib> unknown: 'swiglib.helpers.core'

Obviously, the appropriate modules are not found, but where
Can I get them and where do they belong? And maybe
also someone a working code example for me.
I'm working with Texlive 2017 on XUBUNTU 16.04.

Best regards
Jörg Hofmann
___
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
___