-
Notifications
You must be signed in to change notification settings - Fork 64
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
antismash installation failing #292
Comments
I think you followed the install antiSMASH dependencies via Bioconda guide instead of the install antiSMASH via Bioconda guide. That leaves you with a conda env without antiSMASH.
|
Thank you very much for your help. I tried doing it as you suggested and this error came up: ERROR conda.core.link:_execute(698): An error occurred while installing package 'bioconda::antismash-5.1.2-py_3'. LinkError: post-link script failed for package bioconda::antismash-5.1.2-py_3 return code: 1 () Is there a way to fix this? |
It looks like conda is ignoring the biopython version that antiSMASH specifies. If you downgrade biopython to 1.76, that should solve the problem. |
I'm getting the same error using |
This ended up working for me: Though now getting the warning:
|
I'm getting the same error using |
I tried all the sugestions, when I run ERROR conda.core.link:_execute(698): An error occurred while installing package 'bioconda::antismash-5.1.2-py_3'.
Rolling back transaction: done
class: LinkError
message:
post-link script failed for package bioconda::antismash-5.1.2-py_3
location of failed script: /home/gabriellovate/anaconda3/envs/antismash/bin/.antismash-post-link.sh
==> script messages <==
<None>
==> script output <==
stdout: Downloading PFAM version 27.0
Downloading Pfam-A.hmm.gz: 100.00% downloaded.
Creating checksum of Pfam-A.hmm.gz
Extraction of Pfam-A.hmm.gz finished successfully.
Downloading PFAM version 31.0
Downloading Pfam-A.hmm.gz: 100.00% downloaded.
Creating checksum of Pfam-A.hmm.gz
Extraction of Pfam-A.hmm.gz finished successfully.
Downloading Resfam database
stderr: /home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/scss/selector.py:54: FutureWarning: Possible nested set at position 329
''', re.VERBOSE | re.MULTILINE)
Traceback (most recent call last):
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 1350, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 1277, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 1323, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 1272, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 1032, in _send_output
self.send(msg)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 972, in send
self.connect()
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 944, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/socket.py", line 728, in create_connection
raise err
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 82, in download_file
req = request.urlopen(url)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 1378, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 1352, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gabriellovate/anaconda3/envs/antismash/bin/download-antismash-databases", line 10, in <module>
sys.exit(_main())
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 352, in _main
download(args)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 328, in download
download_resfam(args.database_dir)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 249, in download_resfam
download_if_not_present(url, archive_filename, RESFAM_ARCHIVE_CHECKSUM)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 207, in download_if_not_present
download_file(url, filename)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 84, in download_file
raise DownloadError("ERROR: File not found on server.\nPlease check your internet connection.")
antismash.download_databases.DownloadError: ERROR: File not found on server.
Please check your internet connection.
return code: 1
kwargs:
{}
Traceback (most recent call last):
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/cli/main.py", line 84, in _main
exit_code = do_call(args, p)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/cli/conda_argparse.py", line 83, in do_call
return getattr(module, func_name)(args, parser)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/cli/main_create.py", line 41, in execute
install(args, parser, 'create')
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/cli/install.py", line 317, in install
handle_txn(unlink_link_transaction, prefix, args, newenv)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/cli/install.py", line 346, in handle_txn
unlink_link_transaction.execute()
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/core/link.py", line 249, in execute
self._execute(tuple(concat(interleave(itervalues(self.prefix_action_groups)))))
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/core/link.py", line 712, in _execute
raise CondaMultiError(tuple(concatv(
conda.CondaMultiErrorclass: LinkError
message:
post-link script failed for package bioconda::antismash-5.1.2-py_3
location of failed script: /home/gabriellovate/anaconda3/envs/antismash/bin/.antismash-post-link.sh
==> script messages <==
<None>
==> script output <==
stdout: Downloading PFAM version 27.0
Downloading Pfam-A.hmm.gz: 100.00% downloaded.
Creating checksum of Pfam-A.hmm.gz
Extraction of Pfam-A.hmm.gz finished successfully.
Downloading PFAM version 31.0
Downloading Pfam-A.hmm.gz: 100.00% downloaded.
Creating checksum of Pfam-A.hmm.gz
Extraction of Pfam-A.hmm.gz finished successfully.
Downloading Resfam database
stderr: /home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/scss/selector.py:54: FutureWarning: Possible nested set at position 329
''', re.VERBOSE | re.MULTILINE)
Traceback (most recent call last):
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 1350, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 1277, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 1323, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 1272, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 1032, in _send_output
self.send(msg)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 972, in send
self.connect()
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/http/client.py", line 944, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/socket.py", line 728, in create_connection
raise err
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 82, in download_file
req = request.urlopen(url)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 1378, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/urllib/request.py", line 1352, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gabriellovate/anaconda3/envs/antismash/bin/download-antismash-databases", line 10, in <module>
sys.exit(_main())
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 352, in _main
download(args)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 328, in download
download_resfam(args.database_dir)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 249, in download_resfam
download_if_not_present(url, archive_filename, RESFAM_ARCHIVE_CHECKSUM)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 207, in download_if_not_present
download_file(url, filename)
File "/home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/antismash/download_databases.py", line 84, in download_file
raise DownloadError("ERROR: File not found on server.\nPlease check your internet connection.")
antismash.download_databases.DownloadError: ERROR: File not found on server.
Please check your internet connection.
return code: 1
kwargs:
{}
: <exception str() failed>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gabriellovate/anaconda3/bin/conda", line 13, in <module>
sys.exit(main())
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/cli/main.py", line 152, in main
return conda_exception_handler(_main, *args, **kwargs)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1371, in conda_exception_handler
return_value = exception_handler(func, *args, **kwargs)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1082, in __call__
return self.handle_exception(exc_val, exc_tb)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1113, in handle_exception
return self.handle_application_exception(exc_val, exc_tb)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1129, in handle_application_exception
self._print_conda_exception(exc_val, exc_tb)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1133, in _print_conda_exception
print_conda_exception(exc_val, exc_tb)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1056, in print_conda_exception
stderrlog.error("\n%r\n", exc_val)
File "/home/gabriellovate/anaconda3/lib/python3.8/logging/__init__.py", line 1463, in error
self._log(ERROR, msg, args, **kwargs)
File "/home/gabriellovate/anaconda3/lib/python3.8/logging/__init__.py", line 1577, in _log
self.handle(record)
File "/home/gabriellovate/anaconda3/lib/python3.8/logging/__init__.py", line 1586, in handle
if (not self.disabled) and self.filter(record):
File "/home/gabriellovate/anaconda3/lib/python3.8/logging/__init__.py", line 807, in filter
result = f.filter(record)
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/gateways/logging.py", line 60, in filter
record.msg = record.msg % new_args
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/__init__.py", line 126, in __repr__
errs.append(e.__repr__())
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/__init__.py", line 65, in __repr__
return '%s: %s' % (self.__class__.__name__, text_type(self))
File "/home/gabriellovate/anaconda3/lib/python3.8/site-packages/conda/__init__.py", line 84, in __str__
return text_type(self.message % self._kwargs)
TypeError: %d format: a number is required, not dict |
I manage to install without errors by creating an empty environment with: conda create -n antismash
conda activate antismash and then installing with: conda install antismash biopython=1.76 python=3.7 I still receive the following warning though: /home/gabriellovate/anaconda3/envs/antismash/lib/python3.7/site-packages/scss/selector.py:54: FutureWarning: Possible nested set at position 329
''', re.VERBOSE | re.MULTILINE) |
antismash --check-prereqs (antismash7.0.1) |
This isn't a bug, but I am following your installation instruction and I am hitting many walls.
What I've done so far:
conda create -n antismash python=3.7
source ~/miniconda3/bin/activate antismash
Typing "download-antismash-databases" returns the following:
-bash: download-antismash-databases: command not found
conda install hmmer2 hmmer diamond fasttree prodigal blast muscle glimmerhmm
-bash: antismash: command not found
Any thoughts on what's going wrong?
The text was updated successfully, but these errors were encountered: