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

Activity not working in Sugar 0.121 #60

Open
tplobo opened this issue Dec 19, 2024 · 3 comments
Open

Activity not working in Sugar 0.121 #60

tplobo opened this issue Dec 19, 2024 · 3 comments

Comments

@tplobo
Copy link

tplobo commented Dec 19, 2024

Hi there. I tried downloading this Activity for my son but when we start it, it "fails to open". Any ideas how to fix that? How can I produce a log to attach to this issue?

@quozl
Copy link
Collaborator

quozl commented Dec 23, 2024

Thanks.

The link you provided is for a Python 2 system, and chances are you are using a Python 3 system. Can you tell me what operating system and release version you are using?

Produce a log using the Log activity. Explanation here: https://help.sugarlabs.org/en/log.html

@tplobo
Copy link
Author

tplobo commented Dec 24, 2024

Hey @quozl, thanks for the reply.
I have installed Sugar 0.121 on an Ubuntu 24.04.1 LTS using the sudo apt install sucrose command.
I have also checked whether my OS has python 2 installed, and indeed it only includes version 3.12.3.
I have saved the logs using the Log Activity as you suggested:
log-1735038418.zip

@quozl
Copy link
Collaborator

quozl commented Dec 25, 2024

Thanks. There was no error in your Log for Physics, because Sugar wasn't able to start the activity at all because of missing Python 2, and didn't log why. So I created sugarlabs/sugar#991.

Hoping to see if I could deploy Physics in another way, I set up a container instance of Ubuntu 24.04.1 and installed Sugar in the same way you did.

Physics was no longer available as the package sugar-physics-activity, nor from v4.activities.sugarlabs.org, so I created #61, then cloned the repository and placed it in Sugar's activity path. Restart of Sugar showed the activity icon in the home view.

First try at running failed to start, and Log cited ModuleNotFoundError: No module named 'Box2D', so I followed How to install dependencies for development but got no such option: --system to which my response was pip3 install . --break-system-packages, and 96da52f ("Fix how to install dependencies").

Then it worked. Remove your current install of Physics and give my method a try?

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