Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[two positive reviews] Updated experimental Mayavi2 spkg (mayavi_2.1.1) linux only #2495

Closed
jaapspies opened this issue Mar 12, 2008 · 13 comments

Comments

@jaapspies
Copy link
Member

Updated to the latest release of Mayavi2.

Now uses vtk-5.0.4 with GL2EPS enabled, so picures can be saved as eps, ps and pdf files!

See:
http://sage.math.washington.edu/home/jsp/SPKGS/mayavi_2.1.1/

http://sage.math.washington.edu/home/jsp/SPKGS/mayavi_2.1.1/mayavi_2.1.1-20080307.spkg

with dependencies:

http://sage.math.washington.edu/home/jsp/SPKGS/mayavi_2.1.1/vtk-5.0.4.spkg

new version of setuptools (will be in sage-2.10.4 standard): http://sage.math.washington.edu/home/jsp/SPKGS/mayavi_2.1.1/setuptools-0.6c8.spkg

http://sage.math.washington.edu/home/jsp/SPKGS/mayavi_2.1.1/wxPython-2.8.7.1.spkg (already in experimental)

Component: packages: experimental

Issue created by migration from https://trac.sagemath.org/ticket/2495

@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented Mar 13, 2008

comment:2

I used these packages to upgrade from earlier versions of Jaap's packages; the installations went perfectly, and my code (which uses wxPython, vtk, and tvtk (from mayavi)) worked fine after the upgrade.

Debian testing 32-bit x86.

@sagetrac-cwitty sagetrac-cwitty mannequin changed the title Updated experimental Mayavi2 spkg (mayavi_2.1.1) linux only [one positive review, needs more reviews] Updated experimental Mayavi2 spkg (mayavi_2.1.1) linux only Mar 13, 2008
@wdjoyner
Copy link

comment:3

There is a small typo in
http://sage.math.washington.edu/home/jsp/SPKGS/mayavi_2.1.1/README.txt
The line
ype ./sage -i mayavi_2.1.1.20080307
should read
ype ./sage -i mayavi_2.1.1-20080307

@wdjoyner
Copy link

comment:4

I tried this and got the following install error:

...
Installing mayavi2 script to /home/wdj/wdj/sagefiles/sage-2.10.3/local/bin

Installed /mnt/drive_hda1/sagefiles/sage-2.10.3/local/lib/python2.5/site-packages/enthought.mayavi-2.1.1.dev_r18151-py2.5.egg
Processing dependencies for enthought.mayavi==2.1.1.dev-r18151
Searching for enthought.util>=2.0.3.dev,<3.0a
Best match: enthought.util 2.0.3
Processing enthought.util-2.0.3-py2.5.egg
creating /mnt/drive_hda1/sagefiles/sage-2.10.3/local/lib/python2.5/site-packages/enthought.util-2.0.3-py2.5.egg
Extracting enthought.util-2.0.3-py2.5.egg to /mnt/drive_hda1/sagefiles/sage-2.10.3/local/lib/python2.5/site-packages
Adding enthought.util 2.0.3 to easy-install.pth file

Installed /mnt/drive_hda1/sagefiles/sage-2.10.3/local/lib/python2.5/site-packages/enthought.util-2.0.3-py2.5.egg
Searching for enthought.tvtk[plugin,wx]>=2.0.2.dev,<3.0a

Link to http://code.enthought.com/enstaller/eggs/source ***BLOCKED*** by --allow-hosts


Link to http://pypi.python.org/simple/enthought.tvtk/ ***BLOCKED*** by --allow-hosts

Couldn't find index page for 'enthought.tvtk' (maybe misspelled?)
Scanning index of all packages (this may take a while)

Link to http://pypi.python.org/simple/ ***BLOCKED*** by --allow-hosts

No local packages or download links found for enthought.tvtk[plugin,wx]>=2.0.2.dev,<3.0a
error: Could not find suitable distribution for Requirement.parse('enthought.tvtk[plugin,wx]>=2.0.2.dev,<3.0a')

real    34m27.361s
user    24m49.633s
sys     3m27.337s
sage: An error occurred while installing mayavi_2.1.1-20080307
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/wdj/wdj/sagefiles/sage-2.10.3/install.log.  Describe your computer, operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/home/wdj/wdj/sagefiles/sage-2.10.3/spkg/build/mayavi_2.1.1-20080307 and type 'make'.
Instead type "/home/wdj/wdj/sagefiles/sage-2.10.3/sage -sh"
in order to set all environment variables correctly, then cd to
/home/wdj/wdj/sagefiles/sage-2.10.3/spkg/build/mayavi_2.1.1-20080307
(When you are done debugging, you can type "exit" to leave the
subshell.)

@jaapspies
Copy link
Member Author

comment:5

mayvi2 should be built locally, so no need to get external sources!

Dependencies for now:

install vtk-5.0.4.spkg (see #2493 )

Be sure you have installed wxPython-2.8.7.1.spkg (in experimental already!)
and setuptools-0.6c8.spkg

Or put everything temporarily in spkg/standard, etcetera see the README.txt

@jaapspies
Copy link
Member Author

comment:6

Replying to @wdjoyner:

I tried this and got the following install error:

Could you try once again following the instructions?

And by doing so also comment on trac ticket #2493

@sagetrac-mabshoff

This comment has been minimized.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 22, 2008

comment:7

A couple remarks:

  • the build directory should be called src
  • please remove the .svn directories, that cuts the size of the spkg in half.
  • check in the file to the repo. I did the initial checkin, so in the future you need to check in only the changes

The updated spkg is at

http://sage.math.washington.edu/home/mabshoff/release-cycles-2.11/experimental/mayavi_2.1.1-20080307.p0.spkg

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title [one positive review, needs more reviews] Updated experimental Mayavi2 spkg (mayavi_2.1.1) linux only [two positive reviews] Updated experimental Mayavi2 spkg (mayavi_2.1.1) linux only Mar 22, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 22, 2008

comment:8

One thing I forgot: I very much dislike the fact that it forced automated downloads of things like wxPython in case it isn't installed. It is clear from the readme that those ought to be already installed, but we need to find a more elegant way how to solve the "dependency of non-standard spkg" problem.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 22, 2008

comment:9

Merged in the experimental spkg repo.

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Mar 22, 2008
@jaapspies
Copy link
Member Author

comment:10

Replying to @sagetrac-mabshoff:

One thing I forgot: I very much dislike the fact that it forced automated downloads of things like wxPython in case it isn't installed. It is clear from the readme that those ought to be already installed, but we need to find a more elegant way how to solve the "dependency of non-standard spkg" problem.

Before we have this elegant solution the spkg-install should be consistent with reality!
So reflect that mayavi2 depends on vtk-5.0.4.p0 as you name the package.

The same holds for the vtk spkg, because it depends on cmake.

Jaap

#!/bin/sh

sage -i wxPython-2.8.7.1
sage -i vtk-5.0.4.p0


cd src

python egg_builder.py -r -v

easy_install -f dist -H dist enthought.mayavi*

@jaapspies
Copy link
Member Author

comment:11

The mayavi_2.1.1-20080307.p1.spkg does not work for me.

MayaVi2 seems to build, but fails to run mlab!

What the difference between mayavi_2.1.1-20080307.p1.spkg
and my original mayavi_2.1.1-20080307.spkg?

1) mv mayavi_build src
2) rm all .svn stuff
3) add .hg and friends

My hypothesis for now is that the .svn directories contain
essential information for the build system. I might be wrong, ...

I did a diff -r on both directories, only .svn files missing! See:

http://sage.math.washington.edu/home/jsp/diff_file

I did a fresh install on fresh installed sage-2.10.4,
sage-2.11.alpha0, sage-2.11.alpha1 on two machines. The results are consistent.

@jaapspies jaapspies reopened this Mar 27, 2008
@jaapspies
Copy link
Member Author

comment:12

About time to close this ticket again! A working modified version can be found here:

http://sage.math.washington.edu/home/jsp/mayavi_2.1.1-20080307.p1.spkg

Now the package is announced to be in sage-2.11 I don't think it is wise to have a wrong spkg in the experimental repo.

Jaap

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 31, 2008

comment:13

Updated the spkg with Jaap's latest. So I am closing this again since I just mirrored the repo out again.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Mar 31, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants