Re: Strange behavior with 'httpGate'

2018-04-18 Thread Alexander Burger
Hi Erik, > Everything works so long as I'm logged into the server and have restarted > httpGate or started the picolisp process manually (same as httpGate does). > > Calling external functions is broken, once I've logged out and left Hmm, this looks like it has to do with the runtime

Strange behavior with 'httpGate'

2018-04-18 Thread Erik Gustafson
Hi List, I have a PL app running on a DigitalOcean droplet, behind httpGate. The relevant entry in my 'names' file is: api erik /home/erik/picoLisp loves-wake-log ./pil loves-wake-2.0/server/main.l -main -go -wait For this project I've been experimenting with JSON Web tokens, using my

Re: PilBox IOException "No such file"

2018-04-18 Thread David Bloom
Thanks for the reply Alex and I hope that the community solves this one. On Wed, Apr 18, 2018, 12:32 PM Alexander Burger wrote: > On Wed, Apr 18, 2018 at 03:54:56PM +, David Bloom wrote: > > I'm not certain that is relevant but I did run into issues with pil in > >

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 03:54:56PM +, David Bloom wrote: > I'm not certain that is relevant but I did run into issues with pil in > termux that was corrected with the page below. There's a newer fix on the > page linked below but I've been using termux-fix-shebang successfully for > about a

Re: 32 vs 64 bit ???

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:37:47PM +0200, Manuel Cano wrote: > I've found this also when having problems with the interpreter (bash.) > May be file encoding or end line chars. > > https://unix.stackexchange.com/questions/27054/bin-bash-no-such-file-or-directory Hmm, "#!/bin/bash no such file or

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:31:42PM +0200, Arie van Wingerden wrote: > It might have to do with a change in Android 7: > > https://developer.android.com/about/versions/nougat/android-7.0-changes.html > read paragraph: >File system permission changes OK, but I have it running on 7 and 8

Re: PilBox IOException "No such file"

2018-04-18 Thread David Bloom
I'm not certain that is relevant but I did run into issues with pil in termux that was corrected with the page below. There's a newer fix on the page linked below but I've been using termux-fix-shebang successfully for about a year now. I hope that this can help.

Re: 32 vs 64 bit ???

2018-04-18 Thread Manuel Cano
I've found this also when having problems with the interpreter (bash.) May be file encoding or end line chars. https://unix.stackexchange.com/questions/27054/bin-bash-no-such-file-or-directory Kind regards, Manu 2018-04-18 16:30 GMT+02:00 Arie van Wingerden : >

Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
It might have to do with a change in Android 7: https://developer.android.com/about/versions/nougat/android-7.0-changes.html read paragraph: File system permission changes 2018-04-18 17:20 GMT+02:00 Alexander Burger : > On Wed, Apr 18, 2018 at 05:07:35PM +0200, Richard

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:11:43PM +0200, Arie van Wingerden wrote: > I really think the device should be debugged to find the problem. Yep, I will try to get one. > Last 2 things: > 1. could it have to do with moving the App to an SD Card? Thought so too, but the screenshot of the error shows

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:07:35PM +0200, Richard Z wrote: > maybe the binary has the name or link to the dynamic linker hardcoded and > it has a different name on this system? This could perhaps be. The glibc library. But from what I tested I think we would see a different error message. ♪♫

Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
I really think the device should be debugged to find the problem. Last 2 things: 1. could it have to do with moving the App to an SD Card? 2. found this http://www.cnblogs.com/lidonghao/p/3700401.html which hints at a mix of 32 and 64 bit At the moment I have no further leads whatever. Would

Re: Similar error on Android

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:33:36PM +0200, Arie van Wingerden wrote: > Found similar error here: > https://stackoverflow.com/questions/49660145/error-2-no-such-file-or-directory-when-hosting-an-executable-within-android-a This code is problematic. Runtime.getRuntime().exec("/system/bin/chmod

Re: PilBox IOException "No such file"

2018-04-18 Thread Richard Z
On Wed, Apr 18, 2018 at 04:04:43PM +0200, Alexander Burger wrote: > Yes. The Android way, by calling 'getFilesDir().getPath();'. This gives the > absolute path to the app's working directory, and then it is called with > a relative path "bin/picolisp" (plus the initial *.l files). maybe the

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:43:55PM +0200, Arie van Wingerden wrote: > I just checked that both CPU and GPU of that device are both 64 bit. > Is it possible they somehow use a 32 bit version op PILBOX? This is checked by PilBox at startup with System.getProperty("os.arch") > I searched in Google

Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
Yes, indeed. Sigh :-( I just checked that both CPU and GPU of that device are both 64 bit. Is it possible they somehow use a 32 bit version op PILBOX? I searched in Google Play for an app which can show file permissions, but to no avail. If there is one, they could check if something is wrong

Similar error on Android

2018-04-18 Thread Arie van Wingerden
Found similar error here: https://stackoverflow.com/questions/49660145/error-2-no-such-file-or-directory-when-hosting-an-executable-within-android-a Alas, no solution, but maybe triggers some insight ...

32 vs 64 bit ???

2018-04-18 Thread Arie van Wingerden
https://askubuntu.com/questions/133389/no-such-file-or-directory-but-the-file-exists

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:19:16PM +0200, Arie van Wingerden wrote: > Maybe there is restricted access higher up in the path? But it is the app's home directory (in Android each app is its own user). And it works on all other devices. ♪♫ Alex -- UNSUBSCRIBE:

Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
Maybe there is restricted access higher up in the path? 2018-04-18 16:09 GMT+02:00 Alexander Burger : > Hi Arie, > > > trying to help you out ... > > Good :) > > > > https://stackoverflow.com/questions/47726155/java-io- >

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi Arie, > trying to help you out ... Good :) > https://stackoverflow.com/questions/47726155/java-io-ioexception-cannot-run-program-adb-exe-createprocess-error-5-access-is > > Which concerns Windows, but similar error. > So, maybe might have to do with user rights on the PicoLisp executable

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi Richard, > > I have a customer with Samsung Xcover 4 devices, and they get an IOException > > 'Cannot run program "bin/picolisp" ... No such file'. > > did you try the absolute path? Yes. The Android way, by calling 'getFilesDir().getPath();'. This gives the absolute path to the app's

Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
Hi Alex, trying to help you out ... Found this: https://stackoverflow.com/questions/47726155/java-io-ioexception-cannot-run-program-adb-exe-createprocess-error-5-access-is Which concerns Windows, but similar error. So, maybe might have to do with user rights on the PicoLisp executable then?

Re: PilBox IOException "No such file"

2018-04-18 Thread Richard Z
On Wed, Apr 18, 2018 at 02:30:35PM +0200, Alexander Burger wrote: > Hi all, > > Anyone here who tried PilBox: > > I have a customer with Samsung Xcover 4 devices, and they get an IOException > 'Cannot run program "bin/picolisp" ... No such file'. did you try the absolute path? Richard --

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 02:48:21PM +0200, Arie van Wingerden wrote: > Is that device rooted maybe? In that case other rogue Apps might interfere I don't think so. They bought several Xcover devices for their use, and they are not power users. They got the error on all of them. ♪♫ Alex --

Re: PilBox IOException "No such file"

2018-04-18 Thread Arie van Wingerden
Is that device rooted maybe? In that case other rogue Apps might interfere .. Checked device for viruses/malware? 2018-04-18 14:30 GMT+02:00 Alexander Burger : > Hi all, > > Anyone here who tried PilBox: > > I have a customer with Samsung Xcover 4 devices, and they get an

Re: Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Maybe it has something to do with apt-get upgrade as well? Glad to hear the issue disappeared! 2018-04-18 14:16 GMT+02:00 Joe Bogner : > Arie, I followed your WSL steps on a newer machine and I don't see the db > locking issue any more. Thanks! My other machine has the

Re: Question about tutorial ...

2018-04-18 Thread Alexander Burger
Hi Arie, > @Joe could you show me an example where db locking didn't work? > Maybe I can test this and see if it does work correctly in the way I > now set up PicoLisp in WSL? You don't even need a DB to test the locking, the 'ctl' function will do. To test it, open two terminals and start

PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi all, Anyone here who tried PilBox: I have a customer with Samsung Xcover 4 devices, and they get an IOException 'Cannot run program "bin/picolisp" ... No such file'. However, the same APK works fine on other devices. How can "bin/picolisp" be missing? Any ideas? ♪♫ Alex -- UNSUBSCRIBE:

Re: Question about tutorial ...

2018-04-18 Thread Joe Bogner
Arie, I followed your WSL steps on a newer machine and I don't see the db locking issue any more. Thanks! My other machine has the problem but its WSL is at least 6 months old - so maybe it was fixed in WSL since then or possibly something fixed/changed by following your instructions. Thanks, I'll

Re: Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Hi Alex, 1) root mode was because I tried a lot of different things, but missed the obvious family64.tgz  2) had a few problems with cd-ing into folders, because under Windows it is a bit different So, after unpacking family64.tgz into a local folder in my home dir everything works great! Now

Re: Question about tutorial ...

2018-04-18 Thread Alexander Burger
Hi Arie, > * root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go +* > ... > *!? (pool "family/" *Dbs) "family/" -- Open error: No such file or > directory ?* This is probably because the "family/" directory does not exist yet. Or did you unpack the file "family64.tgz"? In

Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Hi, tried this: *​ root@HP-Arie:/usr/share/doc/picolisp/doc# *​ *pil @lib/http.l --server 8080 @doc/hello.l -wait* works OK! Can use the GUI from within standard Windows in browser. But this: * root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go +* fails with: *!? (pool