invalid syntax

91 views
Skip to first unread message

Luca Danieli

unread,
May 29, 2018, 3:55:05 PM5/29/18
to pypubsub_dev
Hello, there. I just installed the v3.3.0, but I am not sure it is the last version.
Anyway I get an error while calling the library:

    from pubsub import pub
  File "/home/luca/.local/lib/python2.7/site-packages/pubsub/pub.py", line 146
    def getDefaultPublisher() -> Publisher:
                              ^
SyntaxError: invalid syntax

Can you help me?

Oliver

unread,
May 29, 2018, 3:59:53 PM5/29/18
to pypubsub_dev
For sure. Is there a reason that you are not using latest (which is just over a year old)? V3.3 is already 4 years old. 

Oliver

unread,
May 29, 2018, 4:02:13 PM5/29/18
to pypubsub_dev
BTW if you just do "pip install pypubsub" you get the latest, v4.0 (might have to do "pip3 install pypubsub" if you are on linux, depending on your setup). 

Luca Danieli

unread,
May 29, 2018, 4:10:44 PM5/29/18
to pypubs...@googlegroups.com

No reason. Just searched on Google. I will try now, thanks meanwhile!

--
You received this message because you are subscribed to the Google Groups "pypubsub_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypubsub_dev+unsubscribe@googlegroups.com.
To post to this group, send email to pypubs...@googlegroups.com.
Visit this group at https://groups.google.com/group/pypubsub_dev.
For more options, visit https://groups.google.com/d/optout.

Luca Danieli

unread,
May 29, 2018, 4:18:46 PM5/29/18
to pypubsub_dev
Ok, just installed it correctly:

Collecting typing (from pypubsub)
Installing collected packages: typing, pypubsub
Successfully installed pypubsub-4.0.0 typing-3.6.4

but unfortunately I get the same error. Should I do something to update what pubsub to use? Or has it changed automatically?

File "NocturnGUI.py", line 10, in <module>
    from pubsub import pub
  File "/home/luca/.local/lib/python2.7/site-packages/pubsub/pub.py", line 146
    def getDefaultPublisher() -> Publisher:
Reply all
Reply to author
Forward
0 new messages