how to consult a file on a ftp area in prolog? - ftp

I try to consult a prolog file from a home server. See below.
So far, no success.
No urgency: I just upload the file locally to a PC where swi-prolog is installed and make the works from there. making the works remote would be a bit better.. = I could works from any PC in the house without uploading locally the file on a PC.
I see the file with PCManFM 1.2.5 from any PC: perhaps this is a question of access because prolog should store in any way the user and pw in order to access automatically the file via ftp.
?- consult(ftp://192.168.178.1/EXCHANGE_02/transfer/uwr).
ERROR: Syntax error: Operator expected
ERROR: consult(ft
ERROR: ** here **
ERROR: p://192.168.178.1/EXCHANGE_02/transfer/uwr) .
?- consult('ftp://192.168.178.1/EXCHANGE_02/transfer/uwr.pl').
ERROR: source_sink `'ftp://192.168.178.1/EXCHANGE_02/transfer/uwr.pl'' does not exist
?- consult("ftp://192.168.178.1/EXCHANGE_02/transfer/uwr.pl").
ERROR: source_sink `"ftp://192.168.178.1/EXCHANGE_02/transfer/uwr.pl"' does not exist

Related

Pybullet error: physics server version mismatch (expected 202010061 got 201902120)

Pybullet error: physics server version mismatch (expected 202010061 got 201902120)
I am trying to connect pybullet with VR, and I try to run the example vr code given inside pybullet, vr_kuka_setup_vrSyncPlugin.py, I first ran the "build_visual_studio_vr_pybullet_double.bat" script and the App_PhysicsServer_SharedMemory_VR*.exe, and then I tried vr_kuka_setup_vrSyncPlugin.py, but I get such an error message:
b3Error[examples/SharedMemory/PhysicsClientSharedMemory.cpp,359]:
Error: physics server version mismatch (expected 202010061 got 201902120)
I am pretty sure that there is only one version of pybullet in my computer, the 3.0.9, and the python file and App_PhysicsServer_SharedMemory_VR*.exe comes from the same repo, so I don't know what is the problem related to this error? Is it a version error or something else?
output for code:
code itself
I don't think the pybullet connects to the shared memory successfully, and I think it connects to GUI.

Error: command "bash" failed with no error message?

I am using terraform on my Mac system, and terraform apply results with below error
Error: command "bash" failed with no error message
on ssm.tf line 7, in data "external" "ssm-dynamic-general":
7: data "external" "ssm-dynamic-general" {
However there is nothing wrong in ssm.tf file, same runs perfectly fine in my another system.
Can some one please let me know what i am missing here?
You might have done what I accidentally did: not follow the external program protocol:
https://www.terraform.io/docs/providers/external/data_source.html#external-program-protocol
In my particular case, I failed to send the errors that were coming from my program to standard error. Instead, those errors were going to standard out.
That's why Terraform wasn't able to report on those errors.
So if you send any and all errors from your program to standard error using > &2, you should be able to see those errors when you run terraform plan.

tensorflow_datasets.load() downloads but cannot extract certain datasets

Calling tensorflow_datasets.load('cycle_gan/apple2orange') works fine
but tensorflow_datasets.load('cycle_gan/vangogh2photo') gives me an error.
I've tried this on my desktop and laptop and both gave the same error message.
Here's the code I ran and the error message I got:
import tensorflow_datasets as tfds
dataset = tfds.load('cycle_gan/vangogh2photo',
data_dir='data', batch_size=1, download=True, in_memory=False)
InvalidArgumentError: Failed to create a NewWriteableFile: data\downloads\extracted\ZIP.peop.eecs.berk.edu_taes_park_Cycl_data_vanNiw0c-cL4JRL2gjUnWYOr9woVN9V1peDW4GG0decqv8.zip.incomplete_bf327518b23f41ee9a3a469cc0b541ba\vangogh2photo\testB\2014-12-10 12:08:40.jpg : The filename, directory name, or volume label syntax is incorrect.
; Unknown error
then it says
During handling of the above exception, another exception occurred:
(traceback)
ExtractError: Error while extracting data\downloads\peop.eecs.berk.edu_taes_park_Cycl_data_vanNiw0c-cL4JRL2gjUnWYOr9woVN9V1peDW4GG0decqv8.zip to data\downloads\extracted\ZIP.peop.eecs.berk.edu_taes_park_Cycl_data_vanNiw0c-cL4JRL2gjUnWYOr9woVN9V1peDW4GG0decqv8.zip : Failed to create a NewWriteableFile: data\downloads\extracted\ZIP.peop.eecs.berk.edu_taes_park_Cycl_data_vanNiw0c-cL4JRL2gjUnWYOr9woVN9V1peDW4GG0decqv8.zip.incomplete_bf327518b23f41ee9a3a469cc0b541ba\vangogh2photo\testB\2014-12-10 12:08:40.jpg : The filename, directory name, or volume label syntax is incorrect.
; Unknown error
How do I fix this?
Which OS are you using?
There is an issue with some datasets on Windows when composing the URLs to fetch the files or the URLs where to save them locally.
For the Oxford Pets III dataset, the link below provides the fix:
https://github.com/tensorflow/tensorflow/issues/31171#issuecomment-529169445
Perhaps something similar may apply here?

Oracle11gR2 silent install on centos6.5

I run ./runInstaller -silent -force -responseFile /data/app/oracle/etc/db_install.rsp and show some warnings
[INS-13014] Target environment do not meet some optional requirements.
I check the log file and find some problems as following
Validating Response File /data/app/oracle/etc/db_install.rsp
WARNING: Unable to find the namespace URI. Reason: Start of root element expected.
INFO: Setting Response file data to the Installer
WARNING: Unable to find the namespace URI. Reason: Start of root element expected.
I searched many sites and still can not deal with it.
Help me !

Failed opening required 'Smarty_Internal_TemplateCompilerBase.php'

I'm using smarty version 3.1.13;
My project works perfectly on the local server;
When I put my site on the server (www.1and1.com) appears the following error:
Fatal error: require_once():
Failed opening required 'Smarty_Internal_TemplateCompilerBase.php'
(include_path='/homepages/39/d441258317/htdocs/mtx/application:/
homepages/39/d441258317/htdocs/mtx/application/controllers:
/homepages/39/d441258317/htdocs/mtx/application/models:
/homepages/39/d441258317/htdocs/mtx/application/../library:
/homepages/39/d441258317/htdocs/mtx/application/../library/Smarty
/sysplugins:/homepages/39/d441258317/htdocs/mtx/application/../library
/Smarty/plugins:.:/usr/lib/php6') in /homepages/39/d441258317/htdocs/
mtx/index.php on line 28
I changed the permissions of the folder compile_c but nothing, still get an error
Appreciate your help
looks like a big problem but was not. When i created my folder in local server did i put "public" folder with "P" upercase. Because i have a linux server and linux it's case sensitive it not works. Just rename the folder from "Public" to "public" and it done!

Resources