Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running Medrxiv in windows 10 #58

Open
Priya-Jk-15 opened this issue May 28, 2020 · 6 comments
Open

Problem running Medrxiv in windows 10 #58

Priya-Jk-15 opened this issue May 28, 2020 · 6 comments
Assignees

Comments

@Priya-Jk-15
Copy link
Collaborator

After downloading python and pip from

https://github.com/petermr/openVirus/blob/ferret/ferret/README.md

I am unable to download the requirements from the given syntax.

What shall I change in the syntax or is there anything else I should do before downloading the requirements?

Kindly guide me.

@petermr
Copy link
Owner

petermr commented May 29, 2020

When we post Issues we have to take a special approach. It's like writing a record of an experiment. We have to make it clear (including printouts/console logs/files created, etc).

  • what we were trying to do (including any instructions)
  • what we expected to happen
  • what actually happened (including error messages)
  • (possibly) where we think the problem lies

For example:

  • I'm running Ferret (On Windows-10) to query medrxiv
  • I have installed Ferret and tested that it works (give output)
  • I issued the following command (give details)
  • I got the output (give details)
  • the output file (name) does not contain any content

Or

  • I have installed Ferret
  • I cannot find documentation on how to issue a query

Or

  • I have installed Ferret
  • I ran a query against medrxiv (give details)
  • after 20 minutes there was no output.

Or

  • when trying to install Ferret I got a fatal error "no such class exception" (give full output).

It's perfectly OK to ask questions but they must be clear and they must show that you have tried to solve it as far as you can. (I'll give an example in Slack).

@Priya-Jk-15 Priya-Jk-15 changed the title Problem running Medrvix in windows 10 Problem running Medrxiv in windows 10 May 29, 2020
@Priya-Jk-15
Copy link
Collaborator Author

I am trying to run Medrxiv using the Dockerised Ferret Service

I have downloaded python and pip

I have installed ferret and
in ferret.exe, I gave the following command

pip install -r requirements.txt

The output shown was:

line 1:4 missing '(' at 'install'
Failed to parse the query
missing '(' at 'install' at 1:4

https://drive.google.com/file/d/1bV7asWnlWAgSQYHFguDcH7FT3CKpC2rK/view?usp=sharing

Did I give the command in correct directory?
Kindly help me in testing the installation of ferret and in downloading the requirements.

@petermr
Copy link
Owner

petermr commented May 29, 2020

This is a good report @Priya-Jk-15 . If it's not too large, it would be useful to dislay the contents of requirements.txt.
Also useful to show which directory you launched this from.
(BTW this type of problem is quite common in installing and running new software)

@l-hawizy
Copy link
Collaborator

hi @Priya-Jk-15 , for the dockerised ferret, you don't need to run ferret.exe (ferret.exe is just for a local run of ferret)
You would just need to:

  • go to where openVirus/ferret is installed using your terminal/cmd prompt
  • make sure python3 is installed (run python --version)
  • make sure pip is installed
  • run pip install -r requirements.txt

@Priya-Jk-15
Copy link
Collaborator Author

I have installed python and pip, and tested its installation.

python --version
python 3.8.2

pip --version
pip 20.1.1

but
I haven't installed Docker , so to run Ferret locally:

I think I have installed Ferret
In ferret.exe ,its shown like this

Welcome to Ferret REPL 0.11.1
Please use `exit` or `Ctrl-D` to exit this program.
>

By the instructions, from
https://github.com/petermr/openVirus/blob/ferret/ferret/README.md
after installation of ferret, set an alias for the ferret variable by the command

alias ferret="path/to/ferret/directory"

I am confused whether should I pass the command in command prompt or in ferret.exe ?

@ziflex
Copy link

ziflex commented Jun 2, 2020

I have installed python and pip, and tested its installation.

python --version
python 3.8.2

pip --version
pip 20.1.1

but
I haven't installed Docker , so to run Ferret locally:

I think I have installed Ferret
In ferret.exe ,its shown like this

Welcome to Ferret REPL 0.11.1
Please use `exit` or `Ctrl-D` to exit this program.
>

By the instructions, from
https://github.com/petermr/openVirus/blob/ferret/ferret/README.md
after installation of ferret, set an alias for the ferret variable by the command

alias ferret="path/to/ferret/directory"

I am confused whether should I pass the command in command prompt or in ferret.exe ?

When you just execute ferret.exe without any arguments - you get into REPL mode that allows you to type and execute commands.
If you want to execute a particular query from a file, you should provide a path to the file:

ferret.exe myquery.fql

You might want to add an additional parameter to ferret.exe:

ferret.exe --cdp-launch myquery.fql

This will launch Chrome in headless mode in order to scrape interactive web pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants