This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
36405
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
agulyaskov [...] rockefeller.edu
Cc:
AdminCc:

BugTracker
Severity:
Critical
Broken in:
1.9205
Fixed in:
(no value)



Subject: could not create filehandle
Hello Andreas, I just upgraded CPAN.pm from v1.7602 to v1.9205 and a number of additional modules were also installed during the upgrade. But now using v1.9205 I am running into a filehandle problem. When I try for example: "cpan[3]> install BIRNEY/bioperl-1.4.tar.gz" it doesn't work because "y/authors/id//B/BI/" is appended before the name of the distribution. Therefore I get: "Could not create filehandle for "y/authors/id/B/BI/BIRNEY/" So gzopen cannot find the file and the installation fails. I got similar behavior with other modules, e.g.: "cpan[1]> install Statistics::Lite". Using the traditional method (without CPAN.pm) these modules install without a problem. They also install perfectly with CPAN.pm v1.7602. Does the problem look trivial to you? What would you suggest? Should I switch back to an earlier CPAN version and if yes how can I do it? best regards Attila
Subject: CPAN_filehandle_error.txt
cpan[3]> install BIRNEY/bioperl-1.4.tar.gz Running make for B/BI/BIRNEY/bioperl-1.4.tar.gz CPAN: LWP::UserAgent loaded ok (v2.033) CPAN: Time::HiRes loaded ok (v1.86) Fetching with LWP: /authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz LWP failed with code[400] message[URL must be absolute] Fetching with LWP: ftp://bc1.hpc.lsu.edu/pub/mirrors/CPAN/authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz LWP failed with code[404] message[Can't chdir to mirrors] Fetching with Net::FTP: ftp://bc1.hpc.lsu.edu/pub/mirrors/CPAN/authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz Couldn't cwd pub/mirrors/CPAN/authors/id/B/BI/BIRNEY: pub/mirrors/CPAN/authors/id/B/BI/BIRNEY: No such file or directory. Fetching with Net::FTP ftp://bc1.hpc.lsu.edu/pub/mirrors/CPAN/authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz.gz Couldn't cwd pub/mirrors/CPAN/authors/id/B/BI/BIRNEY: pub/mirrors/CPAN/authors/id/B/BI/BIRNEY: No such file or directory. Fetching with LWP: ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz CPAN: YAML loaded ok (v0.66) CPAN: Digest::SHA loaded ok (v5.47) Fetching with LWP: ftp://carroll.cac.psu.edu/pub/CPAN/authors/id/B/BI/BIRNEY/CHECKSUMS CPAN: Compress::Zlib loaded ok (v2.011) Checksum for y/authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz ok Scanning cache y for sizes ............................................................................DONE DEL(1/1): y/tmp-28949 Cannot gzopen y/authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz: input file 'y/authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz' does not exist CPAN: Archive::Tar loaded ok (v1.38) Could not create filehandle for 'y/authors/id/B/BI/BIRNEY/bioperl-1.4.tar.gz': No such file or directory! at /System/Library/Perl/5.8.8/CPAN/Tarzip.pm line 268 No data could be read from file at /System/Library/Perl/5.8.8/CPAN/Tarzip.pm line 268 Catching error: 'Can\'t call method "list_files" on an undefined value at /System/Library/Perl/5.8.8/CPAN/Tarzip.pm line 288. ' at /System/Library/Perl/5.8.8/CPAN.pm line 281 CPAN::shell() called at /usr/bin/cpan line 198
Subject: Re: [rt.cpan.org #36405] could not create filehandle
Date: Tue, 03 Jun 2008 21:04:19 +0200
To: bug-CPAN@rt.cpan.org
From: andreas.koenig.7os6VVqR@franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Tue, 03 Jun 2008 10:43:36 -0400, "Attila Gulyas-Kovacs via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> "cpan[3]> install BIRNEY/bioperl-1.4.tar.gz"
Show quoted text
> it doesn't work because "y/authors/id//B/BI/" is appended before the > name of the distribution.
Sure thing is you answered "y" to a question where something else was expected. I recommend running o conf init and paying utmost attention to questions that might require a string instead of an 'y'. If you cannot figure it out, please provide your CPAN/Myconfig.pm or if you do not have such a file, your CPAN/Config.pm. Watch the timestamps of this file before and after 'o conf init' so you can be sure it actually changed. -- andreas
Subject: Re: [rt.cpan.org #36405] could not create filehandle
Date: Tue, 03 Jun 2008 18:56:49 -0400
To: bug-CPAN@rt.cpan.org
From: Attila Gulyas-Kovacs <agulyaskov@mail.rockefeller.edu>
Hi Andreas it was my mistake: I made a mess during the first configuration. Now I corrected it and everything seems to work fine. best regards Attila (Andreas J. Koenig) via RT wrote:
Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=36405 > > >
>>>>>> On Tue, 03 Jun 2008 10:43:36 -0400, "Attila Gulyas-Kovacs via RT" <bug-CPAN@rt.cpan.org> said: >>>>>>
>
> > "cpan[3]> install BIRNEY/bioperl-1.4.tar.gz"
>
> > it doesn't work because "y/authors/id//B/BI/" is appended before the > > name of the distribution.
> > Sure thing is you answered "y" to a question where something else was > expected. I recommend running > > o conf init > > and paying utmost attention to questions that might require a string > instead of an 'y'. > > If you cannot figure it out, please provide your CPAN/Myconfig.pm or > if you do not have such a file, your CPAN/Config.pm. Watch the > timestamps of this file before and after 'o conf init' so you can be > sure it actually changed. > >
-- Attila Gulyas-Kovacs Postdoctoral Associate Rockefeller University Gadsby Lab (Cardiac/Membrane Physiology) D.W. Bronk Building, Room 307 1230 York Avenue New York, NY, 10065 Tel: (212)327-8617 Fax: (212)327-7589
Declared as pilot error


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.