Giter VIP home page Giter VIP logo

imapio's Introduction

InvisibleRoads

Here is a simple framework for extensible command line scripts.

pip install -U invisibleroads

cd ~/Documents
git clone https://github.com/invisibleroads/invisibleroads
cd invisibleroads/tests/examples/xyz
pip install -e .

xyz
xyz a
xyz b
xyz x
xyz x a
xyz x b
xyz y
xyz y a
xyz y b

xyz a z
xyz b z
xyz x a z
xyz x b z
xyz y a z
xyz y b z

imapio's People

Contributors

invisibleroads avatar vad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vad

imapio's Issues

TypeError: decode() takes no keyword arguments

Thanks for fixing the previous issue. Importing imapIO works, but running the example code does not:

>>> emailGenerator = server.walk(excludes=['public', 'trash'], searchCriterion=emailCriterion)
>>> for emailIndex, email in enumerate(emailGenerator):
...     print email
... 
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Users/renskers/Workspace/Planbord/lib/python2.6/site-packages/imapIO/__init__.py", line 123, in walk
    yield Email(self, messageUID, tags, data[0][1])
  File "/Users/renskers/Workspace/Planbord/lib/python2.6/site-packages/imapIO/__init__.py", line 221, in __init__
    self.subject = self._decode(valueByKey.get('Subject', ''))
  File "/Users/renskers/Workspace/Planbord/lib/python2.6/site-packages/imapIO/__init__.py", line 241, in _decode
    string = ''.join(part.decode(encoding or 'utf-8', errors='ignore') for part, encoding in packs)
  File "/Users/renskers/Workspace/Planbord/lib/python2.6/site-packages/imapIO/__init__.py", line 241, in <genexpr>
    string = ''.join(part.decode(encoding or 'utf-8', errors='ignore') for part, encoding in packs)
TypeError: decode() takes no keyword arguments

SyntaxError: invalid syntax

As soon as I try to import imapIO, I get the following error:

>>> import imapIO
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/renskers/Workspace/Planbord/lib/python2.6/site-packages/imapIO/__init__.py", line 84
    includes = {clean_tag(x) for x in includes} if includes else set()
                           ^
SyntaxError: invalid syntax

SyntaxError: invalid syntax

Hi,
when I tray to load this module in ipython3 I get this error:

In [1]: import imapIO
Traceback (most recent call last):

File "/usr/local/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3265, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in
import imapIO

File "/usr/local/lib/python3.7/site-packages/imapIO/init.py", line 102
except self.error, error:
^
SyntaxError: invalid syntax

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.