Comments (8)
I can reproduce it although I get a slightly different error.
from python-mbedtls.
I could be missing files... I used to ship the generated C sources but I stopped as it should not be necessary.
I'll try 0.9 in my Ubuntu VM.
from python-mbedtls.
I just released 0.9.0 and it should work for Python 2.7 and 3.4+, could you please test it and tell me if it works for you as well?
from python-mbedtls.
Thank you for your report. I will look into it.
from python-mbedtls.
Thank you for looking into it!
from python-mbedtls.
The archive on pypi is not what I meant to be 0.8! I have withdrawn 0.8 from pypi and will prepare a 0.9. In the meantime, you can install 0.7.
For 0.7, you need libmbedtls-dev
and libpython-dev
, then pip install python-mbedtls
should work as expected.
Thank you again for reporting! I would not have found this mistake otherwise.
from python-mbedtls.
Thank you! I will wait for 0.9!
I tried to follow as you suggested for 0.7, but run into a different error:
unflavored@ubuntu:/tmp/test$ virtualenv venv
Running virtualenv with interpreter /usr/bin/python2
New python executable in /tmp/test/venv/bin/python2
Also creating executable in /tmp/test/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
unflavored@ubuntu:/tmp/test$ source venv/bin/activate
(venv) unflavored@ubuntu:/tmp/test$ sudo apt-get install libmbedtls-dev libpython-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython-dev is already the newest version (2.7.12-1~16.04).
libmbedtls-dev is already the newest version (2.2.1-2ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
(venv) unflavored@ubuntu:/tmp/test$ pip install python-mbedtls
Collecting python-mbedtls
Installing collected packages: python-mbedtls
Successfully installed python-mbedtls-0.7
(venv) unflavored@ubuntu:/tmp/test$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mbedtls import hash as hashlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named mbedtls
>>> quit()
(venv) unflavored@ubuntu:/tmp/test$ ls -l venv/lib/python2.7/site-packages/mbedtls/
total 2788
drwxrwxr-x 2 unflavored unflavored 4096 Mar 10 10:32 cipher
-rwxrwxr-x 1 unflavored unflavored 272584 Mar 10 10:32 exceptions.so
-rwxrwxr-x 1 unflavored unflavored 208744 Mar 10 10:32 hash.so
-rwxrwxr-x 1 unflavored unflavored 768816 Mar 10 10:32 hmac.so
-rwxrwxr-x 1 unflavored unflavored 50040 Mar 10 10:32 __init__.so
-rwxrwxr-x 1 unflavored unflavored 770384 Mar 10 10:32 _md.so
drwxrwxr-x 2 unflavored unflavored 4096 Mar 10 10:32 pk
-rwxrwxr-x 1 unflavored unflavored 763432 Mar 10 10:32 random.so
(venv) unflavored@ubuntu:/tmp/test$ file venv/lib/python2.7/site-packages/mbedtls/__init__.so
venv/lib/python2.7/site-packages/mbedtls/__init__.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=828651c514fbc3f27606663b0e0215d74f93efc9, not stripped
(venv) unflavored@ubuntu:/tmp/test$ uname -a
Linux ubuntu 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
from python-mbedtls.
It works perfectly! Thank you so much for getting this done for me so quickly! You're the best!
from python-mbedtls.
Related Issues (20)
- Possibility to change mbedtls_ssl_conf_read_timeout HOT 7
- Chunking while sending more than 1024B data during handshake HOT 5
- TLS error when running client.py and server.py HOT 2
- server.py and client.py still have bugs when running on the Ubuntu system. HOT 2
- DTLSConnection Id Support HOT 1
- Vulnerable shared libraries might make python-mbedtls vulnerable. Can you help upgrade to patch versions? HOT 3
- won't install/compile HOT 1
- fails to run HOT 2
- error control nb args HOT 1
- Executing server.py gives:
- server.py error HOT 2
- Tests fail if mbedtls built without ARIA support HOT 1
- Issue with loading private keys and trailing null bytes HOT 4
- AES GCM 128 and 256 fails TAG test vector HOT 2
- Provide an example of DTLS server and client with certificates instead of PSK HOT 14
- Possibility to change MTU (max_frag_len) fragmentation size. HOT 8
- TLSWrappedSocket.shutdown(int) does not send DTLS Alert Close Notify message (mbedtls_ssl_close_notify) HOT 4
- Python handle of "record from another epoch: expected 1, received 0" HOT 4
- test_version() test fails due to Mbed TLS spelling change HOT 2
- Random error in HelloVerifyRequest() HOT 6
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 python-mbedtls.