-
Notifications
You must be signed in to change notification settings - Fork 23
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
AttributeError: 'NoneType' object has no attribute 'group' #114
Comments
I also saw some other posts with the same issue, these were either fixed with an updated version or I tried the suggestions but it did not work for me... I am running the latest version. |
Same problem and waiting for someone to help us |
I think the NCBI API changed its syntax. Try out this PR where I fixed this specific problem: #115 |
Thanks! That fix worked for me :) |
I think this issue should not be closed, as the PR was not merged yet and I expect all users to be affected by this issue. It's really hard to find the connection between the issue and the PR now. |
Sorry about that! Its re-opened. |
@FriederikeBiermann According to the PR, I modified the corresponding two lines of code, but the error still occurs.
|
Did you make sure to install the new version to your conda env or change it directly in the /home/data/usr/dx/miniconda3/envs/cblaster/lib/python3.9/site-packages/cblaster/remote.py? |
Yes, I have modified the remote.py and the version of cblaster is latest 1.3.19. |
If you put in a preint statement that prints out the URL it uses to fetch, what does it show? |
Hi, this is the output after adding the URL.
|
Interestingly, the retrieve download link now works. Maybe you can also print the response.text? |
There is another issue at play. The API is also preemptively cutting short the result. You can get around this by applying the patch and lowering the -hs or adding some other filter that limits the results. |
Hi All,
I am a new mac user and have been slowly setting up the new laptop. I freshly installed cblaster and am running into some problems (see below). I think it could be a python issue. I was using zsh but after installing everything, I changed to bash, then tried to uninstall and reinstall again. I have a feeling this could be there the issue is.
NABI-MAC001:cblaster_test paul$ cblaster search -m remote --rid KV6WEC7B013 -qf myQF_9705.fasta -p test6.html
", response.text, re.DOTALL)Importing genomicsqlite failed, falling back to SQLite3
[09:39:43] INFO - Starting cblaster in remote mode
[09:39:43] INFO - Polling NCBI for completion status
[09:39:43] INFO - Checking search status...
[09:39:43] INFO - Search has completed successfully!
[09:39:43] INFO - Retrieving results for search KV6WEC7B013
Traceback (most recent call last):
File "/Users/paul/Library/Python/3.9/bin/cblaster", line 8, in
sys.exit(main())
File "/Users/paul/Library/Python/3.9/lib/python/site-packages/cblaster/main.py", line 432, in main
cblaster(
File "/Users/paul/Library/Python/3.9/lib/python/site-packages/cblaster/main.py", line 318, in cblaster
rid, results = remote.search(
File "/Users/paul/Library/Python/3.9/lib/python/site-packages/cblaster/remote.py", line 371, in search
results = retrieve(rid, hitlist_size=hitlist_size)
File "/Users/paul/Library/Python/3.9/lib/python/site-packages/cblaster/remote.py", line 208, in retrieve
for line in re.search("
AttributeError: 'NoneType' object has no attribute 'group'
Any help to get cblaster working would be great! thank you :)
The text was updated successfully, but these errors were encountered: