Using ArangoDB through the command line not working - arangodb

Thanks for taking the time, so - Arango is installed and the WebUI has been working fine. I've been doing the tutorials and finished the basics, but attempting to move on and import my own data I'm getting stuck.
I stored my data in a google sheet so I exported that for ingest but then trying to access the command line tools to ingest it, I hit a hurdle of "command not found". Trying "arangoimport" for example as recommended here, or "arangimp" and other recommendations I found online from a search. I also tried other command line tools and had the same issue.
Where should I be running this command from? (and how can I get there?) If the command can and should be run from the first terminal window I open, then please can you tell me what I'm missing and need to do :)
Thanks,
Josh

Open terminal and use cd to go to the directory in which arangoimport.exe is stored.
When the terminal is in that directory you can run the arangoimport command.

Related

Task Scheduler for running python script done in PyCharm - Anaconda environment

I have created several scripts in PyCharm, inside an Anaconda3 environment. The thing is that I would like to run them with the task scheduler during the night, so hopefully by the time I get up they have done their stuff.
I have read a million post in Microsoft support and in here, and I haven't found an answer for this issue.
This is a print of the set-up for the Task Scheduler:
For the program, I use the path to python.exe inside anaconda ( I take this path from cmd / where python).
Start in: the route to the script: C:\Users\oper\PycharmProjects\MyProject
It doesn't run, and it brings the error: 0x1. Opens a CommandPrompt windows and immediately closes it. I see the error in: Last Run Result.
I have been able to run a much simpler code that prints a .txt in a specified folder - but not this one.
Additional info:
this script runs a Selenium WebDriver and navigates some websites, connects with Google's OCR, etc. All these steps are written in several other modules for ease of coding.
All the libraries used were installed using pip inside PyCharm's terminal. Might be related to not having the libraries in sync? Don't know how to check that.
I would also like to set up a wake-up from sleep for the computer. Probably a different problem for another question.
Thanks in advance.

I am facing issues printing things on repl.it

I am new to repl.it and I was trying to print the python version using this code Print Version of the Python Running on the Machine
Here's the code:
import sys
print("Python version")
print (sys.version)
print("Version info.")
print (sys.version_info)
but it prints absolutely nothing. Trying to do the same thing onto Jupyter Notebook and my code works. While I know I can print the version directly from the shell tab out there but I was wondering what's wrong with my code and why it isn't working with repl.it
This seems to be the same for user input as well where I try to do
name = input("Print my name?\n")
but it prints absolutely nothing onto the console. I am sure someone here must know what am I missing here. Sorry if this is a noob question.
"Help! 🙋 My REPL won't run"
Here are six reasons your Python REPL.it environment may not be working. 📃
Checklist to fix common problems
Have you configured your Run ▶️?
Repl.it doesn't automatically run your current working document. Configuring your Run ▶️ button will enable replit to know what to do when you hit the button.
Configuring the "Run" Button
A file named .replit can be added to any repl in order to customize the behavior of the "Run" button. Written in toml, a .replit file looks something like:
run = "<run command here>"
language = "<repl language>" # optional
In the snippet above, run is a string which will be executed in the shell whenever you hit the "Run" button. The language helps the IDE understand how to provide features like packaging and code intelligence. This is normally configured for you when you clone from a Git repository.
The .replit file can also provide other configuration hints. The full specification is provided below:
run: Command that is executed when the run button is clicked
language: Reserved
onBoot: Command that is executed once when the repl first starts up
packager.afterInstall: Command that is executed after a new package is installed
packager.ignoredPaths: List of paths to ignore while attempting to guess packages (More about installing packages)
packager.ignoredPackages: List of modules to never attempt to guess a package for, when installing packages (More about installing packages)
Example .replit File
run="python main.py"
language="python3"
onBoot="echo Booting up!"
[packager]
afterInstall="date >> package_install_log"
ignoredPaths=[".git"]
ignoredPackages=["twitter", "discord"]
Attempt running the *.py script through the interactive shell instead of console. If the script runs in console, you may be needing to diagnose the shell. See choices below.
Check that the Browser Developer Console is not showing any errors If you see errors, you may be having issues with your browser or extensions. Try disabling browser extensions temporarily.
REPL.it relies on Google Cloud Platform services for its backend functionality and sometimes those servers are unresponsive. Check the REPL.it status page or the REPLIT Twitter account to see if they're having a GCP backend service outage. If they haven't updated recently, they may be responding to an unreported outage. Check Google's own GCP status page here. You can also Tweet at the CEO of Repl.it here.
Try refreshing the REPL.it environment locally. Clear the console output and scroll-back by using the ✖️ next to the search icon 🔍. Also, try exiting the Python REPL with exit() to see if it will respond.
If #5 doesn't work, try an empty-cache hard reload. This can help to expunge unresponsive javascript, broken html, misbehaving css, and any unmetabolized toxins from the bowels of your browser.

NodeJS is not recognizing commands on windows 10

I've installed Node.js on Windows 10 using this tutorial. I set the system variable for it as shown below [also explained in this SO post. But when I run the following command in the command prompt, I get the following error:
Error
Nodejs environment variable:
UPDATE
I'm just starting with learning Node.js. Below you can find (pics) is the way I'm trying to access Node.js on my windows 10 machine. It's not working. What should I do instead?
If you've correctly installed NodeJS on your machine you should be able to do the following:
Go to start and search for Node.js [ a 'desktop app' should appear with a green icon having the exact same name you entered -Can't miss it :) ]
I suggest opening it as an administrator -[not really necessary, but to avoid (possible) further problems ]
Open that, and try typing the same command e.g. console.log('What about now? :)')
Since you like pictures, here you go :)

Issue while displaying a command line in Qterminal

I am currently setting up a linux machine using Arch-based distribution with :
SDDM as display manager
LXQT as Desktop environment
Using Qterminal as Terminal emulator, I am encountering the following problem:
The top part of what I am typing is not showing on display but the entered command still work
It seems to be a line spacing problem, nevertheless I am not able to find a workaround for this in settings,
Does anyone have an idea? Thanks for answering

What's the difference between an application launcher and type in an application name and run it from teriminal?

I have a QT application. When I use my created application launcher to start it, it doesn't work.
However, if I go to terminal and run the application from there, it works.
I'm wondering what their differences are.
Thanks.
Maybe your application launcher doesn't contain the right command and environment?
How is your launcher trying to start the program? Are any errors being reported?
It could be that the current directory is not set as expected. Or the command line parameters being sent aren't formatted correctly. Hard to say without seeing some code or an error message.

Resources