Skip to content
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

TypeError: '<' not supported between instances of 'Mock' and 'int' #11

Closed
auramatics-tech opened this issue Jan 8, 2024 · 2 comments
Closed

Comments

@auramatics-tech
Copy link

hello
I have a C3-400 device.

I can connect to the device, get the serial number and even open and close relays.
I got TypeError: '<' not supported between instances of 'Mock' and 'int'

I have tried with the example code shared

image

@akhterarif
Copy link

I am also getting the same error. Is there anyone who can have a solution?

bdragon300 added a commit that referenced this issue Nov 9, 2024
commit 32287c6
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:36:51 2024 +0400

    Debug CICD

commit 3ec68c0
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:35:21 2024 +0400

    Debug CICD

commit a78fad2
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:34:55 2024 +0400

    Debug CICD

commit 7c49a28
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:27:31 2024 +0400

    Debug CICD

commit 7eef921
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:25:40 2024 +0400

    Debug CICD

commit f6f025d
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:15:07 2024 +0400

    Debug CICD

commit ca96032
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:14:19 2024 +0400

    Debug CICD

commit 8a5da3c
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:11:37 2024 +0400

    Debug CICD

commit 33e73b9
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:10:20 2024 +0400

    Debug CICD

commit b710aaa
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:05:44 2024 +0400

    Debug CICD

commit a61c393
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Nov 9 12:05:36 2024 +0400

    Minor fixes docs

commit ea4f18c
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 22:49:21 2024 +0400

    Debug CICD

commit df86c3b
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 22:47:32 2024 +0400

    Debug CICD

commit 5b5847b
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 22:41:59 2024 +0400

    Debug CICD

commit 52192ee
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 22:38:04 2024 +0400

    Debug CICD

commit 90074cb
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 22:33:04 2024 +0400

    Debug CICD

commit 2c5ec82
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 22:30:31 2024 +0400

    Debug CICD

commit 9705298
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 22:25:18 2024 +0400

    Debug CICD

commit 19180ed
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 22:24:35 2024 +0400

    Debug CICD

commit 5efc53c
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 21:38:55 2024 +0400

    Debug CICD

commit 4d57dae
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Nov 4 21:27:19 2024 +0400

    Fix ValueError on extra if extra field appeared in SearchDevices response (#8)

commit 8d7f997
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 20:47:25 2024 +0400

    Add changelog

commit b522a5d
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 20:20:10 2024 +0400

    Debug CICD

commit 25e55f0
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 20:08:16 2024 +0400

    Fix lint

commit 5a254de
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 20:01:14 2024 +0400

    Add IP/MAC address validation

commit 741ef4b
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 19:38:06 2024 +0400

    Prevent print traceback on ZKSDK error

commit a8b90d3
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 19:30:52 2024 +0400

    Debug CICD

commit cbb8a3a
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 19:18:13 2024 +0400

    Debug CICD

commit 085277f
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 19:12:13 2024 +0400

    Debug CICD

commit f24dfc2
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 19:11:48 2024 +0400

    Fix imports

commit 4316df0
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 18:41:03 2024 +0400

    Debug CICD

commit 882e4eb
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 18:37:29 2024 +0400

    Debug CICD

commit 8f14458
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 18:34:36 2024 +0400

    Debug CICD

commit 476413a
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 18:32:57 2024 +0400

    Debug CICD

commit 3e80fdc
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 18:31:33 2024 +0400

    Debug CICD

commit 23aef40
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 18:20:05 2024 +0400

    Debug CICD

commit fbff1a4
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 18:17:36 2024 +0400

    Debug CICD

commit 109cca8
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 17:57:20 2024 +0400

    Debug CICD

commit 778e963
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 17:55:06 2024 +0400

    Debug CICD

commit d71bc45
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 17:53:28 2024 +0400

    Debug CICD

commit 1311f1f
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 17:51:57 2024 +0400

    Debug CICD

commit d860de3
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 17:50:02 2024 +0400

    Debug CICD

commit 1758932
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 17:39:37 2024 +0400

    Minor fix docstrings

commit d0dd726
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 16:52:13 2024 +0400

    Fix fixmes

commit a6379c6
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 16:01:19 2024 +0400

    Fix __str__ methods

commit 955cae4
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 15:56:46 2024 +0400

    Remove the connstr from exceptions

commit 1e659bf
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 14:17:10 2024 +0400

    Revert accepting the connstr from cli args, accept connect options from env vars

commit 0b0d69f
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 12:17:38 2024 +0400

    Fix docs a bit

commit 856d199
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Nov 3 12:15:20 2024 +0400

    Remove commitizen

commit 3df5596
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Tue Oct 29 22:04:04 2024 +0400

    Minor fix

commit 90efae2
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Tue Oct 29 22:01:19 2024 +0400

    Fix cli behavior

commit 4dcb88b
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Tue Oct 29 19:42:52 2024 +0400

    Fix mandatory connect attempt on getting cli help on connect command and subcommands

commit fbecb78
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Oct 26 18:54:44 2024 +0400

    Add docs article about Parameters

commit dd434ae
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Oct 26 18:54:00 2024 +0400

    Fix README

commit b2d7d92
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Oct 26 17:59:45 2024 +0400

    Fix func documentation

commit aa8887c
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Oct 26 17:07:39 2024 +0400

    Refactor docstrings and cli help

commit 9186159
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Wed Oct 23 23:05:09 2024 +0400

    Fix the documentation

commit 1740cc9
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Oct 20 17:53:53 2024 +0400

    Add github actions config

commit facbed2
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Oct 20 17:53:20 2024 +0400

    Fix docs building process

commit caff09d
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sun Oct 20 14:30:32 2024 +0400

    Fix linters

commit a7a537b
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Oct 19 22:52:50 2024 +0400

    Minor fix

commit da85a95
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Oct 19 22:44:15 2024 +0400

    Update gitignore

commit 03a4337
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Sat Oct 19 22:39:35 2024 +0400

    Add `setup` command, fix tests

commit 9c50c2d
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Oct 14 21:22:17 2024 +0400

    fix: Fix checking the platform the command is running on (#11)

commit 7ab5c30
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Mon Oct 14 17:43:35 2024 +0400

    Apply linters

commit 8642b65
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Thu Oct 10 21:07:06 2024 +0400

    Add commitizen

commit c8f7e93
Author: Igor Derkach <gosha753951@gmail.com>
Date:   Thu Oct 10 20:48:26 2024 +0400

    Remove deprecated dependencies, move to poetry
@bdragon300
Copy link
Owner

Hello.

Seems that you run the code on linux, but pyzkaccess is windows-only due to manufacturer's PULL SDK limitations. However on linux you may use Wine, it should work.
A new subcommand pyzkaccess setup introduced in v1.1 helps to check if the environment is correct.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants