Neo4j Desktop | Neo.ClientError.Statement.ExternalResourceFailed - neo4j-desktop

Here, I simply introduce my situation about configuration:
System: Windows 11
Neo4j Desktop Version: 1.4.15
when I had finished that imports csv file to the C:\Users\ouyangkang\.Neo4jDesktop\relate-data\dbmss\dbms-00982ce7-0cb6-4ee7-b15a-1bc12ac5890e\import direcotry. I clicked open button and run following command:
LOAD CSV WITH HEADERS FROM 'file:///film_name.csv' AS row MERGE (n:name {name: row.name, encoding: row.encoding});
I got a error:
Couldn't load the external resource at: file:/C:/Users/ouyangkang/.Neo4jDesktop/relate-data/dbmss/dbms-00982ce7-0cb6-4ee7-b15a-1bc12ac5890e/import/film_name.csv
And I saw a similar error solution in Neo.ClientError.Statement.ExternalResourceFailed. I got a new error when configuration the neo4j.conf file
Couldn't load the external resource at: file:/film_name.csv
What's worse, I can't use the import function, it reminded that Trying to open undefined directory.
Please help me, thanks

I finially found the error that it is the file format question. The Neo4j not can use all csv file. You need to convert the file to guaratee the file format is standardized csv file with seperating by ','

Related

Unidentified translation file found for installed mods prestashop

Im working on a store in prestashop, and i tried to import the translation from another store into it (they are using the same theme). To do this i simply exported the files from one store and tried to import them into the other.
What happened is that i received this message:
1.Unidentified file found: modules/blocknewsletter/mails/pt/._newsletter_conf.html
2.Unidentified file found: modules/blocknewsletter/mails/pt/._newsletter_conf.txt
3.Unidentified file found: modules/blocknewsletter/mails/pt/._newsletter_verif.html
4.Unidentified file found: modules/blocknewsletter/mails/pt/._newsletter_verif.txt
5.Unidentified file found: modules/blocknewsletter/mails/pt/._newsletter_voucher.html
6.Unidentified file found: modules/blocknewsletter/mails/pt/._newsletter_voucher.txt
7.Unidentified file found: modules/sendtoafriend/mails/pt/._send_to_a_friend.html
8.Unidentified file found: modules/sendtoafriend/mails/pt/._send_to_a_friend.txt
I have made sure that both of the stores have the same modules installed, as well as the same versions of these modules, but the same message appears.
thank you.
You're using a Mac ._ are hidden files added by the system when you downloaded and explored the exported files. Then when you uploaded this export to the new site, those hidden files got uploaded too and Prestashop doesn't recognize it.
You should use dot_clean /path_to_your_extract command with Mac command line tool. This will remove all those unwanted ._ files. Then you will be able to import those files in your new shop.

Can download but file will not unzip as expected

I'm attempting to access the Geometadb database which first involves download of the SQL library. I did that and then I got the Geometadb library.
library(GEOmetadb)
Next I need the Geometadb file which is where things start to go wrong. I issue this command as seen exactly in the tutorial: https://bioconductor.riken.jp/packages/3.0/bioc/vignettes/GEOmetadb/inst/doc/GEOmetadb.html
if(!file.exists('GEOmetadb.sqlite')) getSQLiteFile()
It should proceed to not only download a .gz zip file but also unzip the file. It downloads it but never unzips it. Instead I get the following error.
trying URL 'http://dl.dropbox.com/u/51653511/GEOmetadb.sqlite.gz'
Error in download.file(url_geo, destfile = localfile, mode = "wb") :
cannot open URL 'http://dl.dropbox.com/u/51653511/GEOmetadb.sqlite.gz'
In addition: Warning message:
In url(url_geo_2, open = "rb") :
cannot open: HTTP status was '403 Forbidden'
Just not sure what's going on here. Considering these are just the early tutorial steps I'm probably missing something really obvious but I'm hoping someone can help me out. Thanks!

Download word document in local folder using Rselenium

I am using R selenium to navigate through a website and eventually click a button that opens a dialog window to download the file. However, I want the file to automatically save in a different local folder.
My question is similar to this question.
Instead of using remDr <- remoteDriver(browserName = "firefox") I have tried
remDr <- remoteDriver(extraCapabilities = makeFirefoxProfile(list(
"browser.helperApps.neverAsk.saveToDisk"="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
)), but this gave an error that some local folder does not exist.
Note that I have no prior knowledge of Selenium and am quite new to programming.
All help welcome!
EDIT: because it it concerns a .docx file the correct MIME type appears to be: application/vnd.openxmlformats-officedocument.wordprocessingml.document. So I tried the following:
remDr <- remoteDriver(extraCapabilities = makeFirefoxProfile(list(
"browser.helperApps.neverAsk.saveToDisk"="application/vnd.openxmlformats-officedocument.wordprocessingml.document")
))
but this gave following error:
Error in file(tmpfile, "rb") : cannot open the connection
In addition: Warning messages:
1: running command '"zip" -r9Xjq "C:\Users\PiKr\AppData\Local\Temp\RtmpApt5uQ\file19006f62c60.zip" "C:\Users\PiKr\AppData\Local\Temp\RtmpApt5uQ/firefoxprofile/prefs.js" ' had status 127
2: In file(tmpfile, "rb") :
cannot open file 'C:\Users\PiKr\AppData\Local\Temp\RtmpApt5uQ\file19006f62c60.zip': No such file or directory
I guess you must install the Rtools from the website and install the rtools before your proceed running the above program. Zipping action needs Rtools to perform. (Referring to the error 1)
Add the path to environment variable, if it doesn't add automatically

Google app engine: parse a sql database

I have a MyFile entity with sql db file:
class MyFile(ndb.Model):
data = ndb.BlobProperty()
data property store sql db file. So in requestHandler I need to parse this file.
I am trying to using standard sqlite3 library, but getting error on gae side:
ImportError: No module named _sqlite3
With PyDbLite library I am getting error too:
from PyDbLite.SQLite import Database, Table
File "libs/PyDbLite/SQLite.py", line 81, in <module>
from pysqlite2 import dbapi2 as sqlite
Is there any way to parse sql database in goggle app engine?
I know that gae uses NoSQL datastore, I just need to handle sql db file.
The module _sqlite3 may be in your python path locally, but when deployed, the module cannot be found. You can debug your python path by printing it when in production and making sure the module is visible on that path (keep in mind that any old file or folder isn't considered a module ready for import by python, it needs to have __init__.py).
The only reason you would receive that error is if you either
A) failed to upload the module you're using as part of your project, mistakenly believing that since it was visible to your local python code it should be visible when deployed
or
B) failed to reference the uploaded module correctly. My comments in the first paragraph should help you debug this case.

File upload issue in CI

I am using CI and facing a problem while uploading file.
It gives a message mentioned below.
==================================================
Severity: Warning
Message: escapeshellarg() has been disabled for security reasons
Filename: libraries/Upload.php
Line Number: 1066
In some answers, I found that it is a server issue and CI has nothing to do with it. Now, is there any way to upload file bypassing the escapeshellarg() or is there any libraries I can use that doesn't require escapeshellarg()?
Please help.
I'm not sure which specific version of CI you're using, but the latest version does a check for that function before using it.
Take a look at the code here:
$cmd = function_exists('escapeshellarg')
? 'file --brief --mime '.escapeshellarg($file['tmp_name']).' 2>&1'
: 'file --brief --mime '.$file['tmp_name'].' 2>&1';
I'd say either upgrade or update the code manually.