swipl-devel icon indicating copy to clipboard operation
swipl-devel copied to clipboard

swi Prolog version 8.2.4 refuses to read on exchangeable media

Open Jdeirng opened this issue 4 years ago • 5 comments
trafficstars

Jdeirng avatar Feb 04 '21 13:02 Jdeirng

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.

JanWielemaker avatar Feb 04 '21 14:02 JanWielemaker

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,

Jdeirng avatar Feb 04 '21 15:02 Jdeirng

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.

JanWielemaker avatar Feb 04 '21 15:02 JanWielemaker

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,...,[],...)) ERROR: [33] setup_call_catcher_cleanup(system:'$open_source'('/media/koos/Kobalt/data/doplan/base.pl',_17754,...,[],...),system:'$term_in_file'(_17770,_17772,_17774,_17776,_17778,_17780,...,...),_17740,system:'$close_source'(...,true)) at /snap/swi-prolog/27/usr/lib/swipl/boot/init.pl:615 ERROR: [30] '$source_term'('/media/koos/Kobalt/data/doplan/base.pl',_17822,_17824,_17826,_17828,_17830,[expand(false),...]) at /snap/swi-prolog/27/usr/lib/swipl/boot/init.pl:1670 ERROR: [29] '$load_file'('/media/koos/Kobalt/data/doplan/base.pl','/media/koos/Kobalt/data/doplan/base.pl',_17876,[expand(false),...]) at /snap/swi-prolog/27/usr/lib/swipl/boot/init.pl:2913 ERROR: [28] setup_call_catcher_cleanup(system:'$start_consult'('/media/koos/Kobalt/data/doplan/base.pl',1612451333.4279077),system:'$load_file'('/media/koos/Kobalt/data/doplan/base.pl','/media/koos/Kobalt/data/doplan/base.pl',_17950,...),_17922,system:'$end_consult'('/media/koos/Kobalt/data/doplan/base.pl',...,user)) at /snap/swi-prolog/27/usr/lib/swipl/boot/init.pl:614 ERROR: [24] '$do_load_file_2'(base,'/media/koos/Kobalt/data/doplan/base.pl',user,compiled,[expand(false),...]) at /snap/swi-prolog/27/usr/lib/swipl/boot/init.pl:2499 ERROR: [21] '$qdo_load_file'(base,'/media/koos/Kobalt/data/doplan/base.pl',user,[expand(false),...]) at /snap/swi-prolog/27/usr/lib/swipl/boot/init.pl:2454 ERROR: [19] setup_call_catcher_cleanup(system:with_mutex('$load_file',...),system:'$mt_do_load'((0x5610469c0300),base,'/media/koos/Kobalt/data/doplan/base.pl',user,...),_18088,system:'$mt_end_load'((0x5610469c0300))) at /snap/swi-prolog/27/usr/lib/swipl/boot/init.pl:614 ERROR: [9] ERROR: ERROR: Note: some frames are missing due to last-call optimization. ERROR: Re-run your program in debug mode (:- debug.) to get more detail. ^ Exception: (19) setup_call_catcher_cleanup(system:with_mutex('$load_file', '$mt_start_load'('/media/koos/Kobalt/data/doplan/base.pl', (0x5610469c0300), [expand(false), expand(true)])), system:'$mt_do_load'((0x5610469c0300), base, '/media/koos/Kobalt/data/doplan/base.pl', user, [expand(false), expand(true)]), _18348, system:'$mt_end_load'((0x5610469c0300))) ?

Jdeirng avatar Feb 04 '21 16:02 Jdeirng

This seems a generic snap property. See e.g., https://www.filebot.net/forums/viewtopic.php?t=5139

JanWielemaker avatar Feb 05 '21 08:02 JanWielemaker