Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 support #10

Closed
spoetnik opened this issue Jul 3, 2015 · 2 comments
Closed

Python 3 support #10

spoetnik opened this issue Jul 3, 2015 · 2 comments

Comments

@spoetnik
Copy link

spoetnik commented Jul 3, 2015

Running into problems with Python3 (AttributeError: 'dict' object has no attribute 'iteritems')

p3512@Kaboom:~/Desktop$ which python3
/usr/bin/python3
p3512@Kaboom:~/Desktop$ mkvirtualenv mt-940 --python=/usr/bin/python3
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in mt-940/bin/python3
Also creating executable in mt-940/bin/python
Installing setuptools, pip...done.
(mt-940)p3512@Kaboom:~/Desktop$ pip install mt-940
Downloading/unpacking mt-940
  Downloading mt-940-2.2.tar.gz
  Running setup.py (path:/home/p3512/.virtualenvs/mt-940/build/mt-940/setup.py) egg_info for package mt-940

Downloading/unpacking enum34 (from mt-940)
  Downloading enum34-1.0.4.tar.gz
  Running setup.py (path:/home/p3512/.virtualenvs/mt-940/build/enum34/setup.py) egg_info for package enum34

Installing collected packages: mt-940, enum34
  Running setup.py install for mt-940

  Running setup.py install for enum34

Successfully installed mt-940 enum34
Cleaning up...
(mt-940)p3512@Kaboom:~/Desktop$ python
Python 3.4.0 (default, Jun 19 2015, 14:20:21) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mt940
>>> import pprint
>>> transactions = mt940.parse('abnamro.sta')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/p3512/.virtualenvs/mt-940/lib/python3.4/site-packages/mt940/parser.py", line 45, in parse
    transactions.parse(data)
  File "/home/p3512/.virtualenvs/mt-940/lib/python3.4/site-packages/mt940/models.py", line 209, in parse
    for k, v in result.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
>>> 
@wolph
Copy link
Owner

wolph commented Jul 3, 2015

Haven't needed a Python 3 version myself but it should be easy to fix. I
can work on it next week.
On 3 Jul 2015 10:32, "Martijn de Geus" notifications@github.com wrote:

Running into problems with Python3

p3512@Kaboom:/Desktop$ which python3
/usr/bin/python3
p3512@Kaboom:
/Desktop$ mkvirtualenv mt-940 --python=/usr/bin/python3
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in mt-940/bin/python3
Also creating executable in mt-940/bin/python
Installing setuptools, pip...done.
(mt-940)p3512@Kaboom:~/Desktop$ pip install mt-940
Downloading/unpacking mt-940
Downloading mt-940-2.2.tar.gz
Running setup.py (path:/home/p3512/.virtualenvs/mt-940/build/mt-940/setup.py) egg_info for package mt-940

Downloading/unpacking enum34 (from mt-940)
Downloading enum34-1.0.4.tar.gz
Running setup.py (path:/home/p3512/.virtualenvs/mt-940/build/enum34/setup.py) egg_info for package enum34

Installing collected packages: mt-940, enum34
Running setup.py install for mt-940

Running setup.py install for enum34

Successfully installed mt-940 enum34
Cleaning up...
(mt-940)p3512@Kaboom:~/Desktop$ python
Python 3.4.0 (default, Jun 19 2015, 14:20:21)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.

import mt940
import pprint
transactions = mt940.parse('abnamro.sta')
Traceback (most recent call last):
File "", line 1, in
File "/home/p3512/.virtualenvs/mt-940/lib/python3.4/site-packages/mt940/parser.py", line 45, in parse
transactions.parse(data)
File "/home/p3512/.virtualenvs/mt-940/lib/python3.4/site-packages/mt940/models.py", line 209, in parse
for k, v in result.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'


Reply to this email directly or view it on GitHub
#10.

@wolph wolph closed this as completed in f254fb4 Jul 11, 2015
@wolph
Copy link
Owner

wolph commented Jul 11, 2015

Version 3 has just been released with Python 3 support :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants