Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBoiY-0002Ui-TM for pgsql-admin@arkaria.postgresql.org; Thu, 26 Apr 2018 21:46:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fBoiX-00046z-7l for pgsql-admin@arkaria.postgresql.org; Thu, 26 Apr 2018 21:46:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBoiW-00046p-Sr for pgsql-admin@lists.postgresql.org; Thu, 26 Apr 2018 21:46:17 +0000 Received: from einhorn-mail.in-berlin.de ([217.197.80.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBoiT-0005bm-B9 for pgsql-admin@postgresql.org; Thu, 26 Apr 2018 21:46:15 +0000 X-Envelope-From: ml@ft-c.de X-Envelope-To: Received: from [192.168.43.250] (x59cc894d.dyn.telefonica.de [89.204.137.77]) (authenticated bits=0) by einhorn.in-berlin.de (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w3QLjmBO016225 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Apr 2018 23:45:48 +0200 Reply-To: ml@ft-c.de To: pgsql-admin@postgresql.org From: ml@ft-c.de Subject: pgadmin4 python bug? Openpgp: preference=signencrypt Autocrypt: addr=ml@ft-c.de; prefer-encrypt=mutual; keydata= xsBNBFpbaZgBCACzkZjLd6dTG4YE8vUjBB7njwm3ocvk3yh4dOzgG7I2yOuD6tcOs7e8wMyn pYVRVanIjZotcIHdE4IbIYi1pC+63i7bTFfehfIQaVbpZfF0qhaM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YTkcdY1wvaIUnRihb7+AGfEAEQEA AcLAfAQYAQgAJhYhBHkjZkbBljt0tKt5nj4eBMZw3UBfBQJaW2mYAhsMBQkDwmcAAAoJED4e BMZw3UBfxXoIAIiOUctyNO4PFlxgttO5BA7Grd9BjoD7cqoH8JinLNvtyqCySXW5k/rtFEVW LqLo168IrZsx5YHHh3JlbeirhDMj6eoRQz+oro19/0s8YCUXWwyojn/c7JPuKkRav77BRyGC bcd1pkPxn6bsALI966DCLI6/1M0We6BTRmHj9xnSNUEP2mxpqFWvR6ylaqAyS00jysNNnKlN CQhSk858CGV99nLBigFT5LE9T1yT5dcP72PubK1Wf1JklCSRwechT9wZgNFAWlI+DXXLZr5f 7Mg6SVQ7WZiWoiNyY0fPd85TK+zLGPgtYYfEayfeISdmHuTiwjbtIrFf8scKtWJkHP4= Message-ID: Date: Thu, 26 Apr 2018 23:45:48 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello I start pgadmin4 with the following command: python /usr/local/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py I open the browser On the website (port 5050), when I open a db connection, I get the the message: Object type cannot be passed to C code This is the terminal-output: Starting pgAdmin 4. Please navigate to http://127.0.0.1:5050 in your browser. 2018-04-26 23:28:13,503: ERROR pgadmin: Object type cannot be passed to C code Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/__init__.py", line 962, in connect if password is not None else server.password File "/usr/local/lib/python2.7/site-packages/pgadmin4/pgadmin/utils/crypto.py", line 31, in encrypt cipher = AES.new(pad(key), AES.MODE_CFB, iv) File "/usr/local/lib/python2.7/site-packages/Crypto/Cipher/AES.py", line 200, in new return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/Crypto/Cipher/__init__.py", line 55, in _create_cipher return modes[mode](factory, **kwargs) File "/usr/local/lib/python2.7/site-packages/Crypto/Cipher/_mode_cfb.py", line 230, in _create_cfb_cipher cipher_state = factory._create_base_cipher(kwargs) File "/usr/local/lib/python2.7/site-packages/Crypto/Cipher/AES.py", line 100, in _create_base_cipher result = start_operation(c_uint8_ptr(key), File "/usr/local/lib/python2.7/site-packages/Crypto/Util/_raw_api.py", line 109, in c_uint8_ptr raise TypeError("Object type %s cannot be passed to C code" % type(data)) TypeError: Object type cannot be passed to C code What should I do? uname -a FreeBSD ftc2 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 Should I write this problem on a FreeBSD mailinglist? Franz