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

__main__ error message #187

Closed
whottel opened this issue Jul 21, 2017 · 3 comments
Closed

__main__ error message #187

whottel opened this issue Jul 21, 2017 · 3 comments

Comments

@whottel
Copy link

whottel commented Jul 21, 2017

Hi,

I recently installed ariba on Red Hat linux using pip. It installs without error, however when I run the command "python ariba test out" in the directory where ariba is installed I get the error " can't find 'main' module in 'ariba' ". Any ideas on why I would be getting this error?

@martinghunt
Copy link
Collaborator

Ariba is written in python 3, so prefixing the command with python will make python 2 try to run it, and hence the error saying it can't find the packages, because they are installed for python 3.

Try running /your/install/path/ariba from anywhere. If pip3 installed ariba then that should work. No need to prefix the command with anything.

@whottel
Copy link
Author

whottel commented Jul 24, 2017

I re-installed using pip3. However the command ~/.local/lib/python3.5/site-packages/ariba returns "-bash: /Users/hottel/.local/lib/python3.5/site-packages/ariba is a directory".

Adding the prefix python3 to the above command returns the main module error as before.

@whottel
Copy link
Author

whottel commented Jul 24, 2017

I believe I have solved this issue by activating a Bioconda environment and running conda install ariba. The ariba command now appears to be working as expected.
Thanks for your help!

@whottel whottel closed this as completed Jul 24, 2017
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