Comments (7)
Thanks for catching this! I can confirm that this is a bug.
cc @bscrow
from pysradb.
I could not reproduce this bug in Python 3.7 (see colab example) where the query "cancer human" returns no search results with a message as expected:
No results found for the following search query: {'query': 'CANCER HUMAN', 'accession': None, 'organism': None, 'layout': None, 'mbases': None, 'publication_date': None, 'platform': None, 'selection': None, 'source': None, 'strategy': None, 'title': None}
The traceback suggests an error when calling r.json() on an empty query result. Can I check what version of requests
library are you using?
from pysradb.
Version '2.27.1' which is the latest at time of writing. But I'm on python 3.9.9, so I'm going to guess something changed with the built-in json
module between versions.
from pysradb.
I just tried this with Python 3.10.2 and requests 2.27.1 and was unable to replicate as well:
$ python
Python 3.10.2 | packaged by conda-forge | (main, Feb 1 2022, 19:29:00) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pysradb.search import EnaSearch
>>> instance = EnaSearch(query="cancer human")
>>> instance.search()
No results found for the following search query:
{'query': 'CANCER HUMAN', 'accession': None, 'organism': None, 'layout': None, 'mbases': None, 'publication_date': None, 'platform': None, 'selection': None, 'source': None, 'strategy': None, 'title': None}
>>> df = instance.get_df()
>>> print(df)
Empty DataFrame
Columns: []
Index: []
from pysradb.
Can you try again @xapple? Not sure if it might be due to an intermittent connectivity issue?
from pysradb.
I installed and upgraded the latest pythons on my computer:
- Python 3.9.10
- Python 3.10.2
I can confirm that the problem is present only in 3.9 series and not in 3.10
from pysradb.
Indeed, we see this on the tests also: https://github.com/saketkc/pysradb/runs/5465673995?check_suite_focus=true#step:7:76. But looks like a recent problem (like a couple of weeks old), since the earlier tests pass with 3.9: https://github.com/saketkc/pysradb/runs/5309144937?check_suite_focus=true
from pysradb.
Related Issues (20)
- Unable to parse xml response. Received: OrderedDict([('EXPERIMENT_PACKAGE_SET', OrderedDict([('Error', 'Internal Server Error (db)')]))]) HOT 4
- [BUG] when one 'sra_url' is missing HOT 5
- API rate limit HOT 1
- Stats not saved in output file HOT 3
- [ENH] MD5 value is not HOT 1
- [ENH] Pysradb doesn't work on "superseries" HOT 1
- [BUG] requests.exceptions.ConnectionError
- [BUG] SRX to SRR produces incorrect results when multiple SRRs are present
- [BUG] linux-64 Conda version out of date HOT 7
- [BUG] varying number of columns in output
- [BUG] gse-to-srp not producing results HOT 1
- [BUG] gse_to_srp returns an error in Python API HOT 1
- [ENH] Include data processing steps, reference to which the reads were aligned or if possible lab protocol into the main table HOT 1
- [BUG] The error arises from setting a deprecated value for the "display.max_colwidth" option in pandas. HOT 2
- [BUG] Parsing error in gse-to-srp HOT 1
- installation using conda fails with UnsatisfiableError HOT 3
- [BUG] HOT 1
- ValueError: Value must be a nonnegative integer or None HOT 1
- Possible missing keys in esearch response results HOT 1
- Data download is interrupted after a few minutes HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysradb.