View Issue Details

IDProjectCategoryView StatusLast Update
0000644FreeCADBugpublic2012-10-29 18:12
Reporterjmaustpc Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSKubuntuOS Version11.04
Fixed in Version0.13 
Summary0000644: List "pyxplot" as a dependency in the ppa
Description"pyxplot"

Ship mod requires pyxplot ..... shouldn't it now be a dependency in the ppa??
TagsNo tags attached.
FreeCAD Information

Activities

yorik

2012-03-16 12:10

administrator   ~0001782

My opinion is that we should avoid mandatory dependencies as much as possible, specially a big one such as pyxplot (outside, of course, the unavoidable ones such as OCC). It is the responsability of the module to see if it's available and use it or not.

For me it should be listed as "suggested"...

jmaustpc

2012-03-22 05:56

manager   ~0001803

Last edited: 2012-03-22 05:59

OK, possibly you right, so long as it is in the suggested I guess that will do.

But it will be a relative novice installing and using the PPA version, isn't it better therefore if it just installs everything needed so that FreeCAD just works?

When I tried to use the function without PYXPLOT FreeCAD just opened up a new blank "drawing" page.

Wouldn't it be better for it to pop up an error message telling the user to install pyxplot? But wouldn't it be easier to just added it as a dependency?

yorik

2012-04-16 21:12

administrator   ~0001951

Reminder sent to: user701

Jose, could you have a look at this please?

yorik

2012-04-16 21:16

administrator   ~0001952

It's a 70Mb package, I don't think it's fair to force users who won't use the ship module to have it... But I think it would be nice indeed to warn users that they need to install that package if they try to use it.

nvivier

2012-10-20 13:52

reporter   ~0002456

I have just ran into this issue. I understand it is a big dependency but I think the module should advise when the user tries to use the tool that it won't be able to plot (and how it can be solve...)

user701

2012-10-21 12:23

  ~0002458

pyxplot is outdated due to I'm developing a Plot module for FreeCAD using matplotlib (pyxplot is not present on windows).
I requested at dev mail list for Windows installer maintainers incorporates matplotlib (and numpy, that is a dependency), but for the moment I haven't received answer.
When Windows installer creators includes matplotlib (or no answer received for a lot of time) i will request Plot module integration at master branch (Plot module branch already includes CMake/Autoconf and Debian packages matplolib dependency stuff). For the moment I'm writting some documentation:

https://sourceforge.net/apps/mediawiki/free-cad/index.php?title=Plot_Module

When Plot module was ready i will implement it at Ship module.

I will send new request at forum!
Thanks!!!

normandc

2012-10-21 14:06

manager   ~0002459

Last edited: 2012-10-21 14:06

In the Ubuntu repos I have only found python-matplotlib and python-numpy, is that it?

It requires quite a lot of packages and I don't think it takes less space than pyxplot, but one dependency I don't like much is the Gtk+2 GUI library. Although it's probably installed by default on Gnome and Xfce systems, I don't know about KDE.

http://packages.ubuntu.com/precise/python-matplotlib

wmayer

2012-10-22 10:25

administrator   ~0002460

> In the Ubuntu repos I have only found python-matplotlib and python-numpy, is that it?
Yes.

> It requires quite a lot of packages and I don't think it takes less space than pyxplot
On my Ubuntu 12.04 test system it requires 20MB additional memory while for a pyxplot installation it wanted 700MB (!!!) more space.

> but one dependency I don't like much is the Gtk+2 GUI library. Although it's probably installed by default on Gnome and Xfce systems, I don't know about KDE.

If a KDE user has applications installed that do not depend on the KDE libs then the chance is high that GTK is installed, too. Sure, it's probably not the most elegant way but by far better than having the huge pyxplot stuff.

wmayer

2012-10-22 10:35

administrator   ~0002461

@sanguinariojoe:
matplotlib is available also for Windows and MacOSX https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1/ but in order to have this for Windows a new LibPack is required where we can put this into. Just deploying it with an MSI installer without putting it to the LibPack doesn't make sense.

Since creating a new LibPack doesn't happen overnight you should implement your Ship module that a matplotlib package is only mandatory for the plotting and all other commands are able to work without it.

user701

2012-10-26 06:30

  ~0002467

OK!
Topic closed??

normandc

2012-10-26 12:22

manager   ~0002468

Not until the dependency is actually added to the ppa! After all this is what the bug description says. ;-)

Actually it would be a "recommend" or even "suggested" instead of a dependency. I can do it at any time, but I'm wondering if we should not wait for when the Windows LibPack gets updated, and do the ppa at the same time.

In FreeCAD Werner added a Dependency graph tool that needs a specific package to work. When I first tried this feature a dialog opened to tell me what to install. Could you do the same for your plotting utility?

user701

2012-10-26 14:12

  ~0002469

Last edited: 2012-10-26 14:14

> Not until the dependency is actually added to the ppa!
I don't see pyxplot as package dependency. I'm looking for pyxplot on Debian packaging stuff, on daily built debian package, on autotools stuff, on cmake stuff and on windows installer stuff, but i can't find any reference to pyxplot.

I requested a merge of my plot module that adds matplotlib as suggestion when autotools or cmake is used (printing a warning if not found), and as recommend package at debian packaging stuff. For windows users for the moment a warning is printed on FreeCAD start saying that Plot module is not available.

The point is that I don't know if I may add matplotlib (and all subdependencies) as build-dependency too, due to cmake will not install the module if matplotlib is not installed. (I didn't think on this, thanks!)
Maybe cmake can be forced to install module although matplotlib can't be found... What do you think?

> In FreeCAD Werner added a Dependency graph tool that needs a specific package to work. When I first tried this feature a dialog opened to tell me what to install. Could you do the same for your plotting utility?
I'm not sure to understand. Is a FreeCAD tool that when is being executed and found dependencies missed shows you what do you need? Seems nice! Where can i find the source code?

Nevertheless, the topic around pyxplot seems closed, or at least moved to matplotlib, no?

yorik

2012-10-29 18:12

administrator   ~0002470

Ok, I'm closing this one then, reopen if needed...

Issue History

Date Modified Username Field Change
2012-03-16 08:54 jmaustpc New Issue
2012-03-16 12:10 yorik Note Added: 0001782
2012-03-22 05:56 jmaustpc Note Added: 0001803
2012-03-22 05:59 jmaustpc Note Edited: 0001803
2012-04-16 21:12 yorik Note Added: 0001951
2012-04-16 21:16 yorik Note Added: 0001952
2012-10-20 13:52 nvivier Note Added: 0002456
2012-10-21 12:23 user701 Note Added: 0002458
2012-10-21 14:06 normandc Note Added: 0002459
2012-10-21 14:06 normandc Note Edited: 0002459
2012-10-22 10:25 wmayer Note Added: 0002460
2012-10-22 10:35 wmayer Note Added: 0002461
2012-10-26 06:30 user701 Note Added: 0002467
2012-10-26 12:22 normandc Note Added: 0002468
2012-10-26 14:12 user701 Note Added: 0002469
2012-10-26 14:14 user701 Note Edited: 0002469
2012-10-29 18:12 yorik Note Added: 0002470
2012-10-29 18:12 yorik Status new => closed
2012-10-29 18:12 yorik Resolution open => no change required
2012-10-29 18:12 yorik Fixed in Version => 0.13