-
Notifications
You must be signed in to change notification settings - Fork 55
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
Error when parenthesis in filename #177
Comments
Thanks @zakisaati - that's a good suggestion. I hadn't realised that parentheses had the same issue as spaces. This is on the list to get a fix. I'm glad that - otherwise - Cheers, L. |
@widdowquinn I've added in some lines to catch this to |
Following the check for whitespace, adding this code will catch the error: if any(_ in fname for _ in "()"):
logger.error("File or directory '%s' contains an illegal character, e.g., ( )", fname)
logger.error("This will cause issues with MUMmer and BLAST")
logger.error("(exiting)")
sys.exit(1) @widdowquinn Please advise on the best way to add this to the code. Attempting to commit from my local branch gives this, and I'm unsure which things need to remain the same for the v2 branch. [WARNING] The 'rev' field of repo 'https://github.com/ambv/black' appears to be a mutable reference (moving tag / branch). Mutable references are never updated after first install and are not supported. See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details. Hint: `pre-commit autoupdate` often fixes this.
[INFO] Installing environment for https://github.com/ambv/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('..Software/miniconda3/bin/python', '-mvirtualenv', '../.cache/pre-commit/repoonvsa2bi/py_env-python3.6', '-p', 'python3.6')
return code: 1
expected return code: 0
stdout:
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.6'
stderr: (none)
Check the log at ../.cache/pre-commit/pre-commit.log |
@baileythegreen Looks like a local configuration issue - most likely with
|
FWIW I think that a function to identify and/or escape paths that are not tolerated by |
I have; that maybe works, but then I get this error:
I've tried updating the |
I have occasionally seen this issue.
IIRC the last time I encountered it, that was because the |
I'm not on master because this issue only applies to the v2 version of I wouldn't think rebasing from master was the best idea for this particular branch. It's the v2 branch, and therefore doesn't have MANY of the things v3 does; at the very least, rebasing means polluting the branch with lots of files v2 doesn't use. |
I had not realised that this issue applied exclusively to v0.2 - that's not clear from the thread. And yes, when you're working on the v0.2 branch then rebasing to v0.3 does not make sense. You could still |
True. I remember it did take me a while to find the relevant place in the code.
Apparently I had already done this before, when I realised I couldn't commit the changes easily. I do not think this issue should be closed before the change is present on |
Which change? The Note for future handling of issues: the tangent into local configuration of |
The one checking for the parentheses. Just stating why I was not closing the issue yet, even though code is in place in the repo to resolve it. I've added a discussion about the correct way to upload to PyPI—as I believe this is how the code will make its way to |
My general view is that we can close bug fixes when the bug is fixed, and we do not need to leave them open until a release. If we want to tie issues to a release (so, for instance, we can record how far short of a release we are, or note which issues are associated with a release) then we may be better using the Milestones functionality of GitHub projects. That would be my preference. |
As per @widdowquinn's comment, I am closing this and adding this issue to a milestone for inclusion in a new release of v2. |
@all-contributors please add @zakisaati for bug |
I've put up a pull request to add @zakisaati! 🎉 |
I had an error when executing average_nucleotide_identity.py (ANIb method) which said:
"WARNING: At least one BLAST run failed. ANIb may fail."
I was trying to solve it and finally I found that the problem was related to filenames with parenthesis in it. I removed them and the process worked fine.
I suggest to implement some kind of advise similar to that one that appears when there is a whitespace in filenames.
The text was updated successfully, but these errors were encountered: