Mailing List Archive

NumPy
[ WinNT 4.0 SP 5, Python 1.5.2]

I've just downloaded Numerical-15.2 and tryied to run the setup.py
script but I get:
Tracebak (innermost last):
File "setup.py", line 16, in ?
from distutils.command import install
ImportError: No module named distutils.command

am'I missing something ?

--
Przemyslaw G. Gawronski UIN:8358522
mailto:gawronskip@usa.net
mailto:gawron@obop.com.pl
NumPy [ In reply to ]
The new NumPy requires the distutils available at:

http://www.python.org/sigs/distutils-sig/Distutils-0.1.2.zip


Admittedly, there should put a link somewhere on the page, or a more
helpful error message in setup.py

Sorry for the inconvenience.

Travis Oliphant
NumPy [ In reply to ]
In article <388DC152.9624D8F5@obop.com.pl>, =?iso-
8859-2?Q?Przemys=B3aw?= G. =?iso-8859-2?Q?Gawro=F1ski?=
<gawron@obop.com.pl> writes
>[ WinNT 4.0 SP 5, Python 1.5.2]
>
>I've just downloaded Numerical-15.2 and tryied to run the setup.py
>script but I get:
>Tracebak (innermost last):
> File "setup.py", line 16, in ?
> from distutils.command import install
>ImportError: No module named distutils.command
>
>am'I missing something ?
>
>--
>Przemyslaw G. Gawronski UIN:8358522
>mailto:gawronskip@usa.net
>mailto:gawron@obop.com.pl
>
>
>
yep you need to get the latest distutils from parnassus.
--
Robin Becker
NumPy [ In reply to ]
"Przemys³aw G. Gawroñski" wrote:
>
> [ WinNT 4.0 SP 5, Python 1.5.2]
>
> I've just downloaded Numerical-15.2 and tryied to run the setup.py
> script but I get:
> Tracebak (innermost last):
> File "setup.py", line 16, in ?
> from distutils.command import install
> ImportError: No module named distutils.command
>
> am'I missing something ?
>
> --
> Przemyslaw G. Gawronski UIN:8358522
> mailto:gawronskip@usa.net
> mailto:gawron@obop.com.pl

With the newer versions of Numeric, you have to install the Distutils.
It is not bundled with the Python instalation. It can be found at:
http://www.python.org/sigs/distutils-sig

--
Curtis Jensen
cjensen@be-research.ucsd.edu
http://www-bioeng.ucsd.edu/~cjensen/
FAX (425) 740-1451
Re: numpy [ In reply to ]
On Thursday, September 10, 2015 at 1:11:59 PM UTC+3, chen...@inhand.com.cn wrote:
> hi:
> I have to use numpy package. My python runs on my embedded arm
> device. So, how do i cross compile numpy?
conda has support for ARM - http://continuum.io/blog/new-arch

BTW: I suggest you write a better subject next time, almost missed this one :)
http://www.catb.org/esr/faqs/smart-questions.html
--
https://mail.python.org/mailman/listinfo/python-list
Re: NUmpy [ In reply to ]
Am 29.09.21 um 18:16 schrieb Jorge Conforte:
>
>
> Hi,
>
> I have a netcdf file "uwnd_850_1981.nc" and I'm using the commands to
> read it:

Your code is incomplete:
> from numpy import dtype
>  fileu ='uwnd_850_1981.nc'
> ncu = Dataset(fileu,'r')

Where is "Dataset" defined?

> uwnd=ncu.variables['uwnd'][:]
>
>
> and I had:
>
> <stdin>:1: DeprecationWarning: `np.bool` is a deprecated alias for the
> builtin `bool`. To silence this warning, use `bool` by itself. Doing
> this will not modify any behavior and is safe. If you specifically
> wanted the numpy scalar type, use `np.bool_` here.
> Deprecated in NumPy 1.20; for more details and guidance:
> https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
>
> I didn't how I have this message. My numpy verison is 1.21.2.
>
>
> Please, how can I solve this.

First, it is only a warning, therefore it should still work. Second, the
problem is not in the code that you posted. POssibly in the definition
of "Dataset". Maybe the netCDF-File contains boolean values and the
package you use to read it should be updated?

Christian
--
https://mail.python.org/mailman/listinfo/python-list