bug fix: psycopg2 with numpy

This commit is contained in:
Steve Nyemba 2024-02-27 12:37:16 -06:00
parent 8d2eb62218
commit 764b3d6af0
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
__author__ = 'The Phi Technology' __author__ = 'The Phi Technology'
__version__= '1.9.8.1' __version__= '1.9.8.20'
__license__=""" __license__="""

View File

@ -20,7 +20,7 @@ args = {
"license":"MIT", "license":"MIT",
"packages":["transport","info"]} "packages":["transport","info"]}
args["keywords"]=['mongodb','couchdb','rabbitmq','file','read','write','s3','sqlite'] args["keywords"]=['mongodb','couchdb','rabbitmq','file','read','write','s3','sqlite']
args["install_requires"] = ['pyncclient','pymongo','sqlalchemy','pandas','typer','pandas-gbq','numpy','cloudant','pika','nzpy','boto3','boto','pyarrow','google-cloud-bigquery','google-cloud-bigquery-storage','flask-session','smart_open','botocore','psycopg2-binary','mysql-connector-python'] args["install_requires"] = ['pyncclient','pymongo','sqlalchemy','pandas','typer','pandas-gbq','numpy','cloudant','pika','nzpy','boto3','boto','pyarrow','google-cloud-bigquery','google-cloud-bigquery-storage','flask-session','smart_open','botocore','psycopg2-binary','mysql-connector-python','numpy']
args["url"] = "https://healthcareio.the-phi.com/git/code/transport.git" args["url"] = "https://healthcareio.the-phi.com/git/code/transport.git"
args['scripts'] = ['bin/transport'] args['scripts'] = ['bin/transport']
if sys.version_info[0] == 2 : if sys.version_info[0] == 2 :

View File

@ -52,6 +52,11 @@ else:
import etl import etl
from info import __version__,__author__ from info import __version__,__author__
import providers import providers
import numpy as np
from psycopg2.extensions import register_adapter, AsIs
register_adapter(np.int64, AsIs)
# import psycopg2 as pg # import psycopg2 as pg
# import mysql.connector as my # import mysql.connector as my
# from google.cloud import bigquery as bq # from google.cloud import bigquery as bq