<div dir="ltr"><div dir="ltr">I just confirmed that the master branch of the Read Activity has this problem with Evince when running on Fedora 39:<div><br></div><div>Traceback (most recent call last):<br> File "/usr/bin/sugar-activity3", line 5, in <module><br> activityinstance.main()<br> File "/usr/lib/python3.12/site-packages/sugar3/activity/activityinstance.py", line 230, in main<br> instance = create_activity_instance(activity_constructor, activity_handle)<br> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> File "/usr/lib/python3.12/site-packages/sugar3/activity/activityinstance.py", line 59, in create_activity_instance<br> activity = constructor(handle)<br> ^^^^^^^^^^^^^^^^^^^<br> File "/home/jamessimmons/git/read-activity/readactivity.py", line 374, in __init__<br> self.read_file(self._jobject.file_path)<br> File "/home/jamessimmons/git/read-activity/readactivity.py", line 747, in read_file<br> self._load_document('file://' + tempfile)<br> File "/home/jamessimmons/git/read-activity/readactivity.py", line 1054, in _load_document<br> self._update_toc()<br> File "/home/jamessimmons/git/read-activity/readactivity.py", line 627, in _update_toc<br> if self._view.update_toc(self):<br> ^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> File "/home/jamessimmons/git/read-activity/evinceadapter.py", line 275, in update_toc<br> if self._validate_min_version(3, 5, 92):<br> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> File "/home/jamessimmons/git/read-activity/evinceadapter.py", line 301, in _validate_min_version<br> EvinceDocument.MICRO_VERSION]<br> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> File "/usr/lib64/python3.12/site-packages/gi/module.py", line 126, in __getattr__<br> raise AttributeError("%r object has no attribute %r" % (<br>AttributeError: 'gi.repository.EvinceDocument' object has no attribute 'MICRO_VERSION'. Did you mean: 'MINOR_VERSION'?<br>Exited with status 1, pid 106639 activity_id 37db76336c5474c61078f525c28c1f9de48fab9a<br></div><div><br></div><div>James Simmons</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 16, 2024 at 4:09 PM James Simmons <<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">James,<div><br></div><div>I'm using Fedora 39, a fresh install on a computer I just got and an older one I'm giving away. I'm using the version of Read that ships with Fedora. I just checked out the master branch of Read from Git and could run a python 3 setup.py dev on it to see if that version has the problem. I won't be able to do that right away, but when I do I'll let you know if it works.</div><div><br></div><div>James Simmons </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 16, 2024 at 3:42 PM James Cameron <<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">That's surprising. Thought we fixed that.<br>
<br>
What Linux distribution and release are you doing this on?<br>
<br>
On Fri, Feb 16, 2024 at 02:23:11PM -0600, James Simmons wrote:<br>
> James,<br>
> <br>
> I don't want to use Evince as part of Get IA Books. It is the Read Activity<br>
> itself that has a problem.<br>
> <br>
> When I tested opening books from the Journal the Read Activity would not start.<br>
> I thought the problem might be in the way Get IA Books was adding books to the<br>
> Journal, so as a sanity check I used the Browse activity to download some PDFs<br>
> to the Journal and also downloaded one EPUB. The Read Activity opened the EPUB<br>
> just fine but not the PDFs. There was a stack trace (copied to an earlier<br>
> email) that made it look like the code Evince needs to interface with Python<br>
> has changed. It was complaining about an Evince micro version number. That was<br>
> the thing I wanted to look at in the Read Activity.<br>
> <br>
> I'll probably send an email to the wider group explaining the issue.<br>
> <br>
> Thanks.<br>
> <br>
> James Simmons<br>
> <br>
> On Fri, Feb 16, 2024 at 2:01 PM James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
> <br>
> There's also VScode and GitHub desktop if you want to try other<br>
> methods. It is difficult to keep up with GitHub's security posture<br>
> lately.<br>
> <br>
> The Read activity has the integration with Evince. If you want your<br>
> activity to show PDF inside it, rather than activate Read, then borrow<br>
> code from Read.<br>
> <br>
> By the way, you're using our membership team alias, which is just<br>
> Alex, myself, and Ibiam. If you'd like wider and public readership,<br>
> there's the sugar-devel@ mailing list.<br>
> <br>
> [2]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> <br>
> On Fri, Feb 16, 2024 at 08:03:20AM -0600, James Simmons wrote:<br>
> > Ibiam,<br>
> ><br>
> > I think the problem is I need to use a Personal Access Token with<br>
> Eclipse.<br>
> > Somehow it worked with my regular password from Windows at work but it<br>
> was<br>
> > rejected when I used the command line at home from Linux. I had to use<br>
> the PAT<br>
> > instead of the regular password.<br>
> ><br>
> > I'm going to try to get the Read Activity working with Evince. I won't<br>
> need Git<br>
> > update permission unless I actually succeed.<br>
> ><br>
> > James Simmons<br>
> ><br>
> > On Fri, Feb 16, 2024 at 7:40 AM Chihurumnaya Ibiam <[1][3]<br>
> <a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a>><br>
> > wrote:<br>
> ><br>
> > Maybe there's an issue with the integration in Eclipse.<br>
> ><br>
> > Glad to hear it's working fine from the command line.<br>
> ><br>
> > On Thu, Feb 15, 2024 at 5:32 PM James Simmons <[2][4]<br>
> <a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a>><br>
> > wrote:<br>
> ><br>
> > Chihurumnaya,<br>
> ><br>
> > <br>
> > I did some testing with command line Git and my push worked fine.<br>
> I was<br>
> > trying to use Eclipse as my IDE, which has Git integration built<br>
> in.<br>
> > That works fine for pulls and for cloning the repository but not<br>
> for<br>
> > pushes, at least not if you use the https:// URL.<br>
> > <br>
> > I can easily live with doing pushes from the command line.<br>
> > <br>
> > Thanks for your help.<br>
> > <br>
> > James Simmons<br>
> > <br>
> > <br>
> > On Thu, Feb 15, 2024 at 7:42 AM Chihurumnaya Ibiam <[3]<br>
> > [5]<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a>> wrote:<br>
> ><br>
> > That's strange, can you use the -v arg so we can see some<br>
> verbose<br>
> > output, I can confirm you have admin access to the repo.<br>
> ><br>
> > On Thu, Feb 15, 2024 at 1:41 AM James Simmons <[4]<br>
> > [6]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a>> wrote:<br>
> ><br>
> > Ibiam,<br>
> ><br>
> > I just tried it. I get this error:<br>
> ><br>
> > Can't connect to any repository: [5][7]<a href="https://github.com" rel="noreferrer" target="_blank">https://github.com</a><br>
> /<br>
> > sugarlabs/getiabooks.git ([6][8]<a href="https://github.com/" rel="noreferrer" target="_blank">https://github.com/</a><br>
> sugarlabs/<br>
> > getiabooks.git: not authorized)<br>
> ><br>
> > I try logging in as [7][9]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a> (as I log<br>
> into the<br>
> > website) and also jdsimmons. Both display the login<br>
> dialog<br>
> > multiple times and give up.<br>
> ><br>
> > It looks like I can create branches OK on the website.<br>
> ><br>
> > Any suggestions?<br>
> ><br>
> > James Simmons<br>
> ><br>
> > On Wed, Feb 14, 2024 at 11:33 AM James Simmons <[8]<br>
> > [10]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a>> wrote:<br>
> ><br>
> > Thanks. It looks OK. I won't be able to try it out<br>
> until<br>
> > this evening.<br>
> ><br>
> > James Simmons<br>
> ><br>
> > On Wed, Feb 14, 2024 at 11:18 AM Chihurumnaya Ibiam<br>
> <[9]<br>
> > [11]<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a>> wrote:<br>
> ><br>
> > I've added you as a collaborator to the repo with<br>
> admin<br>
> > access.<br>
> ><br>
> > On Wed, Feb 14, 2024 at 6:12 PM James Simmons<br>
> <[10]<br>
> > [12]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a>> wrote:<br>
> ><br>
> > Many years ago I wrote Activities for Sugar<br>
> and the<br>
> > maintenance of those Activities has been<br>
> taken over<br>
> > by others. One such Activity is:<br>
> ><br>
> > [11][13]<a href="https://github.com/sugarlabs/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/</a><br>
> getiabooks<br>
> ><br>
> > I'm preparing one of my used computers to<br>
> give to a<br>
> > bright eight year old boy and I wanted to<br>
> give him<br>
> > a working Sugar environment in addition to<br>
> other<br>
> > cool Linux stuff. Get IA Books stopped<br>
> working<br>
> > because the Internet Archive changed their<br>
> advanced<br>
> > search and also the formats that they<br>
> generate for<br>
> > their titles, but I've got it mostly working<br>
> again<br>
> > and I'd like to create a branch and a pull<br>
> request<br>
> > for this and other Activities I created which<br>
> need<br>
> > to be upgraded to Python 3. The Get Books<br>
> Activity<br>
> > needs to be upgraded also and I can do the<br>
> work on<br>
> > that one as well. They share a certain amount<br>
> of<br>
> > code.<br>
> ><br>
> > It appears that I am not allowed to create<br>
> branches<br>
> > and push changes to them. My id in GitHub is<br>
> > jdsimmons and I'm shown as a past contributor<br>
> to<br>
> > this Activity. CAn I be given this access?<br>
> ><br>
> > Thanks,<br>
> ><br>
> > James Simmons<br>
> ><br>
> > References:<br>
> ><br>
> > [1] mailto:[14]<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> > [2] mailto:[15]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> > [3] mailto:[16]<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> > [4] mailto:[17]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> > [5] [18]<a href="https://github.com/sugarlabs/getiabooks.git" rel="noreferrer" target="_blank">https://github.com/sugarlabs/getiabooks.git</a><br>
> > [6] [19]<a href="https://github.com/sugarlabs/getiabooks.git" rel="noreferrer" target="_blank">https://github.com/sugarlabs/getiabooks.git</a><br>
> > [7] mailto:[20]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> > [8] mailto:[21]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> > [9] mailto:[22]<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> > [10] mailto:[23]<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> > [11] [24]<a href="https://github.com/sugarlabs/getiabooks" rel="noreferrer" target="_blank">https://github.com/sugarlabs/getiabooks</a><br>
> <br>
> References:<br>
> <br>
> [1] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [2] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [3] mailto:<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> [4] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [5] mailto:<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> [6] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [7] <a href="https://github.com/" rel="noreferrer" target="_blank">https://github.com/</a><br>
> [8] <a href="https://github.com/sugarlabs/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/</a><br>
> [9] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [10] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [11] mailto:<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> [12] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [13] <a href="https://github.com/sugarlabs/getiabooks" rel="noreferrer" target="_blank">https://github.com/sugarlabs/getiabooks</a><br>
> [14] mailto:<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> [15] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [16] mailto:<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> [17] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [18] <a href="https://github.com/sugarlabs/getiabooks.git" rel="noreferrer" target="_blank">https://github.com/sugarlabs/getiabooks.git</a><br>
> [19] <a href="https://github.com/sugarlabs/getiabooks.git" rel="noreferrer" target="_blank">https://github.com/sugarlabs/getiabooks.git</a><br>
> [20] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [21] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [22] mailto:<a href="mailto:members@sugarlabs.org" target="_blank">members@sugarlabs.org</a><br>
> [23] mailto:<a href="mailto:nicestep@gmail.com" target="_blank">nicestep@gmail.com</a><br>
> [24] <a href="https://github.com/sugarlabs/getiabooks" rel="noreferrer" target="_blank">https://github.com/sugarlabs/getiabooks</a><br>
</blockquote></div>
</blockquote></div>