JPvRiel / iso8583py

Exported from code.google.com/p/iso8583py as a fork for my own purposes
GNU General Public License v3.0
0 stars 0 forks source link

Error in execution of examples #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.When install your library, none of the examples are functional. All exhibits 
the same error:
Traceback (most recent call last):
  File "/home/pablo/temp/Iso 8583/teste.py", line 20, in <module>
    from ISO8583.ISO8583 import ISO8583
  File "/usr/local/lib/python3.3/dist-packages/ISO8583/ISO8583.py", line 26, in <module>
    from ISOErrors import *
ImportError: No module named 'ISOErrors'

In my case, works if i change from ISOErrors import * to from ISO8583.ISOErrors 
import *

What version of the product are you using? On what operating system?
version 1.3 linux (ubuntu 13.10). Ii installed via pip

Please provide any additional information below.

Original issue reported on code.google.com by PabloBSa...@gmail.com on 26 Mar 2014 at 7:05

GoogleCodeExporter commented 8 years ago
Please, tell me what the version of your Python? 

Original comment by igo...@gmail.com on 26 Mar 2014 at 10:42

GoogleCodeExporter commented 8 years ago
Sorry, is 3.2 if i remember correctly. I'm using your library at work, in a 
test.

Original comment by PabloBSa...@gmail.com on 26 Mar 2014 at 10:48

GoogleCodeExporter commented 8 years ago
Hi, I'll test in Python 3.2 to see.

Original comment by igo...@gmail.com on 27 Mar 2014 at 11:23

GoogleCodeExporter commented 8 years ago
Ops, i see here, is python 3.3 .... Sorry for the confusion !!

Original comment by PabloBSa...@gmail.com on 27 Mar 2014 at 12:26

GoogleCodeExporter commented 8 years ago
 Hi, This package are not tested in Python 3.3. And I think is not compatible.

Original comment by igo...@gmail.com on 27 Mar 2014 at 12:56

GoogleCodeExporter commented 8 years ago
Ok then. With the change that I indicated passed to work well.
In the documentation of the library is an example equal  my suggestion. Just 
saw after sending the occurrence in question...
For me there are no errors in the library, only in the examples.
Would you can verify, please ?

>>> help(ISO8583)
Help on class ISO8583 in module ISO8583.ISO8583:

class ISO8583(builtins.object)
 |  Main Class to work with ISO8583 packages.
 |  Used to create, change, send, receive, parse or work with ISO8593 Package version 1993.
 |  It's 100% Python :)
 |  Enjoy it!
 |  Thanks to: Vulcanno IT Solutions <http://www.vulcanno.com.br>
 |  Licence: GPL Version 3
 |  More information: http://code.google.com/p/iso8583py/
 |  
 |  Example:
 |          from ISO8583.ISO8583 import ISO8583
 |          from ISO8583.ISOErrors import *
 |          
 |          iso = ISO8583()
 |          try:
... more

Original comment by PabloBSa...@gmail.com on 27 Mar 2014 at 1:54

GoogleCodeExporter commented 8 years ago
I had the same issue and PabloBSa suggestion works fine. How we can suggest the 
inclusion of his fix into the official package? If it leaks on person to test 
it I could help on validating the changes, since I have access to environments 
in which I could perform real scenario cases.

Original comment by leonardo...@m4u.com.br on 11 Jul 2014 at 1:14

GoogleCodeExporter commented 8 years ago
Hi Leonardo,
The next version will be Python 3 compatible.
Best regards,

Original comment by igo...@gmail.com on 11 Jul 2014 at 1:26