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

Cannot use sender #26

Closed
Meisolsson opened this issue Jun 6, 2015 · 4 comments
Closed

Cannot use sender #26

Meisolsson opened this issue Jun 6, 2015 · 4 comments

Comments

@Meisolsson
Copy link

When sender is imported i crash with the error

File "build/bdist.macosx-10.6-intel/egg/pytg/__init__.py", line 22, in __init__
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pytg-0.4.1-py2.7.egg/pytg/sender.py", line 204
    def execute_function(self, function_name, *arguments, reply_id=None, enable_preview=None, **kwargs):
                                                                 ^
SyntaxError: invalid syntax
@luckydonald
Copy link
Owner

Please give me information about your platform, as well as the used python version.

@Meisolsson
Copy link
Author

I'm on OSX 10.10.3 with Python version 2.7.9.
I downloaded the 0.4.1 from your repo and that works, but not the current master branch
On Jun 8, 2015 9:21 AM, Luckydonald notifications@github.com wrote:Please give me information about your platform, as well as the used python version.

—Reply to this email directly or view it on GitHub.

@luckydonald
Copy link
Owner

Okey, the error is found, the syntax in python 2 is a a bit more strict with *args and **kwargs http://stackoverflow.com/a/9873280
Testing python 3 compatibility and will push that soon.

@luckydonald
Copy link
Owner

should work now. please test.

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

No branches or pull requests

2 participants