Opened 9 years ago
Closed 9 years ago
#4745 closed defect (fixed)
Develop 40 sugargame template error in activity.info
Reported by: | tonyforster | Owned by: | godiard |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Develop | Version: | Unspecified |
Severity: | Unspecified | Keywords: | |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | Unconfirmed |
Description
Creating a new Activity from the sugargame template, Activity will not run because activity.info line 5 exec= specifies a non-existant activity.py module and class.
editing line 5 to exec = sugar-activity HelloWorld.HelloWorld fixes bug
change in V40 15e5faa Remove unneeded activity.py may be the cause
Change History (8)
comment:1 Changed 9 years ago by tonyforster
comment:2 follow-up: ↓ 4 Changed 9 years ago by tonyforster
Web template is raising an error in shell.log
comment:3 Changed 9 years ago by tonyforster
Sugargame problem traces back to new_activity.py
28 def activity_info_template(name, web_activity=False):
this function does not allow for sugargame skeleton to have a different activity.info to the gtk default skeleton
comment:4 in reply to: ↑ 2 Changed 9 years ago by godiard
Replying to tonyforster:
Web template is raising an error in shell.log
Can you attach the shell error? Web activity is working here.
I fixed the pygame activity template in git, will be available in the next version.
comment:5 Changed 9 years ago by tonyforster
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 604, in msg_reply_handler
reply_handler(*message.get_args_list(get_args_opts))
File "/usr/lib/python2.7/site-packages/sugar3/activity/activityfactory.py", line 277, in _activate_reply_handler
self._create_activity()
File "/usr/lib/python2.7/site-packages/sugar3/activity/activityfactory.py", line 259, in _create_activity
stderr=log_file.fileno())
File "/usr/lib/python2.7/subprocess.py", line 679, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
The webactivity is opening a log file but that logfile is empty
XO-4 Sugar 0.98.7
comment:6 Changed 9 years ago by godiard
I see the problem, Sugar 0.98 do not support webactivities.
comment:7 Changed 9 years ago by tonyforster
It would be good if users were alerted in some way that they were creating an Activity with limited backwards compatibility. I presume this is also an issue with gtk3.
Maybe the dropdown list should read:
gtk2
gtk3 (Sugar 0.xx and above)
web (Sugar 0.100 and above)
comment:8 Changed 9 years ago by godiard
- Resolution set to fixed
- Status changed from new to closed
Done. Will be in the next version.
The web template does not work either but the log is empty. gtk 2 and gtk3 templates run ok