Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Can't install csv parser (http://www.velocityreviews.com/forums/t319633-cant-install-csv-parser.html)

BogAl 07-13-2003 07:48 PM

Can't install csv parser
 
Hi, all....

I'm hoping someone can help me. I've downloaded the csv.pyd file from
http://www.object-craft.com.au/proje.../download.html
and put it into my C:\Python22\DLLs directory. Typing

import csv

into a python window results in the following error message:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in ?
import csv
ImportError: DLL load failed: One of the library files needed to run this
application cannot be found.

Can someone help me get this running?

Thanks,
BogAl

Bernard Delmée 07-13-2003 07:59 PM

Re: Can't install csv parser
 
> I'm hoping someone can help me. I've downloaded the csv.pyd file from
> http://www.object-craft.com.au/proje.../download.html
> and put it into my C:\Python22\DLLs directory.


Mmh...works for me - ActivePython 2.2.2
Are you sure you downloaded the pyd file corresponding to
your python version? Running the MS "depends" utility on
csv.pyd reveals that it only needs python22.dll, msvcrt.dll
and kernel32.dll. Are these all on your PATH?

> Traceback (most recent call last):
> File "<pyshell#0>", line 1, in ?
> import csv


What's pyshell? did you try from good ole trusty python.exe
in a DOS box?

Hope this'll help you diagnose,

Bernard.




BogAl 07-13-2003 08:33 PM

Re: Can't install csv parser
 
Thanks for the reply, Bernard....

> Mmh...works for me - ActivePython 2.2.2
> Are you sure you downloaded the pyd file corresponding to
> your python version?


Yes, Python 2.2.2 here.


> Running the MS "depends" utility on
> csv.pyd reveals that it only needs python22.dll, msvcrt.dll
> and kernel32.dll. Are these all on your PATH?
>


I think they are now....
"...C:\WINDOWS\SYSTEM\python22.dll;C:\WINDOWS\SYST EM\KERNEL32.dll;\C:
\WINDOWS\SYSTEM\MSVCRT.dll;..."


> > Traceback (most recent call last):
> > File "<pyshell#0>", line 1, in ?
> > import csv

>
> What's pyshell? did you try from good ole trusty python.exe
> in a DOS box?


No difference. Still the same error message.
Any further help is greatly appreciated.


Dave Cole 07-14-2003 04:25 AM

Re: Can't install csv parser
 
>>>>> "Bernard" == Bernard Delmée <bdelmee@advalvas.REMOVEME.be> writes:

>> I'm hoping someone can help me. I've downloaded the csv.pyd file
>> from http://www.object-craft.com.au/proje.../download.html and
>> put it into my C:\Python22\DLLs directory.


Bernard> Mmh...works for me - ActivePython 2.2.2 Are you sure you
Bernard> downloaded the pyd file corresponding to your python version?
Bernard> Running the MS "depends" utility on csv.pyd reveals that it
Bernard> only needs python22.dll, msvcrt.dll and kernel32.dll. Are
Bernard> these all on your PATH?

>> Traceback (most recent call last): File "<pyshell#0>", line 1, in ?
>> import csv


Bernard> What's pyshell? did you try from good ole trusty python.exe
Bernard> in a DOS box?

Try putting the .pyd in C:\Python22\Lib\site-packages

- Dave

--
http://www.object-craft.com.au

BogAl 07-14-2003 02:30 PM

Re: Can't install csv parser
 
Thanks for the reply, Dave....

> Try putting the .pyd in C:\Python22\Lib\site-packages


Unfortunately, I'm still getting the error message.

:(

Dave Cole 07-14-2003 11:39 PM

Re: Can't install csv parser
 
>>>>> "BogAl" == BogAl <bogal2@comcast.net> writes:

BogAl> Thanks for the reply, Dave....

>> Try putting the .pyd in C:\Python22\Lib\site-packages


BogAl> Unfortunately, I'm still getting the error message.

Does it work if you put the csv.pyd file in the current directory?

- Dave

--
http://www.object-craft.com.au

John Machin 07-14-2003 11:54 PM

Re: Can't install csv parser
 
BogAl <bogal2@comcast.net> wrote in message news:<MPG.197c88885d4542c09896a8@news.in.comcast.g iganews.com>...
> Thanks for the reply, Dave....
>
> > Try putting the .pyd in C:\Python22\Lib\site-packages

>
> Unfortunately, I'm still getting the error message.
>


I would suggest that you
(1) Remove all your copies of csv.pyd
(2) Install the csv module properly by following the instructions on
Dave's website (i.e. briefly, you unpack the distribution into a
directory, and then run setup.py)
(3) If you still have a problem, post a message that shows
(a) what version of Windows you are running
(b) what version of Python
(c) your windows path
(d) your Python path (import sys; print sys.path)
(e) what you get when you run Python (at the DOS command line!!) with
-v and try to import the csv module
(f) what the MS depends utility says about
C:\Python22\Lib\site-packages\csv.pyd

Another thought: I found I had a python22.dll (dated Oct 2002, must be
from Python 2.2.2) in my c:\WINNT\system32 directory and one dated May
2003 (must be from Python 2.2.3) in my c:\Python22 directory ... don't
know how that happened; puzzling ... I've killed off the older one.
You might like to search python22.dll *AND* msvcrt.dll and ensure that
you are using the latest.

HTH,
John

John Machin 07-15-2003 12:03 AM

Re: Can't install csv parser
 
BogAl <bogal2@comcast.net> wrote in message news:<MPG.197b8c26ad33253e9896a7@news.in.comcast.g iganews.com>...
> Thanks for the reply, Bernard....
>
> > Running the MS "depends" utility on
> > csv.pyd reveals that it only needs python22.dll, msvcrt.dll
> > and kernel32.dll. Are these all on your PATH?
> >

>
> I think they are now....
> "...C:\WINDOWS\SYSTEM\python22.dll;C:\WINDOWS\SYST EM\KERNEL32.dll;\C:
> \WINDOWS\SYSTEM\MSVCRT.dll;..."


I think not; path should contain a list of *directories*, not *files*
-- Windows is silently ignoring the non-existence of directories
called "C:\WINDOWS\SYSTEM\python22.dll" etc.

Rephrasing Bernard's question: do you have those 3 files in
directories that are listed in your system path?

After a normal Python installation, you would expect to have
c:\Python22 in your path, and Python22.dll in that directory.

BogAl 07-15-2003 06:31 PM

Re: Can't install csv parser
 
> >> Try putting the .pyd in C:\Python22\Lib\site-packages
>
> BogAl> Unfortunately, I'm still getting the error message.
>
> Dave> Does it work if you put the csv.pyd file in the current directory?


Yes, it does. What does that mean I should do now?


BogAl 07-15-2003 06:54 PM

Re: Can't install csv parser
 
Thanks for the reply, John....

> I would suggest that you
> (1) Remove all your copies of csv.pyd
> (2) Install the csv module properly by following the instructions on
> Dave's website (i.e. briefly, you unpack the distribution into a
> directory, and then run setup.py)


I tried this first; went to the suggested alternative second. Here's
what happens when I run setup.py:

C:\Python22\Lib\site-packages\csv>
python.exe C:\PYTHON22\LIB\SITE-P~1\CSV\SETUP.PY

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: no commands supplied

> (3) If you still have a problem, post a message that shows
> (a) what version of Windows you are running
> (b) what version of Python
> (c) your windows path
> (d) your Python path (import sys; print sys.path)
> (e) what you get when you run Python (at the DOS command line!!) with
> -v and try to import the csv module
> (f) what the MS depends utility says about
> C:\Python22\Lib\site-packages\csv.pyd
>
> Another thought: I found I had a python22.dll (dated Oct 2002, must be
> from Python 2.2.2) in my c:\WINNT\system32 directory and one dated May
> 2003 (must be from Python 2.2.3) in my c:\Python22 directory ... don't
> know how that happened; puzzling ... I've killed off the older one.
> You might like to search python22.dll *AND* msvcrt.dll and ensure that
> you are using the latest.
>
> HTH,
> John



All times are GMT. The time now is 04:09 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.