Arkadiy-Garber / FeGenie

HMM-based identification and categorization of iron genes and iron gene operons in genomes and metagenomes
GNU Affero General Public License v3.0
53 stars 10 forks source link

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

Open diegusleik opened 4 years ago

diegusleik commented 4 years ago

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 commented 4 years ago

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