1. Sebastian Rahlf
  2. python-amazon-product-api
  3. Issues
Issue #6 open

Support for Python 3

Sebastian Rahlf
repo owner created an issue

The module currently does not work python 3.1 (and above). This should be fixed for the next major release!

Comments (14)

  1. peterbe

    I get this error after installing the tip in a Python 3.5 virtualenv:

    In [2]: from amazonproduct import API
       ...: api = API(locale='us')
       ...:
       ...:
    ---------------------------------------------------------------------------
    NameError                                 Traceback (most recent call last)
    <ipython-input-2-5de5988f78ff> in <module>()
          1 from amazonproduct import API
    ----> 2 api = API(locale='us')
          3
    
    /Users/peterbe/virtualenvs/songsearch/lib/python3.5/site-packages/python_amazon_product_api-0.3.dev0-py3.5.egg/amazonproduct/api.py in __init__(self, access_key_id, secret_access_key, locale, associate_tag, processor, cfg)
        130
        131         # instantiate processor class
    --> 132         if isinstance(processor, (str, unicode)):
        133             self._processor_module = processor
        134             self.processor = load_class('%s.Processor' % processor)()
    
    NameError: name 'unicode' is not defined
    
    In [3]:
    
  2. Log in to comment