omemo / python-omemo Goto Github PK
View Code? Open in Web Editor NEWPython OMEMO Library
License: GNU General Public License v3.0
Python OMEMO Library
License: GNU General Public License v3.0
Hey fellow maintainers,
just wondering if this project is still maintained from your side as there has not been many communication and updates since around June 2016.
If not, please let me know and we could discuss to transfer ownership for this repo or maybe adding me to the omemo organisation.
Cheers,
René
I'm trying to install python-omemo on debian wheezy via pip
root@localhost:~# pip install python-omemo
Downloading/unpacking python-omemo
Could not find any downloads that satisfy the requirement python-omemo
No distributions at all found for python-omemo
Storing complete log in /root/.pip/pip.log
But I get an error 404 response. Do I need to reconfigure pip or is the library removed from pip ?
root@localhost:~# cat .pip/pip.log
------------------------------------------------------------
/usr/bin/pip run on Mon Jun 26 21:31:34 2017
Downloading/unpacking python-omemo
Getting page http://pypi.python.org/simple/python-omemo
Could not fetch URL http://pypi.python.org/simple/python-omemo: HTTP Error 404: Not Found
Will skip URL http://pypi.python.org/simple/python-omemo when looking for download links for python-omemo
Getting page http://pypi.python.org/simple/
URLs to search for versions for python-omemo:
* http://pypi.python.org/simple/python-omemo/
Getting page http://pypi.python.org/simple/python-omemo/
Could not fetch URL http://pypi.python.org/simple/python-omemo/: HTTP Error 404: Not Found
Will skip URL http://pypi.python.org/simple/python-omemo/ when looking for download links for python-omemo
Could not find any downloads that satisfy the requirement python-omemo
No distributions at all found for python-omemo
The exception information is the same for pip-2.7 or pip-3.2
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 978, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 157, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for python-omemo
Where is the error ?
There is a problem in the code:
The issue and the cause is described here: omemo/gajim-omemo#50
Steps to circumvent the problem include:
add_devices
to set_devices
because this is what the method actually does. Helps to prevent confusion.add_own_devices
to set_own_devices
(same reason as above)add_device(jid, deviceId)
(Should not duplicate device ids in the array. Ie treat the array as a set)decrypt_msg
call add_device
with sender_jid and sidAs the package is not available through PyPI, it would be good to go with a shorter version release cycle.
That way, we can at least give users a hint on what version is minimum required.
Can you add the XEP-0384: OMEMO Encryption support?
And XEP-0454: OMEMO Media sharing:
Diff Tool:
Whenever i try to encrypt german umlauts, it runs into UnicodeEncodeError.
02/01/2017 22:26:11: stderr: ERR: File "/usr/local/lib/python2.7/dist-packages/omemo/state.py", line 279, in create_msg
02/01/2017 22:26:11: stderr: ERR: (key, iv, payload) = encrypt(plaintext)
02/01/2017 22:26:11: stderr: ERR: File "/usr/local/lib/python2.7/dist-packages/omemo/aes_gcm.py", line 37, in encrypt
02/01/2017 22:26:11: stderr: ERR: encoded_plaintext = padding_add(plaintext).encode()
02/01/2017 22:26:11: stderr: ERR: UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 28: ordinal not in range(128)
Could you add this lib to pypi?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.