Closed rekado closed 1 year ago
Thanks for your report and I will have a look as soon as I can.
Thank you. If you've got something you'd like me to test, please let me know.
@jenningsje I will let you handle this one. Basically, you will need to
conda create --name vtools3.9 python=3.9
conda activate vtools3.9
This will create a conda environment with Python 3.9 as the Python interpreter.
On your Mac, install xcode and its command line tools (goolge if needed)
Clone this repository (git clone https://github.com/vatlab/varianttools
)
Try to reproduce the problem that the user reported.
Install vs code
if you have not, install Python plugin etc (learn to use vscode!)
Locate the offending line of code in src/sqlite/py3/row.c
, .
Wap the following line with
with
#if PY_VERSION_HEX >= 0x03000000. <- Figure out how to specify version 3.6
0,
#else
(hashfunc)pysqlite_row_hash,
#endif <- cannot remember if it is end or endif. figure out.
You will wrap both pieces of code so that for Python version <= 3.6, we keep the original implementation, for Python version > 3.6, we assign 0 to that field, and we also do not define function pysqlite_row_hash
.
Re-compile and see if you can install variant tools for Python 3.9
Create a branch called issue154
using git co -b issue154
Commit and push the changes (figure out how to do this by yourself)
Create a pull request and assign me (@BoPeng ) as reviewer.
@jenningsje https://github.com/vatlab/varianttools/commit/7f4f5fcc71c5f48f341255794ed4bc5d878cfc2c is clearly wrong with 400+ affected files.
Python 3.9 removed the deprecated field
tp_print
, which means that the sqlite part of varianttools can no longer be built with Python 3.Here's an excerpt from the build log: