hi, guys, Can anybody tell me how to change WEAVE install directory in Linux machine? I have no access to /opt, so I want to install it in my home directory. Thanks Jing.
On Tue, 17 Sep 2002, Jing (George) Cao wrote:
hi, guys,
Can anybody tell me how to change WEAVE install directory in Linux machine?
I have no access to /opt, so I want to install it in my home directory.
Use ./setup.py install --home and make sure that PYTHONPATH is properly set. See ./setup.py install --help and Python Installation manuals for more information. Pearu
Thanks, I installed it now, but It still doesn't work. I typed: python setup.py install --home /home/jcao/weavelib
sys.path.append('/home/jcao/weavelib/lib/python')
import weave
weave.test() Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/__init__.py", line 20, in test import unittest ImportError: No module named unittest
what's going on here? I try the trivial printf example of Inline, it doesn't work either. error: Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/inline_tools.py", line 275, in inline call_frame = sys._getframe().f_back AttributeError: _getframe Thank you very much for your help Jing. On Tue, 17 Sep 2002, Pearu Peterson wrote:
On Tue, 17 Sep 2002, Jing (George) Cao wrote:
hi, guys,
Can anybody tell me how to change WEAVE install directory in Linux machine?
I have no access to /opt, so I want to install it in my home directory.
Use
./setup.py install --home
and make sure that PYTHONPATH is properly set.
See ./setup.py install --help and Python Installation manuals for more information.
Pearu
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
Hey Jing, What version of Python are you on? Unittest is part of the standard python library as of Python 2.1. That is the oldest version of Python that weave and scipy are tested against. eric
-----Original Message----- From: scipy-user-admin@scipy.net [mailto:scipy-user-admin@scipy.net] On Behalf Of Jing (George) Cao Sent: Tuesday, September 17, 2002 3:37 PM To: scipy-user@scipy.net Subject: Re: [SciPy-user] newbie ask for help
Thanks, I installed it now, but It still doesn't work.
I typed: python setup.py install --home /home/jcao/weavelib
sys.path.append('/home/jcao/weavelib/lib/python')
import weave
weave.test() Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/__init__.py", line 20, in test import unittest ImportError: No module named unittest
what's going on here? I try the trivial printf example of Inline, it doesn't work either.
error: Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/inline_tools.py", line 275, in inline call_frame = sys._getframe().f_back AttributeError: _getframe
Thank you very much for your help
Jing.
On Tue, 17 Sep 2002, Pearu Peterson wrote:
On Tue, 17 Sep 2002, Jing (George) Cao wrote:
hi, guys,
Can anybody tell me how to change WEAVE install directory in
machine?
I have no access to /opt, so I want to install it in my home
Linux directory.
Use
./setup.py install --home
and make sure that PYTHONPATH is properly set.
See ./setup.py install --help and Python Installation manuals for more information.
Pearu
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
version 2.95.1 what is module zlib and where is it? following error message always appears It seems i met some difficulties while starting using weave. Thank you any way.
import weave Traceback (most recent call last): File "<stdin>", line 1, in ? File "/u1/jcao/lib/python/weave/__init__.py", line 13, in ? from inline_tools import inline File "/u1/jcao/lib/python/weave/inline_tools.py", line 4, in ? import ext_tools File "/u1/jcao/lib/python/weave/ext_tools.py", line 10, in ? import catalog File "/u1/jcao/lib/python/weave/catalog.py", line 42, in ? import dumb_shelve as shelve File "/u1/jcao/lib/python/weave/dumb_shelve.py", line 2, in ? import zlib ImportError: No module named zlib
On Tue, 17 Sep 2002, eric jones wrote:
Hey Jing,
What version of Python are you on? Unittest is part of the standard python library as of Python 2.1. That is the oldest version of Python that weave and scipy are tested against.
eric
-----Original Message----- From: scipy-user-admin@scipy.net [mailto:scipy-user-admin@scipy.net] On Behalf Of Jing (George) Cao Sent: Tuesday, September 17, 2002 3:37 PM To: scipy-user@scipy.net Subject: Re: [SciPy-user] newbie ask for help
Thanks, I installed it now, but It still doesn't work.
I typed: python setup.py install --home /home/jcao/weavelib
sys.path.append('/home/jcao/weavelib/lib/python')
import weave
weave.test() Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/__init__.py", line 20, in test import unittest ImportError: No module named unittest
what's going on here? I try the trivial printf example of Inline, it doesn't work either.
error: Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/inline_tools.py", line 275, in inline call_frame = sys._getframe().f_back AttributeError: _getframe
Thank you very much for your help
Jing.
On Tue, 17 Sep 2002, Pearu Peterson wrote:
On Tue, 17 Sep 2002, Jing (George) Cao wrote:
hi, guys,
Can anybody tell me how to change WEAVE install directory in
machine?
I have no access to /opt, so I want to install it in my home
Linux directory.
Use
./setup.py install --home
and make sure that PYTHONPATH is properly set.
See ./setup.py install --help and Python Installation manuals for more information.
Pearu
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
Hey Jing,
version 2.95.1
This is the version of gcc I presume. Python version would be one of the following 1.52, 2.0, 2.1.x, 2.2.x. It is not up to 2.95 yet. When you start python, the displayed banner should tell you the version. [eric@enthoughtaus1 eric]$ python Python 2.2 (#1, Apr 12 2002, 15:29:57) [GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-109)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
what is module zlib and where is it? following error message always appears It seems i met some difficulties while starting using weave.
It does. I think the issue is that you have an "incomplete" version of Python. So far, nothing looks to be weave's fault (those may come later...). Zlib is also a standard module for python, although if you built python yourself, you do have to configure it to include zlib. All standard installations will include it. Really, Dave B. should get you a better setup. One kind of decrepit system is he making you work on. :-) eric
Thank you any way.
import weave Traceback (most recent call last): File "<stdin>", line 1, in ? File "/u1/jcao/lib/python/weave/__init__.py", line 13, in ? from inline_tools import inline File "/u1/jcao/lib/python/weave/inline_tools.py", line 4, in ? import ext_tools File "/u1/jcao/lib/python/weave/ext_tools.py", line 10, in ? import catalog File "/u1/jcao/lib/python/weave/catalog.py", line 42, in ? import dumb_shelve as shelve File "/u1/jcao/lib/python/weave/dumb_shelve.py", line 2, in ? import zlib ImportError: No module named zlib
On Tue, 17 Sep 2002, eric jones wrote:
Hey Jing,
What version of Python are you on? Unittest is part of the standard python library as of Python 2.1. That is the oldest version of
Python
that weave and scipy are tested against.
eric
-----Original Message----- From: scipy-user-admin@scipy.net [mailto:scipy-user-admin@scipy.net] On Behalf Of Jing (George) Cao Sent: Tuesday, September 17, 2002 3:37 PM To: scipy-user@scipy.net Subject: Re: [SciPy-user] newbie ask for help
Thanks, I installed it now, but It still doesn't work.
I typed: python setup.py install --home /home/jcao/weavelib
sys.path.append('/home/jcao/weavelib/lib/python')
import weave
weave.test() Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/__init__.py", line 20, in test import unittest ImportError: No module named unittest
what's going on here? I try the trivial printf example of Inline, it doesn't work either.
error: Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/inline_tools.py", line 275, in inline call_frame = sys._getframe().f_back AttributeError: _getframe
Thank you very much for your help
Jing.
On Tue, 17 Sep 2002, Pearu Peterson wrote:
On Tue, 17 Sep 2002, Jing (George) Cao wrote:
hi, guys,
Can anybody tell me how to change WEAVE install directory in
machine?
I have no access to /opt, so I want to install it in my home
Linux directory.
Use
./setup.py install --home
and make sure that PYTHONPATH is properly set.
See ./setup.py install --help and Python Installation manuals for more information.
Pearu
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
On Tue, 17 Sep 2002, Jing (George) Cao wrote:
error: Traceback (most recent call last): File "<stdin>", line 1, in ? File "weave/inline_tools.py", line 275, in inline call_frame = sys._getframe().f_back AttributeError: _getframe
Clearly, Jing is running pre 2.1 python. Eric, if you wish to have a weave support for python 2.0, then in scipy_distutils/misc_util.py there is a function get_frame that you could use to overcome the attribute error above. Pearu
participants (3)
-
eric jones
-
Jing (George) Cao
-
Pearu Peterson