Error for importing graphml file to neo4j - import

I can't import my graphml file into neo4j using neo4j shell. I use this command:
import-graphml -i C:\Users\MARIAM\Desktop\football.graphml
but I get this error message:
Invalid input 'i': expected <init> (line 1, column 1 (offset: 0))
"import-graphml -i C:\Users\MARIAM\Desktop\football.graphml"
^

It seems like you did not install Neo4j shell tools properly.
The error here is that import-graphml is not recognized as a command.

to run the Neo4j shell tools, we need to go to the Options->Commands Prompts-> Neo4jShell.
And after run the command: import-graphml -i filepath/filename

Related

Running druid script for injestion spec failed - bin/post-index-task --file quickstart/tutorial/wikipedia-index.json

I am trying to follow the quickstart for running the script but it is failing with this error in druid router cli:
~ $ bin/post-index-task --file quickstart/tutorial/wikipedia-index.json
bin/post-index-task: /opt/druid/bin/post-index-task-main: /usr/bin/env: bad interpreter: No such file or directory
bin/post-index-task: line 31: /opt/druid/bin/post-index-task-main: No error information
bin/post-index-task is already present but it seem to throw an error of No such file or directory.
Please guide, thanks.

ERROR: gcloud crashed (UnicodeDecodeError): 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics
+ GAE=/platform/google_appengine
make: *** [local_service_config]
I'm getting this & don't know what to do... I just want to use the sdk ,I have tried to reinstall gcloud sdk and added the configuration in ~/.zshrc file but still getting this error. Also tried to run after adding these in ~/.zshrc file
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Note: M1 Mac User

'shp2pgsql' is not recognized : command not found error

I am trying to import shape file to postgis. I have problem configuring shp2pgsql.
I am getting this error :
-bash: shp2pgsql: command not found
I have read different threads without getting any results like: https://github.com/Homebrew/homebrew/issues/19213
macbook$ locate shp2pgsql
/Library/PostgreSQL/9.3/PostGIS/man/shp2pgsql.1
/Library/PostgreSQL/9.3/bin/shp2pgsql
/usr/bin/shp2pgsql
macbook$ otool -L shp2psql
otool: can't open file: shp2psql (No such file or directory)
I tried to run which command
macbook$ which shp2pgsql
I got nothing .
macbook$ ls /usr/bin/shp2pgsql
/usr/bin/shp2pgsql
First guess was that "shp2pgsql" is not linked. How can I link /usr/bin/shp2pgsql in postgres PostgreSQL when I tried to run :
sudo ln -s /Library/PostgreSQL/9.3/bin/shp2pgsql /usr/bin/shp2pgsql
It says that : : ln: /usr/bin/shp2pgsql: File exists
UPDATE
When I linked shp2pgsql
dyld: Library not loaded: #loader_path/../lib/liblwgeom-2.1.1.dylib
Referenced from: /Library/PostgreSQL/9.3/bin/shp2pgsql
Reason: image not found
When i tried to locate liblwgeom
macbook$ locate liblwgeom
/Library/Caches/Homebrew/Formula/liblwgeom.brewing
/Library/Caches/Homebrew/liblwgeom-2.1.1.tar.gz
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom-2.1.1.dylib
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.a
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.dylib
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.la
/usr/local/Cellar/liblwgeom
/usr/local/Cellar/liblwgeom/2.1.1
/usr/local/Cellar/liblwgeom/2.1.1/COPYING
/usr/local/Cellar/liblwgeom/2.1.1/ChangeLog
/usr/local/Cellar/liblwgeom/2.1.1/INSTALL_RECEIPT.json
/usr/local/Cellar/liblwgeom/2.1.1/LICENSE.TXT
/usr/local/Cellar/liblwgeom/2.1.1/NEWS
/usr/local/Cellar/liblwgeom/2.1.1/TODO
/usr/local/Cellar/liblwgeom/2.1.1/include
/usr/local/Cellar/liblwgeom/2.1.1/include/liblwgeom.h
/usr/local/Cellar/liblwgeom/2.1.1/lib
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom-2.1.1.dylib
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom.a
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom.dylib
/usr/local/Library/Formula/liblwgeom.rb
/usr/local/opt/liblwgeom
Any thoughts how to resolve this problem.
Write echo $PATH in your bash console and tell us what it says.
Probably this can be fixed by
PATH=$PATH:/Library/PostgreSQL/9.3/bin/
export PATH

Error in PHP code, Line // Col Non-existent?

WHen I try to run indexer for sphinx.
/usr/bin/indexer --rotate --all
I get this error...
using config file '/etc/sphinx/sphinx.conf'...
ERROR: invalid section type 'Strict' in /etc/sphinx/sphinx.conf line 1617 col 8.
ERROR: invalid section type 'Strict' in /etc/sphinx/sphinx.conf line 1617 col 1.
FATAL: failed to parse config file '/etc/sphinx/sphinx.conf'
When I check sphinx.conf there is no line 1617. The last line of code is 1373. Could someone tell this newb what I'm doing wrong and how do I debug a line that doesn't exist?
Thanks!
It sounds like you have a dynamic config file? ie contains embedded PHP code?
If so try running the config file on its own, and then inspecting that.
php /etc/sphinx/sphinx.conf > /tmp/sphinx.conf
cat -n /tmp/sphinx.conf | grep 1617 -C10
ie sphinx is finding the error in the generated output, not the raw code.

I have Insatlled every dependencies in IPython.Stil it showing Error like Below

In [3]: ipcluster start -n 4
File "", line 1
ipcluster start -n 4
^
SyntaxError: invalid syntax
According to http://mail.scipy.org/pipermail/ipython-user/2011-April/007477.html, you may be trying to run command-line scripts from Python. You should try running ipcluster from the command line.