sibson / vncdotool

A command line VNC client and python library
Other
451 stars 120 forks source link

fail to import module with error: segmentfault #277

Closed etaixiee closed 8 months ago

etaixiee commented 8 months ago

version:1.2.0 only can run when i replace PyCryptodome with PyCrypto in rfb.py:

from Crypto.Cipher import AES, DES
from Crypto.Hash import MD5
from Crypto.Util.number import bytes_to_long, long_to_bytes
pmhahn commented 8 months ago

Thank you for your report, but:

  1. please at least provide some platform information, e.g. which version of Python you're using, on wich operating system, …
  2. No program should ever segfault and if VNCdotool does by just using some other module, to me it looks like your system is broken somewhere and VNCdotool is just the messenger, and not the offender itself. Even is VNCdotool would switch to Crypto any other program using PyCryptodome on your system might still crash and would need to switch too. So lease check and fix your system.
  3. Crypto is unmaintained and PyCrytodome is the modern replacement for it; quoting from PyPI:

    PyCryptodome is a fork of PyCrypto. It brings several enhancements with respect to the last official version of PyCrypto (2.6.1), for instance:

As this is no bug in VNCdotool I'm closing your issue.