Coder Social home page Coder Social logo

Comments (8)

Synss avatar Synss commented on June 12, 2024 1

I can reproduce it although I get a slightly different error.

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024 1

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.

Synss avatar Synss commented on June 12, 2024 1

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.

Synss avatar Synss commented on June 12, 2024

Thank you for your report. I will look into it.

from python-mbedtls.

unflavoredgelatin avatar unflavoredgelatin commented on June 12, 2024

Thank you for looking into it!

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

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.

unflavoredgelatin avatar unflavoredgelatin commented on June 12, 2024

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.

unflavoredgelatin avatar unflavoredgelatin commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.