bmc / fortune

Python Fortune Program
http://software.clapper.org/fortune/
Apache License 2.0
69 stars 20 forks source link

error #5

Open nilly opened 5 years ago

nilly commented 5 years ago

Traceback (most recent call last): File "/bin/fortune", line 6, in from fortune import main File "/usr/lib/python2.7/site-packages/fortune/init.py", line 178 print('Missing fortune file.', file=sys.stderr) ^ SyntaxError: invalid syntax [root@lisiliang-test-vm13-237 data]# fortune /usr/share/games/fortunes/chinese.dat Traceback (most recent call last): File "/bin/fortune", line 6, in from fortune import main File "/usr/lib/python2.7/site-packages/fortune/init.py", line 178 print('Missing fortune file.', file=sys.stderr) ^


modify this row to " print('Missing fortune file.')
resolved