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

FileNotFoundError on "Easy Installation (if you don't have Conda)" #12

Open
diegusleik opened this issue May 28, 2020 · 1 comment
Open

Comments

@diegusleik
Copy link

diegusleik commented May 28, 2020

Hello, congratulations for your work.

I had an error while executing the last command on "Easy Installation (if you don't have Conda)" insctructions:

./FeGenie.py -h

, which throws to me:

Traceback (most recent call last): File "./FeGenie.py", line 459, in main test = open(bits) FileNotFoundError: [Errno 2] No such file or directory: '/HMM-bitcutoffs.txt' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./FeGenie.py", line 2170, in <module> main() File "./FeGenie.py", line 467, in main location = allButTheLast(location, "/") UnboundLocalError: local variable 'location' referenced before assignment

With a little lookup, I replaced line #462 of FeGenie.py file from:

os.system("which FeGenie.py > mainDir.txt")

, to

os.system("which ./FeGenie.py > mainDir.txt")

, which solved the problem for me. Just in case anyone has the same error.

@Arkadiy-Garber
Copy link
Owner

Arkadiy-Garber commented May 28, 2020

Hey, thanks for using FeGenie, and for bringing that error to my attention!

It looks like the error you are describing stems from the fact that the FeGenie.py script is not in your path. That is a requirement for the program to run if you don't go with the conda-based installation.

Glad you were able to fix it with that change though! Was the program able to run and successfully finish after you made that change? If not, I would suggest you put FeGenie in your $PATH in your .bash_profile, .profile, or .bashrc script, which is found in the home directory. Then, change line #462 back to the way it was, and try again. In case you are not familiar with setting paths in linux, you can check out this page: https://stackabuse.com/how-to-permanently-set-path-in-linux/

Let me know if you have any other questions or issues!
Arkadiy

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