Closed neelam19051 closed 2 years ago
Hello @neelam19051, how did you install staramr
? Was it using conda? Pip? Did you clone from GitHub? Which version of Python are you using (python --version
)?
Actually i installed it with git clone and after that i also installed with pip (Python 3.8) then it didn't show that error and help manual run perfectly fine but when i try run this commands staramr search -o out .fna* it show this following error -
[Errno 39] Directory not empty: '/tmp/tmpb4uhg5zk' Traceback (most recent call last): File "/tmp/home/bvs/neelam/lib/python3.8/site-packages/staramr/subcommand/Search.py", line 283, in _generate_results amr_detection.run_amr_detection(files,pid_threshold, plength_threshold_resfinder, File "/tmp/home/bvs/neelam/lib/python3.8/site-packages/staramr/detection/AMRDetection.py", line 177, in run_amr_detection self._amr_detection_handler.run_blasts_mlst(files, mlst_scheme) File "/tmp/home/bvs/neelam/lib/python3.8/site-packages/staramr/blast/JobHandler.py", line 113, in run_blasts_mlst mlst_result = future_mlst.result() File "/tmp/home/bvs/neelam/lib/python3.8/concurrent/futures/_base.py", line 432, in result return self.get_result() File "/tmp/home/bvs/neelam/lib/python3.8/concurrent/futures/_base.py", line 388, in get_result raise self._exception File "/tmp/home/bvs/neelam/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/tmp/home/bvs/neelam/lib/python3.8/site-packages/staramr/blast/JobHandler.py", line 154, in _schedule_mlst output = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True) File "/tmp/home/bvs/neelam/lib/python3.8/subprocess.py", line 493, in run with Popen(popenargs, **kwargs) as process: File "/tmp/home/bvs/neelam/lib/python3.8/subprocess.py", line 858, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/tmp/home/bvs/neelam/lib/python3.8/subprocess.py", line 1706, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'mlst'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bvs/neelam/staramr/bin/staramr", line 68, in
Thank you
If possible you will likely want to install staramr
using the Bioconda instructions (https://github.com/phac-nml/staramr#bioconda). Conda/bioconda will install all the necessary non-Python dependencies (like the software mlst which is missing and causing the error above).
You can install outside of conda/bioconda too, but then you have to install the following dependencies in addition to pip install staramr
: https://github.com/phac-nml/staramr#dependencies
Hi, again i encountered some error, even i installed it with the help of bioconda staramr and the script was same -
ERROR ##'NoneType' object has no attribute 'tolist'##
Traceback (most recent call last):
File "/home/bvs/anaconda3/envs/myenv/bin/staramr", line 68, in
Thank you
Thanks. This looks an awful lot like this issue https://github.com/phac-nml/staramr/issues/136. I believe the solution is to downgrade the pandas
package:
# Or if this does'nt work you can try 'pip install' instead
conda install pandas==1.1.5
Fixed in #146
Hi, I am trying to install 'staramr' and i am getting this error- Does anyone know how to solve it?
Traceback (most recent call last): File "/home/bvs/neelam/staramr/bin/staramr", line 44, in
from staramr import version
ModuleNotFoundError: No module named 'staramr'
Thank you!