sugarlabs / sugar-toolkit-gtk3

Sugar Learning Environment, Activity Toolkit, GTK 3.
GNU Lesser General Public License v2.1
21 stars 80 forks source link

File "setup.py", line 3, in <module> from sugar3.activity import bundlebuilder ModuleNotFoundError: No module named 'sugar3' #446

Closed josharsh closed 1 year ago

josharsh commented 4 years ago

File "setup.py", line 3, in from sugar3.activity import bundlebuilder ModuleNotFoundError: No module named 'sugar3'

chimosky commented 4 years ago

Hi @josharsh. how did you install sugar?

quozl commented 4 years ago

The error means that the sugar3 module is not installed for the version of Python being used to run the file setup.py. In a system with mixed versions of Python, you can test on the command line if the sugar3 module is installed;

python2 -c 'import sugar3'
python3 -c 'import sugar3'

Both of these should complete without error. If there is an error, it must be resolved before running setup.py.

aniruddhabagal commented 2 years ago

Hey even I'm having the same issue... I'm not able to run the setup.py file. I'm getting the error ModuleNotFoundError: No module named 'sugar3' I have installed it in ubuntu-18.04 through sudo apt install python-sugar3 given in Readme.md file Pls help me out in this. image

quozl commented 2 years ago

You have installed the python2 module, please try the import with python2 if you want it to work.

aniruddhabagal commented 2 years ago

Thank you for the help. :) There was an error while installing. Solved it by reinstalling the whole package again.

chimosky commented 1 year ago

Closing as it's stale.