swipl-devel
swipl-devel copied to clipboard
swi Prolog version 8.2.4 refuses to read on exchangeable media
Prolog knows nothing about exchangeable media. It is passes the file name to the OS calls. Surely there may reasons why that doesn't work for you. To say anything meaningful please include the OS you are using and the exact Prolog calls you are trying.
I now think it is a side-effect of my installing the snap-release of swi-Prolog ( on Linux Mint 19) , whats bugging me is the fact that in the office - with - Windows, I had the same problem, but the source may be unrelated,
The snap version is a confined snap. Possibly a bit too much? Windows is definitely a different issue. In both cases, be specific about the calls you use and the errors they return.
koos@koos-OptiPlex-360:~$ cd /media/koos/Kobalt/data/doplan koos@koos-OptiPlex-360:/media/koos/Kobalt/data/doplan$ swi-prolog.swipl Welcome to SWI-Prolog (threaded, 64 bits, version 8.2.4) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software. Please run ?- license. for legal details.
For online help and background, visit https://www.swi-prolog.org For built-in help, use ?- help(Topic). or ?- apropos(Word).
?- consult(base).
ERROR: No permission to open source_sink `'/media/koos/Kobalt/data/doplan/base.pl'' (Permission denied)
ERROR: In:
ERROR: [38] open('/media/koos/Kobalt/data/doplan/base.pl',read,_17590)
ERROR: [36] '$open_source'('/media/koos/Kobalt/data/doplan/base.pl',_17616,close(_17626,'/media/koos/Kobalt/data/doplan/base.pl',_17630),[],[expand(false),...]) at /snap/swi-prolog/27/usr/lib/swipl/boot/init.pl:1718
ERROR: [35]
ERROR: [34] '$sig_atomic'(system:'$open_source'('/media/koos/Kobalt/data/doplan/base.pl',_17706,...,[],...))
This seems a generic snap property. See e.g., https://www.filebot.net/forums/viewtopic.php?t=5139