Bug 214880 - deskutils/gourmet: Unable to edit or add recipes.
Summary: deskutils/gourmet: Unable to edit or add recipes.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Ruslan Makhmatkhanov
URL: https://github.com/thinkle/gourmet/is...
Keywords: easy
Depends on:
Blocks:
 
Reported: 2016-11-27 14:26 UTC by rhs
Modified: 2016-12-15 03:02 UTC (History)
0 users

See Also:


Attachments
Python back-trace after invocation as unprivileged user. (95.01 KB, text/plain)
2016-11-27 14:26 UTC, rhs
no flags Details
Local information, execuatable, sytem. (121.03 KB, text/plain)
2016-12-07 13:19 UTC, rhs
no flags Details
Complete Build Log (184.02 KB, text/plain)
2016-12-13 14:02 UTC, rhs
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rhs 2016-11-27 14:26:51 UTC
Created attachment 177449 [details]
Python back-trace after invocation as unprivileged user.

Seems as if this has occurred previously on other distros. Seems as if those have been fixed without to much to-do.

Program seems to open normally from desktop shortcut (KDE) or as unprivileged user. Opening recipes seems okay as well, they display all fields. Editing any field brings up blank editor.

Attached is full back trace with my edits at lines 887, 1352, 1399. I know less than nothing about python.
Comment 1 rhs 2016-12-07 13:19:46 UTC
Created attachment 177756 [details]
Local information, execuatable, sytem.

Just now realized that there are two different versions of Python, and, also you can see that my ports are fully upgraded.

rhs
Comment 2 rhs 2016-12-13 14:02:47 UTC
Created attachment 177941 [details]
Complete Build Log

Thanks for the reply. I have added "THIS" to items in build log that may point to some problem for this port. So you can just search for 'THIS'.
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2016-12-13 21:35:11 UTC
It has nothing to do with your problem. sqlalchemy developers decided to deprecate everything before 1.x, and we marked old sqlalchemy packages as deprecated. There is PR about that: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215217

But it's doubtful that gourmet will work with this version, I'll check it.
Now trying to reproduce problem, reported in this PR. Perl shebang has nothing to do with this problem too.
Comment 4 rhs 2016-12-14 02:57:08 UTC
Thanks. I tried patch but no go because error>> cant install version 07,10 in same place. I deleted line for 07 in makefile, de-installed, clean, make, make install and i get the exact same behavior. I noticed that "Nutrition Editor' is working perfectly. I think it also worked with 07.

To make this clear the 'Gourmet" port built with squalchemy10 as per 'Make' below.
>>gourmet-0.17.4_2 depends on package: py27-sqlalchemy10>=0 - found<<

I first had to delete the 07 port because of two ports occupying same path in ports tree problem.
Comment 5 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2016-12-14 11:09:03 UTC
The errors you are seeing are related to pillow api changes. And there are upstream patches for this issue. I'll try the patches later today, then will runtime test sqlalchemy10.
Comment 6 commit-hook freebsd_committer freebsd_triage 2016-12-14 21:36:26 UTC
A commit references this bug:

Author: rm
Date: Wed Dec 14 21:35:26 UTC 2016
New revision: 428594
URL: https://svnweb.freebsd.org/changeset/ports/428594

Log:
  deskutils/gourmet: fix runtime

  - fix runtime by applying upstream patch that adjusts using more fresh
    Pillow API calls
  - add missing dependency upon BeautifulSoup
  - bump PORTREVISION

  PR:		214880
  Reported by:	 rhs <rhs.message@gmail.com>

Changes:
  head/deskutils/gourmet/Makefile
  head/deskutils/gourmet/files/
  head/deskutils/gourmet/files/patch-pillow3
Comment 7 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2016-12-14 21:38:23 UTC
I just added upstream patch to fix runtime. Thank you for reporting and apologies for delay with handling this issue.
Comment 8 rhs 2016-12-15 03:02:19 UTC
Just installed gourmet-0.17.4_3. Build looked good. BeautifulSoup got pulled in and I applied patch manually to python modules. WORKS GREAT!!! Sorry I did not update ports mainly because I really did not have time for tree update but, I'm sure the patch is fine.

Great Work, Merry Christmas

Back to the kitchen, at least its warm!