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

Add compability for Python 3 #3

Open
Teteros opened this issue Aug 3, 2016 · 2 comments
Open

Add compability for Python 3 #3

Teteros opened this issue Aug 3, 2016 · 2 comments

Comments

@Teteros
Copy link

Teteros commented Aug 3, 2016

R:\>pip install teapot                                                                                                                                                        
Collecting teapot                                                                                                                                                             
  Using cached teapot-2.5.tar.gz                                                                                                                                              
Requirement already satisfied (use --upgrade to upgrade): requests>=1.2.3 in d:\appdata\local\programs\python\python35-32\lib\site-packages (from teapot)                     
Requirement already satisfied (use --upgrade to upgrade): progressbar in d:\appdata\local\programs\python\python35-32\lib\site-packages\progressbar-2.3-py3.5.egg (from teapot
)                                                                                                                                                                             
Requirement already satisfied (use --upgrade to upgrade): colorama in d:\appdata\local\programs\python\python35-32\lib\site-packages (from teapot)                            
Requirement already satisfied (use --upgrade to upgrade): LEPL in d:\appdata\local\programs\python\python35-32\lib\site-packages (from teapot)                                
Installing collected packages: teapot                                                                                                                                         
  Running setup.py install for teapot ... done                                                                                                                                
Successfully installed teapot-2.5                                                                                                                                             

R:\>teapot                                                                                                                                                                    
Traceback (most recent call last):                                                                                                                                            
  File "D:\AppData\Local\Programs\Python\Python35-32\Scripts\teapot-script.py", line 9, in <module>                                                                           
    load_entry_point('teapot==2.5', 'console_scripts', 'teapot')()                                                                                                            
  File "d:\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 542, in load_entry_point                                              
    return get_distribution(dist).load_entry_point(group, name)                                                                                                               
  File "d:\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2569, in load_entry_point                                             
    return ep.load()                                                                                                                                                          
  File "d:\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2229, in load                                                         
    return self.resolve()                                                                                                                                                     
  File "d:\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2235, in resolve                                                      
    module = __import__(self.module_name, fromlist=['__name__'], level=0)                                                                                                     
  File "d:\appdata\local\programs\python\python35-32\lib\site-packages\teapot\__init__.py", line 5, in <module>                                                               
    import teapot.filters.builtin                                                                                                                                             
  File "d:\appdata\local\programs\python\python35-32\lib\site-packages\teapot\filters\__init__.py", line 7, in <module>                                                       
    from .filter import Filter, f, uf                                                                                                                                         
  File "d:\appdata\local\programs\python\python35-32\lib\site-packages\teapot\filters\filter.py", line 7, in <module>                                                         
    from ..memoized import MemoizedObject                                                                                                                                     
  File "d:\appdata\local\programs\python\python35-32\lib\site-packages\teapot\memoized.py", line 60                                                                           
    print cls._INSTANCES_PARAMS[keys]                                                                                                                                         
            ^                                                                                                                                                                 
SyntaxError: Missing parentheses in call to 'print'                                                                                                                           

Happens with teapot 2.6 as well.

@ereOn
Copy link
Member

ereOn commented Aug 3, 2016

@Teteros Thanks for this. As it turns out, teapot is not Python 3 compatible at the moment.

I'm not sure how much time it would take to add support for it but a PR would most certainly be welcome !

@Teteros
Copy link
Author

Teteros commented Aug 3, 2016

@ereOn
It's alright, I was able to compile freelan manually anyway due to great legibility the .party files offer.

If anyone else was struggling to build this on python 3, it seems you also need the git version of the progressbar module not uploaded yet on pypi because of NiltonVolpato/python-progressbar#54.

@Teteros Teteros changed the title Missing parentheses in call to 'print' Add compability for Python 3 Aug 3, 2016
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