-
Notifications
You must be signed in to change notification settings - Fork 8
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
pip installs broken version of code #26
Comments
the scripts seem to have created some tables though mysql> SHOW TABLES;
+--------------------------------------+
| Tables_in_pyuniprot |
+--------------------------------------+
| pyuniprot_accession |
| pyuniprot_alternativefullname |
| pyuniprot_alternativeshortname |
| pyuniprot_appuser |
| pyuniprot_dbreference |
| pyuniprot_disease |
| pyuniprot_diseasecomment |
| pyuniprot_ecnumber |
| pyuniprot_entry |
| pyuniprot_entry__keyword |
| pyuniprot_entry__pmid |
| pyuniprot_entry__subcellularlocation |
| pyuniprot_entry__tissueinreference |
| pyuniprot_feature |
| pyuniprot_function |
| pyuniprot_keyword |
| pyuniprot_organismhost |
| pyuniprot_othergenename |
| pyuniprot_pmid |
| pyuniprot_sequence |
| pyuniprot_subcellularlocation |
| pyuniprot_tissueinreference |
| pyuniprot_tissuespecificity |
| pyuniprot_version |
+--------------------------------------+
24 rows in set (0.01 sec) but all of them have 0 rows except this one mysql> SELECT * FROM pyuniprot_version;
+----+---------------+--------------+--------------+-------------------+-----------------------+
| id | knowledgebase | release_name | release_date | import_start_date | import_completed_date |
+----+---------------+--------------+--------------+-------------------+-----------------------+
| 1 | Swiss-Prot | 2021_03 | 2021-06-02 | NULL | NULL |
| 2 | TrEMBL | 2021_03 | 2021-06-02 | NULL | NULL |
+----+---------------+--------------+--------------+-------------------+-----------------------+
2 rows in set (0.00 sec) it appears the |
fixed the bug I think this line should be for entry in entries.iterfind("./entry"):
pip install https://github.com/cebel/pyuniprot/archive/master.zip |
@gszep you may keep the issue title, I almost miss out the solution 😂 |
BTW, the download function was changed to download and extract in latest code, which means if you have downloaded .xml.gz file in ~/.pyuniprot/data with pyuniprot from pypi, you have to decompress it with |
On Windows 10 with Python 3.8.5 I've set up a MySQL database and can successfully connect to it from command prompt
successfully connected it to the python library
however when attempt to update the database with a small virus
on an Ubuntu 18.04 with Python 3.6 we get the same error
The text was updated successfully, but these errors were encountered: