Comments (6)
https://github.com/vertica/vertica-python/releases/tag/1.2.0
The latest version that supports python v3.6 is 1.2.0
from vertica-python.
Is it really vertica-python uses some functionality not available in python v3.6?
Python versions are very hard to upgrade.
All our current codebase are for python 3.6. Upgrading even to 3.7 is practically impossible due to massive codebase size. We even cannot get rid of python 2.
from vertica-python.
Yes, we have added and will add more functionalities that requires >= v3.7 to improve vertica-python's performance and development efficiency.
You can try to remove the below line from source code
Line 59 in 1b4d5ee
and pip install
the source code to see how it goes on python 3.6.
You should set up an ongoing process to update your dependencies regularly. Python 3.7 reached its end of life at the end of June 2023. In the short-term, vertica-python doesn't consider dropping Python 3.7 support, but at the very minimum you want to be on Python 3.8.
from vertica-python.
We installed vertica-python with python 3.6 and ran tests.
This is failing:
=========================== short test summary info ============================
FAILED vertica_python/tests/integration_tests/test_cursor.py::SimpleQueryTestCase::test_copy_local_glob
FAILED vertica_python/tests/integration_tests/test_loadbalance.py::PrepStmtLoadBalanceTestCase::test_failover_one_backup
FAILED vertica_python/tests/integration_tests/test_loadbalance.py::LoadBalanceTestCase::test_failover_one_backup
====== 3 failed, 341 passed, 10 skipped, 165 warnings in 81.87s (0:01:21) ======
Looking on what failed:
test_copy_local_glob writes a temporary file and runs a "COPY
test_failover_one_backup (both of them) fail because of an error in the Python socket library (changelog for python 3.7 here):
self = <socket.socket fd=-1, family=AddressFamily.AF_UNSPEC, type=0, proto=0>
family = <AddressFamily.AF_INET6: 10>, type = <SocketKind.SOCK_STREAM: 1>
proto = 0, fileno = None
def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None):
# For user code address family and type values are IntEnum members, but
# for the underlying _socket.socket they're just integers. The
# constructor of _socket.socket converts the given argument to an
# integer automatically.
> _socket.socket.__init__(self, family, type, proto, fileno)
E OSError: [Errno 97] Address family not supported by protocol
Nothing critical. Absence of IPv6 is just fine. Failing test for COPY LOCAL probably can be easily fixed.
Conclusion: may be you will consider including python 3.6 into supported versions? It does not looks hard to continue to support it.
from vertica-python.
I can submit PR to extend support of python to 3.6.
Would you accept this PR?
from vertica-python.
Python 3.6 has already reached its end of life in 2021, we won't consider support it again. You can customize vertica-python's source code to python 3.6 and apply to your codebase during your transition from Python 3.6 to the latest python version. Again, instead of one massive scary upgrade event every few years, itβs much safer to have a continuous, ongoing process of smaller upgrades.
from vertica-python.
Related Issues (20)
- Inserting complex data types HOT 3
- 'utf-8' codec can't decode byte HOT 10
- Support client_os_hostname
- Errors in Invalid SQL should be warnings HOT 4
- Unable to connect to vertica in fips mode HOT 3
- Looking for the most efficient way to bind a WHERE clause parameter HOT 12
- SSL dh key too small error HOT 18
- doesn't support behind proxy HOT 4
- Client removes columns from output if they are not aliased HOT 4
- database doesn't return protocol version
- BUG 1.3.3 version - copy from local broken HOT 5
- calling cursor.nextset() after cursor.fetchone() can cause query hang HOT 1
- Unexpected message: RowDescription HOT 7
- Make default connection label meaningful HOT 3
- Connector crashes when querying a json map or json array values HOT 1
- Query returns something other than what query asked for - possible error message not parsed? HOT 1
- Return transaction_id/statement_id result from PROFILE HOT 3
- String values are concatenated somewhere HOT 1
- wrong logging retrieval code HOT 1
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 vertica-python.