Re: My second snap ;-)

2016-10-04 Thread Robert Park
And, if you're *so crazy* that you decide you want a snap that doesn't contain tkinter, you can do this in your snapcraft.yaml: parts: myapp: plugin: dump source: . stage-packages: - python3-matplotlib - python3-numpy organize:

Re: My second snap ;-)

2016-10-04 Thread Mark Shuttleworth
On 04/10/16 18:44, Robert Park wrote: > Thanks again Loic, I was finally able to achieve a snapped matplotlib > (well, the current traceback I'm seeing is at least from my own app so > I can iterate on that, matplotlib seems happy enough at least). \o/ now the fun part starts when you get to push

Re: My second snap ;-)

2016-10-04 Thread Robert Park
Thanks again Loic, I was finally able to achieve a snapped matplotlib (well, the current traceback I'm seeing is at least from my own app so I can iterate on that, matplotlib seems happy enough at least). The trick is that you can't just set $MATPLOTLIBDATA to any old dir because matplotlib expect

Re: My second snap ;-)

2016-10-04 Thread Mark Shuttleworth
Giving you your own /etc would enable you to do whatever you want in it, but it would by definition also mean that any files you see there don't reflect any OTHER apps understanding. So /etc/resolv.conf for example would be meaningless, because yours might be different to that on the snap next doo

Re: My second snap ;-)

2016-10-04 Thread Sergio Schvezov
El 04/10/16 a las 03:10, Didier Roche escribió: Le 03/10/2016 à 20:51, Robert Park a écrit : On Sun, Oct 2, 2016 at 11:20 PM, Didier Roche wrote: Le 02/10/2016 à 20:48, Robert Park a écrit : Is there a plug to just read /etc? or a sensible way to set all those env vars to /dev/null or somethi

Re: My second snap ;-)

2016-10-03 Thread Didier Roche
Le 03/10/2016 à 20:51, Robert Park a écrit : > On Sun, Oct 2, 2016 at 11:20 PM, Didier Roche wrote: >> Le 02/10/2016 à 20:48, Robert Park a écrit : >>> Is there a plug to just read /etc? or a sensible way to set all those >>> env vars to /dev/null or something? >> Hey Robert, >> >> There is no plu

Re: My second snap ;-)

2016-10-03 Thread Robert Park
On Sun, Oct 2, 2016 at 11:20 PM, Didier Roche wrote: > Le 02/10/2016 à 20:48, Robert Park a écrit : >> Is there a plug to just read /etc? or a sensible way to set all those >> env vars to /dev/null or something? > Hey Robert, > > There is no plug to read from /etc on purpose. The goal is your snap

Re: My second snap ;-)

2016-10-02 Thread Didier Roche
Le 02/10/2016 à 20:48, Robert Park a écrit : > On Sun, Oct 2, 2016 at 1:43 AM, Loïc Minier wrote: >> So just create a matplotlibrc in your $SNAP and you should be good > Thanks for this analysis. I created an empty matplotlibrc in $PWD and > then got this instead: > > PermissionError: [Errno 13] P

Re: My second snap ;-)

2016-10-02 Thread Robert Park
On Sun, Oct 2, 2016 at 1:43 AM, Loïc Minier wrote: > So just create a matplotlibrc in your $SNAP and you should be good Thanks for this analysis. I created an empty matplotlibrc in $PWD and then got this instead: PermissionError: [Errno 13] Permission denied: '/home/robru/src/weight/matplotlibrc

Re: My second snap ;-)

2016-10-02 Thread Loïc Minier
Hi, Right; matplotlib expects matplotlibrc to be installed. Looking at matplotlib/__init__.py, you can see rc_params() calls matplotlib_fname() to get the default config filename. The search order there is: - `$PWD/matplotlibrc` - `$MATPLOTLIBRC/matplotlibrc` - `$MPLCONFIGDIR/matpl

My second snap ;-)

2016-10-02 Thread Robert Park
Hi all! Back again with a second attempt, this time I'm not trying to modify the host system so I'm hoping this should be a lot easier/possible! Here's my snapcraft.yaml: https://git.launchpad.net/~robru/+git/weightloss/tree/snapcraft.yaml Pretty simple little flask webapp, just does some data