[ https://issues.apache.org/jira/browse/IGNITE-9908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16656441#comment-16656441 ]
Dmitry Melnichuk commented on IGNITE-9908: ------------------------------------------ The client was successfully tested on the following OSes/architectures/platforms: * Arch Linux, AMD64, Python 3.4, 3.6, 3.7; * Ubuntu Server 16.04, i386, Python 3.5\*; * Windows Server 2008 R2, x86-64, Python 3.7; * Windows 10 Home N, x86-32, Python 3.7, * FreeBSD 11.2, AMD64, Python 3.6; * FreeBSD 11.2, i386, Python 3.6. \* _pip_ in Ubuntu 16.04 repository is outdated. Make sure to uninstall it, than install with [get-pip|https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py] script. > thin python: Can't use client with windows > ------------------------------------------ > > Key: IGNITE-9908 > URL: https://issues.apache.org/jira/browse/IGNITE-9908 > Project: Ignite > Issue Type: Bug > Components: thin client > Affects Versions: 2.7 > Environment: Windows 10 1803 > Python 3.7 > Client module installed from latest sources, branch - master > Ignite compiled from latest sources > Reporter: Stepan Pilschikov > Assignee: Dmitry Melnichuk > Priority: Major > Labels: windows > Fix For: 2.7 > > > Trying to use thin python client on Windows and have exception > Python excetion: > {code} > Traceback (most recent call last): > File "C:\dev\test\put_value.py", line 5, in <module> > cache = client.get_or_create_cache("test_3") > File "[ignite path]\platforms\python\pyignite\client.py", line 306, in > get_or_create_cache > return Cache(self, settings, with_get=True) > File "[ignite path]\platforms\python\pyignite\cache.py", line 116, in > __init__ > result = func(client, settings) > File "[ignite path]\platforms\python\pyignite\api\cache_config.py", line > 151, in cache_get_or_create > 'cache_name': name, > File "[ignite path]\platforms\python\pyignite\queries\__init__.py", line > 287, in perform > response_ctype, recv_buffer = response_struct.parse(conn) > File "[ignite path]\platforms\python\pyignite\queries\__init__.py", line > 66, in parse > buffer = client.recv(ctypes.sizeof(header_class)) > File "[ignite path]\platforms\python\pyignite\connection\__init__.py", line > 292, in recv > result += self._recv(buffersize-pref_size, flags) > File "[ignite path]\platforms\python\pyignite\connection\__init__.py", line > 316, in _recv > raise SocketError('Socket connection broken.') > OSError: Socket connection broken. > {code} > In ignite logs: > {code} > [11:19:20,522][SEVERE][client-connector-#47][ClientListenerNioListener] > Failed to parse client request. > class org.apache.ignite.binary.BinaryObjectException: Unexpected field type > [pos=10, expected=String, actual=0] > at > org.apache.ignite.internal.binary.BinaryReaderExImpl.checkFlagNoHandles(BinaryReaderExImpl.java:1679) > at > org.apache.ignite.internal.binary.BinaryReaderExImpl.readString(BinaryReaderExImpl.java:1057) > at > org.apache.ignite.internal.processors.platform.client.cache.ClientCacheGetOrCreateWithNameRequest.<init>(ClientCacheGetOrCreateWithNameRequest.java:41) > at > org.apache.ignite.internal.processors.platform.client.ClientMessageParser.decode(ClientMessageParser.java:342) > at > org.apache.ignite.internal.processors.platform.client.ClientMessageParser.decode(ClientMessageParser.java:238) > at > org.apache.ignite.internal.processors.odbc.ClientListenerNioListener.onMessage(ClientListenerNioListener.java:140) > at > org.apache.ignite.internal.processors.odbc.ClientListenerNioListener.onMessage(ClientListenerNioListener.java:45) > at > org.apache.ignite.internal.util.nio.GridNioFilterChain$TailFilter.onMessageReceived(GridNioFilterChain.java:279) > at > org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:109) > at > org.apache.ignite.internal.util.nio.GridNioAsyncNotifyFilter$3.body(GridNioAsyncNotifyFilter.java:97) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) > at > org.apache.ignite.internal.util.worker.GridWorkerPool$1.run(GridWorkerPool.java:70) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} > Python code: > {code} > from pyignite import Client > client = Client() > client.connect('127.0.0.1', 10800) > cache = client.get_or_create_cache("test_3") > cache.put("key3", -3.3) > {code} > All others thin clients from same sources and on the same ignite binary works > well > On linux from same sources python client works well too > Troubles only with python and windows -- This message was sent by Atlassian JIRA (v7.6.3#76005)