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

Hoobari installation problem #2

Open
robertosirica opened this issue Jun 4, 2019 · 8 comments
Open

Hoobari installation problem #2

robertosirica opened this issue Jun 4, 2019 · 8 comments

Comments

@robertosirica
Copy link

Hello, I'm trying to install hoobari after downloading it as stated in the manual page but it gives me this error:

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
package init file 'src/init.py' not found (or not a regular file)
package init file 'src/init.py' not found (or not a regular file)
running build_ext
building 'phred' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-J8eN0k/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/phred.c -o build/temp.linux-x86_64-2.7/src/phred.o
x86_64-linux-gnu-gcc: error: src/phred.c: File o directory non esistente
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

thank you

@tomwitz
Copy link
Collaborator

tomwitz commented Jun 4, 2019 via email

@robertosirica
Copy link
Author

Thank you, I installed the softwares and added to PATH but the error remains,
am I doing something wrong?

@tomwitz
Copy link
Collaborator

tomwitz commented Jun 5, 2019

  1. What is the command that you run that returns this error?
  2. If it's exactly the same message, it seems that your system still used python 2.7 to run hoobari. Try running hoobari using python3, e.g. python3 /path/to/hoobai

@robertosirica
Copy link
Author

  1. from hoobari folder:
    python3.7 ./setup.py build
  2. I specified which python version to use.

thank you

@robertosirica
Copy link
Author

It has no problems importing the libraries but it seems that the problem is in this line of the script where it searches for phred.c

phred = Extension('phred', sources=['src/phred.c'], libraries=['m'])

@tomwitz
Copy link
Collaborator

tomwitz commented Jun 5, 2019

Oh, I'm sorry, we began writing a setup file when we used a c++ code to calculate the QUAL, but eventually we stayed with python only, and forgot to remove the setup file, which actually isn't required at all. Hoobari is a python tool which can be used right away after cloning, no installation is required. Thanks for raising the issue!

@robertosirica
Copy link
Author

Ok, thank you again, so the right script to use in the fetal variant calling step is hoobari_main.py in src folder, is it right?

@tomwitz
Copy link
Collaborator

tomwitz commented Jun 5, 2019

Exactly. I'm leaving this issue open until I add a short guide to README.

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

2 participants