On Fri, Nov 12, 2010 at 1:14 PM, Jonathan Guyer <[email protected]> wrote:
>
> You can also run "python setup.py bdist_egg".
>
> Sorry about this. It bites me every time I do a fresh checkout, but I haven't
> managed to either find a fix or to document the issue.
>
> Filed as http://matforge.org/fipy/ticket/312 so that we find a fix.
Hi, thanks for your answers. I finally made it work by setting the
PYTHONPATH environment variable to the directory where I had untarred
FiPy. Previously I was using the directory where I had installed using
setup.py.
What I did originally was:
$ python setup.py --home=~
and then
$ export PYTHONPATH=~/lib/python
This is what got me the error when I tried to run the examples.
instead, if I set
$ export PYTHONPATH=.
and run the examples from the base directory of the distribution
package, it works perfectly.
I don't know why it doesn't work from the installed place...
Another thing is that for me, both running "python setup.py test" and
"python setup.py bdist_egg" give errors. Maybe I'm lacking some
development packages. I'll paste the error messages so that you can
see them if you are interested.
This is running bdist_egg:
lu...@takenoko:~/LuciaDocuments2010/Lucia2010/FiniteElementMethod/FiPy-2.1$
python setup.py bdist_egg
/home/lucia/LuciaDocuments2010/Lucia2010/FiniteElementMethod/FiPy-2.1/ez_setup.py:105:
UserWarning: Unbuilt egg for pytz [unknown version]
(/usr/lib/python2.6/dist-packages)
pkg_resources.require("setuptools>="+version); return
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'entry_points'
warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'test_suite'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_egg'
and this is running 'test':
lu...@takenoko:~/LuciaDocuments2010/Lucia2010/FiniteElementMethod/FiPy-2.1$
python setup.py test
/home/lucia/LuciaDocuments2010/Lucia2010/FiniteElementMethod/FiPy-2.1/ez_setup.py:105:
UserWarning: Unbuilt egg for pytz [unknown version]
(/usr/lib/python2.6/dist-packages)
pkg_resources.require("setuptools>="+version); return
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'entry_points'
warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'test_suite'
warnings.warn(msg)
running test
Traceback (most recent call last):
File "setup.py", line 507, in <module>
'Topic :: Software Development :: Libraries :: Python Modules'
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 994, in run_command
cmd_obj.ensure_finalized()
File "/usr/lib/python2.6/distutils/cmd.py", line 117, in ensure_finalized
self.finalize_options()
File "setup.py", line 94, in finalize_options
base.finalize_options(self)
File
"/home/lucia/LuciaDocuments2010/Lucia2010/FiniteElementMethod/FiPy-2.1/setuptools-0.6c11-py2.6.egg/setuptools/command/test.py",
line 64, in finalize_options
AttributeError: Distribution instance has no attribute 'test_suite'
Ok, that's all. FiPy is working fine for me now if I run it from its
own directory. I am using version 2.1. I was going to try 2.1.1
yesterday before sending mail but the site was broken for downloading
:-)
Thank you very much for your help.
Lucia