Skip Menu |

This queue is for tickets about the Parallel-Loops CPAN distribution.

Report information
The Basics
Id: 108127
Status: open
Priority: 0/
Queue: Parallel-Loops

People
Owner: Nobody in particular
Requestors: tealfurn [...] med.umich.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Attachments


Subject: tempfile() error
Date: Thu, 29 Oct 2015 21:04:08 +0000
To: "bug-Parallel-Loops [...] rt.cpan.org" <bug-Parallel-Loops [...] rt.cpan.org>
From: "Furnholm, Teal" <tealfurn [...] med.umich.edu>
Greetings, I am learning how to use the Parallel:loop module and have had an error in tempfile(). I am running the below (very simple) perl script. It will work. I run the exact same thing again - it doesn't work. I run the exact same thing again - it works. I change it a bit - it works/doesn't work. = intermittent. The exact error message is in the attached jpeg screen shot of my command prompt. I am running strawberry perl that I downloaded a few months ago on windows 10. Best, Teal _______________________script_______________________________ use Parallel::Loops; my @num = 1 .. 50; my $pl = Parallel::Loops->new(5); my %out; $pl->share(\%out); $pl->foreach( \@num, sub { my $num = $_; # note this uses $_, not @_ $out{$num} = $num ** 2; }); foreach (sort keys %out) {print "$_ : $out{$_}\n";} ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues

Message body is not shown because sender requested not to inline it.

Subject: RE: [rt.cpan.org #108127] AutoReply: tempfile() error
Date: Thu, 29 Oct 2015 21:34:07 +0000
To: "bug-Parallel-Loops [...] rt.cpan.org" <bug-Parallel-Loops [...] rt.cpan.org>
From: "Furnholm, Teal" <tealfurn [...] med.umich.edu>
Additionally, it will spit out this error WHILE the script is running (I tried it on a large dataset). Show quoted text
________________________________________ From: Bugs in Parallel-Loops via RT [bug-Parallel-Loops@rt.cpan.org] Sent: Thursday, October 29, 2015 5:04 PM To: Furnholm, Teal Subject: [rt.cpan.org #108127] AutoReply: tempfile() error Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "tempfile() error ", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #108127]. Your ticket is accessible on the web at: https://rt.cpan.org/Ticket/Display.html?id=108127 Please include the string: [rt.cpan.org #108127] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-Parallel-Loops@rt.cpan.org ------------------------------------------------------------------------- Greetings, I am learning how to use the Parallel:loop module and have had an error in tempfile(). I am running the below (very simple) perl script. It will work. I run the exact same thing again - it doesn't work. I run the exact same thing again - it works. I change it a bit - it works/doesn't work. = intermittent. The exact error message is in the attached jpeg screen shot of my command prompt. I am running strawberry perl that I downloaded a few months ago on windows 10. Best, Teal _______________________script_______________________________ use Parallel::Loops; my @num = 1 .. 50; my $pl = Parallel::Loops->new(5); my %out; $pl->share(\%out); $pl->foreach( \@num, sub { my $num = $_; # note this uses $_, not @_ $out{$num} = $num ** 2; }); foreach (sort keys %out) {print "$_ : $out{$_}\n";} ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues
From: peter [...] morch.com
The line in question simply does: use File::Temp(); .... my ($fh, $filename) = tempfile(); I have no idea why you get permission denied errors creating temporary files in the C:\Users\WILLIA~1\AppData\Local\Temp folder. Are you the WILLIA~1 user? If so, are there funky permissions in that directory? I'm sorry, but Parallel Loops needs to be able to create temporary files on systems that don't have a reliable select() call such as yours. You can try setting $ENV{TMPDIR} to a directory where you *know* you have the proper rights to write temporary files. Peter