[Sugar-devel] setting up the development environment
James Cameron
quozl at laptop.org
Wed Dec 11 14:56:29 EST 2019
Thanks. New issue for why Sugar looked at your new.py file.
https://github.com/sugarlabs/sugar/issues/893
On Wed, Dec 11, 2019 at 03:04:07PM +0530, Naman Nimmo wrote:
> Sorry for the last email. I just checked & there was a file named new.py in my
> local machine with "import wikipedia" in it. So, it isn't necessary to install
> Wikipedia to be able to run Sugar.
>
> On Wed, Dec 11, 2019 at 2:37 PM James Cameron <[1]quozl at laptop.org> wrote:
>
> Can you please confirm that you didn't need to install a Python
> Wikipedia package to be able to run Sugar? It's important, because so
> far you have said you did need to install it, and as far as I can see
> you didn't need to. I don't want people to think it is necessary.
>
> Sorry, but nobody is available to guide you through the basic issues.
>
> When you subscribed to the mailing list today, I sent to you the "How
> to get started as a Sugar Labs developer [v8]"
> [2]http://lists.sugarlabs.org/archive/sugar-devel/2019-November/057323.html
> which has a prepared answer to your question in the section "How to
> ask for directions?". Please read that.
>
> Yes, JavaScript/HTML5/CSS is an appropriate choice if you'd like to
> work on Music Blocks or Sugarizer. For other programming languages we
> use, see our list;
> [3]https://github.com/sugarlabs/sugar-docs/blob/master/src/languages.md
>
> On Wed, Dec 11, 2019 at 02:08:04PM +0530, Naman Nimmo wrote:
> > Thanks, it worked out.
> >
> > As I told earlier that I know python & can understand the codebase after
> some
> > help. Can anyone please guide me through the basic issues that I can work
> on
> > now. Should I learn raw javascript so that I'm eligible to work on more
> issues
> > like music blocks or Sugarizer?
> >
> > Thanks in advance.
> > -Naman
> >
> > On Wed, Dec 11, 2019 at 1:56 PM James Cameron <[1][4]quozl at laptop.org>
> wrote:
> >
> > new.py is not a Sugar file, it is yours; move it out of the way, and
> > then Xapian won't try to load it?
> >
> > Fix for the start up to Journal is to upgrade Metacity package.
> Sugar
> > Live Build for instance has a custom Metacity package just to fix
> this.
> >
> > On Wed, Dec 11, 2019 at 12:57:21PM +0530, Naman Nimmo wrote:
> > > Based on the trackbacks (mentioned below) I got earlier in
> shell.log,
> > new. py
> > > file required a Wikipedia import. And I didn't have that.
> > > Once I started sugar, it always displays the journal page. Is that
> a bug
> > or
> > > something cause I didn't even click on that. And on the journal
> page,
> > there is
> > > no option (I think??) of moving back to the home page
> > >
> > > Traceback (most recent call last):
> > > File "/usr/lib/python2.7/runpy.py", line 174, in
> _run_module_as_main
> > > "__main__", fname, loader, pkg_name)
> > > File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
> > > exec code in run_globals
> > > File "/usr/lib/python2.7/dist-packages/jarabe/main.py", line 74,
> in
> > <module>
> > > from jarabe.view import keyhandler
> > > File "/usr/lib/python2.7/dist-packages/jarabe/view/
> keyhandler.py", line
> > 32,
> > > in <module>
> > > from jarabe.journal import journalactivity
> > > File "/usr/lib/python2.7/dist-packages/jarabe/journal/
> > journalactivity.py",
> > > line 45, in <module>
> > > from jarabe.journal.volumestoolbar import VolumesToolbar
> > > File "/usr/lib/python2.7/dist-packages/jarabe/journal/
> > volumestoolbar.py",
> > > line 28, in <module>
> > > import xapian
> > > File "/usr/lib/python2.7/dist-packages/xapian/__init__.py", line
> 26, in
> > > <module>
> > > from new import instancemethod as new_instancemethod
> > > File "new.py", line 1, in <module>
> > > import wikipedia
> > > ImportError: No module named wikipedia
> > >
> > > On Wed, Dec 11, 2019 at 12:44 PM James Cameron <[1][2][5]
> quozl at laptop.org>
> > wrote:
> > >
> > > I'm really surprised, because I didn't have to install any such
> > > package on my Ubuntu 19.04 VM
> > >
> > > Are you sure it is a Sugar file that has imported Wikipedia?
> > >
> > > Might you have a file in your directory which is overriding a
> system
> > > file? I see from your screenshot you have some *.py files.
> > >
> > > On Wed, Dec 11, 2019 at 12:34:04PM +0530, Naman Nimmo wrote:
> > > > Ok, thanks. It's working now. I had to install Wikipedia
> > > >
> > > > On Wed, Dec 11, 2019 at 12:21 PM James Cameron <[1][2][3]
> > [6]quozl at laptop.org>
> > > wrote:
> > > >
> > > > It is normal that .sugar is not shown by ls without -a.
> > > >
> > > > Look carefully at any traceback you see in shell.log, in
> case
> > it
> > > > refers to files that are not system files.
> > > >
> > > > On Wed, Dec 11, 2019 at 12:01:26PM +0530, Naman Nimmo
> wrote:
> > > > > Hey,
> > > > > I couldn't find that file in the terminal. Once I type
> 'ls',
> > it
> > > won't
> > > > display
> > > > > sugar folder.. but It displays that if I type 'ls -a'.
> Why is
> > that
> > > > happening?
> > > > >
> > > > > On Wed, Dec 11, 2019 at 11:51 AM James Cameron <[1][2]
> [3]
> > > [4][7]quozl at laptop.org>
> > > > wrote:
> > > > >
> > > > > Hello Naman,
> > > > >
> > > > > What you have to do is read the file .sugar/default
> /logs/
> > > shell.log to
> > > > > find out why /usr/bin/sugar did fail. Usually
> because of
> > a
> > > missing
> > > > > package.
> > > > >
> > > > > Be sure you are using Ubuntu 19.04, because Ubuntu
> 19.10
> > fails
> > > > because
> > > > > of using version 0.116 of package python-sugar3.
> > > > >
> > > > > On Wed, Dec 11, 2019 at 11:44:42AM +0530, Naman
> Nimmo
> > wrote:
> > > > > > Hello mentors,
> > > > > > I want to contribute to this open-source project.
> I
> > have read
> > > the
> > > > > documentation
> > > > > > already. I know python and want to contribute to
> > "sugar", but
> > > I am
> > > > facing
> > > > > some
> > > > > > trouble in setting up the development
> environment. Once
> > I
> > > installed
> > > > Sugar
> > > > > on
> > > > > > ubuntu 19.04, Sugar 0.112 does not start. In the
> docs,
> > it is
> > > > written that
> > > > > I
> > > > > > need to first log out & then log in again, but It
> won't
> > > display
> > > > anything
> > > > > once I
> > > > > > type sugar in the terminal. What should I do?
> > > > >
> > > > > > _______________________________________________
> > > > > > Sugar-devel mailing list
> > > > > > [2][3][4][5][8]Sugar-devel at lists.sugarlabs.org
> > > > > > [3][4][5][6][9]http://lists.sugarlabs.org/
> listinfo/
> > sugar-devel
> > > > >
> > > > > --
> > > > > James Cameron
> > > > > [4][5][6][7][10]http://quozl.netrek.org/
> > > > >
> > > > > References:
> > > > >
> > > > > [1] mailto:[6][7][8][11]quozl at laptop.org
> > > > > [2] mailto:[7][8][9][12]Sugar-devel at lists.sugarlabs.org
> > > > > [3] [8][9][10][13]http://lists.sugarlabs.org/listinfo/
> sugar-devel
> > > > > [4] [9][10][11][14]http://quozl.netrek.org/
> > > >
> > > > --
> > > > James Cameron
> > > > [10][11][12][15]http://quozl.netrek.org/
> > > >
> > > > References:
> > > >
> > > > [1] mailto:[12][13][16]quozl at laptop.org
> > > > [2] mailto:[13][14][17]quozl at laptop.org
> > > > [3] mailto:[14][15][18]Sugar-devel at lists.sugarlabs.org
> > > > [4] [15][16][19]http://lists.sugarlabs.org/listinfo/
> sugar-devel
> > > > [5] [16][17][20]http://quozl.netrek.org/
> > > > [6] mailto:[17][18][21]quozl at laptop.org
> > > > [7] mailto:[18][19][22]Sugar-devel at lists.sugarlabs.org
> > > > [8] [19][20][23]http://lists.sugarlabs.org/listinfo/
> sugar-devel
> > > > [9] [20][21][24]http://quozl.netrek.org/
> > > > [10] [21][22][25]http://quozl.netrek.org/
> > >
> > > --
> > > James Cameron
> > > [22][23][26]http://quozl.netrek.org/
> > >
> > > References:
> > >
> > > [1] mailto:[24][27]quozl at laptop.org
> > > [2] mailto:[25][28]quozl at laptop.org
> > > [3] mailto:[26][29]quozl at laptop.org
> > > [4] mailto:[27][30]Sugar-devel at lists.sugarlabs.org
> > > [5] [28][31]http://lists.sugarlabs.org/listinfo/sugar-devel
> > > [6] [29][32]http://quozl.netrek.org/
> > > [7] mailto:[30][33]quozl at laptop.org
> > > [8] mailto:[31][34]Sugar-devel at lists.sugarlabs.org
> > > [9] [32][35]http://lists.sugarlabs.org/listinfo/sugar-devel
> > > [10] [33][36]http://quozl.netrek.org/
> > > [11] [34][37]http://quozl.netrek.org/
> > > [12] mailto:[35][38]quozl at laptop.org
> > > [13] mailto:[36][39]quozl at laptop.org
> > > [14] mailto:[37][40]Sugar-devel at lists.sugarlabs.org
> > > [15] [38][41]http://lists.sugarlabs.org/listinfo/sugar-devel
> > > [16] [39][42]http://quozl.netrek.org/
> > > [17] mailto:[40][43]quozl at laptop.org
> > > [18] mailto:[41][44]Sugar-devel at lists.sugarlabs.org
> > > [19] [42][45]http://lists.sugarlabs.org/listinfo/sugar-devel
> > > [20] [43][46]http://quozl.netrek.org/
> > > [21] [44][47]http://quozl.netrek.org/
> > > [22] [45][48]http://quozl.netrek.org/
> >
> > --
> > James Cameron
> > [46][49]http://quozl.netrek.org/
> >
> > References:
> >
> > [1] mailto:[50]quozl at laptop.org
> > [2] mailto:[51]quozl at laptop.org
> > [3] mailto:[52]quozl at laptop.org
> > [4] mailto:[53]quozl at laptop.org
> > [5] mailto:[54]Sugar-devel at lists.sugarlabs.org
> > [6] [55]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [7] [56]http://quozl.netrek.org/
> > [8] mailto:[57]quozl at laptop.org
> > [9] mailto:[58]Sugar-devel at lists.sugarlabs.org
> > [10] [59]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [11] [60]http://quozl.netrek.org/
> > [12] [61]http://quozl.netrek.org/
> > [13] mailto:[62]quozl at laptop.org
> > [14] mailto:[63]quozl at laptop.org
> > [15] mailto:[64]Sugar-devel at lists.sugarlabs.org
> > [16] [65]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [17] [66]http://quozl.netrek.org/
> > [18] mailto:[67]quozl at laptop.org
> > [19] mailto:[68]Sugar-devel at lists.sugarlabs.org
> > [20] [69]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [21] [70]http://quozl.netrek.org/
> > [22] [71]http://quozl.netrek.org/
> > [23] [72]http://quozl.netrek.org/
> > [24] mailto:[73]quozl at laptop.org
> > [25] mailto:[74]quozl at laptop.org
> > [26] mailto:[75]quozl at laptop.org
> > [27] mailto:[76]Sugar-devel at lists.sugarlabs.org
> > [28] [77]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [29] [78]http://quozl.netrek.org/
> > [30] mailto:[79]quozl at laptop.org
> > [31] mailto:[80]Sugar-devel at lists.sugarlabs.org
> > [32] [81]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [33] [82]http://quozl.netrek.org/
> > [34] [83]http://quozl.netrek.org/
> > [35] mailto:[84]quozl at laptop.org
> > [36] mailto:[85]quozl at laptop.org
> > [37] mailto:[86]Sugar-devel at lists.sugarlabs.org
> > [38] [87]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [39] [88]http://quozl.netrek.org/
> > [40] mailto:[89]quozl at laptop.org
> > [41] mailto:[90]Sugar-devel at lists.sugarlabs.org
> > [42] [91]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [43] [92]http://quozl.netrek.org/
> > [44] [93]http://quozl.netrek.org/
> > [45] [94]http://quozl.netrek.org/
> > [46] [95]http://quozl.netrek.org/
>
> --
> James Cameron
> [96]http://quozl.netrek.org/
>
> References:
>
> [1] mailto:quozl at laptop.org
> [2] http://lists.sugarlabs.org/archive/sugar-devel/2019-November/057323.html
> [3] https://github.com/sugarlabs/sugar-docs/blob/master/src/languages.md
> [4] mailto:quozl at laptop.org
> [5] mailto:quozl at laptop.org
> [6] mailto:quozl at laptop.org
> [7] mailto:quozl at laptop.org
> [8] mailto:Sugar-devel at lists.sugarlabs.org
> [9] http://lists.sugarlabs.org/listinfo/
> [10] http://quozl.netrek.org/
> [11] mailto:quozl at laptop.org
> [12] mailto:Sugar-devel at lists.sugarlabs.org
> [13] http://lists.sugarlabs.org/listinfo/sugar-devel
> [14] http://quozl.netrek.org/
> [15] http://quozl.netrek.org/
> [16] mailto:quozl at laptop.org
> [17] mailto:quozl at laptop.org
> [18] mailto:Sugar-devel at lists.sugarlabs.org
> [19] http://lists.sugarlabs.org/listinfo/sugar-devel
> [20] http://quozl.netrek.org/
> [21] mailto:quozl at laptop.org
> [22] mailto:Sugar-devel at lists.sugarlabs.org
> [23] http://lists.sugarlabs.org/listinfo/sugar-devel
> [24] http://quozl.netrek.org/
> [25] http://quozl.netrek.org/
> [26] http://quozl.netrek.org/
> [27] mailto:quozl at laptop.org
> [28] mailto:quozl at laptop.org
> [29] mailto:quozl at laptop.org
> [30] mailto:Sugar-devel at lists.sugarlabs.org
> [31] http://lists.sugarlabs.org/listinfo/sugar-devel
> [32] http://quozl.netrek.org/
> [33] mailto:quozl at laptop.org
> [34] mailto:Sugar-devel at lists.sugarlabs.org
> [35] http://lists.sugarlabs.org/listinfo/sugar-devel
> [36] http://quozl.netrek.org/
> [37] http://quozl.netrek.org/
> [38] mailto:quozl at laptop.org
> [39] mailto:quozl at laptop.org
> [40] mailto:Sugar-devel at lists.sugarlabs.org
> [41] http://lists.sugarlabs.org/listinfo/sugar-devel
> [42] http://quozl.netrek.org/
> [43] mailto:quozl at laptop.org
> [44] mailto:Sugar-devel at lists.sugarlabs.org
> [45] http://lists.sugarlabs.org/listinfo/sugar-devel
> [46] http://quozl.netrek.org/
> [47] http://quozl.netrek.org/
> [48] http://quozl.netrek.org/
> [49] http://quozl.netrek.org/
> [50] mailto:quozl at laptop.org
> [51] mailto:quozl at laptop.org
> [52] mailto:quozl at laptop.org
> [53] mailto:quozl at laptop.org
> [54] mailto:Sugar-devel at lists.sugarlabs.org
> [55] http://lists.sugarlabs.org/listinfo/sugar-devel
> [56] http://quozl.netrek.org/
> [57] mailto:quozl at laptop.org
> [58] mailto:Sugar-devel at lists.sugarlabs.org
> [59] http://lists.sugarlabs.org/listinfo/sugar-devel
> [60] http://quozl.netrek.org/
> [61] http://quozl.netrek.org/
> [62] mailto:quozl at laptop.org
> [63] mailto:quozl at laptop.org
> [64] mailto:Sugar-devel at lists.sugarlabs.org
> [65] http://lists.sugarlabs.org/listinfo/sugar-devel
> [66] http://quozl.netrek.org/
> [67] mailto:quozl at laptop.org
> [68] mailto:Sugar-devel at lists.sugarlabs.org
> [69] http://lists.sugarlabs.org/listinfo/sugar-devel
> [70] http://quozl.netrek.org/
> [71] http://quozl.netrek.org/
> [72] http://quozl.netrek.org/
> [73] mailto:quozl at laptop.org
> [74] mailto:quozl at laptop.org
> [75] mailto:quozl at laptop.org
> [76] mailto:Sugar-devel at lists.sugarlabs.org
> [77] http://lists.sugarlabs.org/listinfo/sugar-devel
> [78] http://quozl.netrek.org/
> [79] mailto:quozl at laptop.org
> [80] mailto:Sugar-devel at lists.sugarlabs.org
> [81] http://lists.sugarlabs.org/listinfo/sugar-devel
> [82] http://quozl.netrek.org/
> [83] http://quozl.netrek.org/
> [84] mailto:quozl at laptop.org
> [85] mailto:quozl at laptop.org
> [86] mailto:Sugar-devel at lists.sugarlabs.org
> [87] http://lists.sugarlabs.org/listinfo/sugar-devel
> [88] http://quozl.netrek.org/
> [89] mailto:quozl at laptop.org
> [90] mailto:Sugar-devel at lists.sugarlabs.org
> [91] http://lists.sugarlabs.org/listinfo/sugar-devel
> [92] http://quozl.netrek.org/
> [93] http://quozl.netrek.org/
> [94] http://quozl.netrek.org/
> [95] http://quozl.netrek.org/
> [96] http://quozl.netrek.org/
--
James Cameron
http://quozl.netrek.org/
More information about the Sugar-devel
mailing list