Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Simplify the update (#3586)
* Simplify the update * wtf, cant reproduce issue
- Loading branch information
1 parent
a119d2e
commit 0517d1a
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0517d1aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes an ubuntu 16.04 machine to pop up with error:
"TypeError: from_buffer() cannot return the address of the raw string within a str or unicode or bytearray object"
I had to modify my ciphers.py with old code and then it worked.
I've seen that this error was solved by uninstalling cryptography again but in my case, going back to previous code made the day. Can you say if there is a specific version of components to use?
0517d1aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like you have an outdated cffi package. Update that and the problem should go away
0517d1aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @reaperhulk,
Thank you so much for the suggestion, I had cffi package installed through apt-get (apt-get install python-cffi) which installed version 1.5.2.
After purging this package (apt-get purge --auto-remove python-cffi) and reinstalling again through pip (pip install --upgrade cffi) package got upgraded to version 1.11
Issue solved, thanks!
0517d1aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got Version 1.11.5 and I am still facing an error on Ubuntu 16.04
"TypeError: from_buffer() cannot return the address of the raw string within a str or unicode or bytearray object"
0517d1aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@attex Same, did you solve this?
0517d1aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is likely that you have multiple copies of cffi installed in your python paths. Try installing cryptography in a new virtualenv and if the problem goes away then it is your existing environment.