Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
error_log wrote:...
Can't locate Spreadsheet/Read.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /var/www/vicidial/sheet2tab.pl line 36.
BEGIN failed--compilation aborted at /var/www/vicidial/sheet2tab.pl line 36
...
#installed Spreadsheet::Read
...
CSV parser not installed at /var/www/vicidial/sheet2tab.pl line 253
...
#installed Text::CSV
rrb555 wrote:i suggest u save the file as text tab delimited never had any problem with that file format,,
DomeDan wrote:Back to the problem.
asterguy:
Nice that you provided us with a file to test with, I did that and found something...
You did not mention the install method, I bet you didn't use a vicibox cd.
I'm pretty sure you are missing some perl modules, like these two:
Spreadsheet::Read
Text::CSV
I tried to load the file on my workstation where I got a vicidial install I can test stuff with, this is a debian OS.
Got the exact problem you had, the reason it looks for a .txt-file is that sheet2tab.pl converts the file and the new file created always gets the .txt extension
but it fails to find that file because sheet2tab.pl fails when there is perl modules missing,
its all in the error_log. Always look in the log folks!error_log wrote:...
Can't locate Spreadsheet/Read.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /var/www/vicidial/sheet2tab.pl line 36.
BEGIN failed--compilation aborted at /var/www/vicidial/sheet2tab.pl line 36
...
#installed Spreadsheet::Read
...
CSV parser not installed at /var/www/vicidial/sheet2tab.pl line 253
...
#installed Text::CSV
did you try this same file on an earlier version of vicidial? it's entirely possible there is merely an irregularity with the file that is removed when you save in a different format.cbsys wrote:I have exactly the same problem!
VERSION: 2.7-401a
BUILD: 130508-2256
I have installed these perl modules
Spreadsheet::Read
Text::CSV
However I cannot upload a csv file, the field mapping just shows "" on the drop down list
I CAN upload a tab delimited txt file though, that works ok!
also, if I change my csv file to a txt file and use pipe delimiters rather than commas, it DOES work!
Attempt to reload Spreadsheet/XLSX.pm aborted.
Compilation failed in require at /srv/www/htdocs/vicidial/sheet2tab.pl line 38.
BEGIN failed--compilation aborted at /srv/www/htdocs/vicidial/sheet2tab.pl line 38.
[Wed Aug 14 12:27:32 2013] [error] [client 23.24.163.220] PHP Warning: fopen(/tmp/testlist.txt): failed to open stream: No such file or directory in /srv/www/htdocs/vicidial/admin_listloader_fourth_gen.php on line 2088, referer: http://IPADDRESS/vicidial/admin_listloader_fourth_gen.php
[Wed Aug 14 12:27:32 2013] [error] [client 23.24.163.220] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /srv/www/htdocs/vicidial/admin_listloader_fourth_gen.php on line 2092, referer: http://IPADDRESS/vicidial/admin_listloader_fourth_gen.php
[Wed Aug 14 12:27:32 2013] [error] [client 23.24.163.220] PHP Warning: fopen(/tmp/testlist.txt): failed to open stream: No such file or directory in /srv/www/htdocs/vicidial/admin_listloader_fourth_gen.php on line 2110, referer: http://IPADDRESS/vicidial/admin_listloader_fourth_gen.php
[Wed Aug 14 12:27:32 2013] [error] [client 23.24.163.220] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /srv/www/htdocs/vicidial/admin_listloader_fourth_gen.php on line 2121, referer: http://IPADDRESS/vicidial/admin_listloader_fourth_gen.php
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/Cell.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/Dump.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/FmtDefault.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/FmtJapan.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/FmtJapan2.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/FmtUnicode.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/Font.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/Format.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/SaveParser
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/SaveParser.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/SaveParser/Workbook.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/SaveParser/Worksheet.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/Utility.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/Workbook.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ParseExcel/Worksheet.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/Read.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/ReadSXC.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/BIFFwriter.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Big.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart/Area.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart/Bar.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart/Column.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart/External.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart/Line.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart/Pie.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart/Scatter.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Chart/Stock.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Examples.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Format.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Formula.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/OLEwriter.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Properties.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Simple.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Utility.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Workbook.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/WriteExcel/Worksheet.pm
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/XLSX
/usr/lib/perl5/vendor_perl/5.12.1/Spreadsheet/XLSX.pm
zypper -n install perl-Jcode.noarch perl-Spreadsheet-ReadSXC.noarch perl-Spreadsheet-XLSX.noarch perl-Switch.noarch perl-Unicode-MapUTF8.noarch php5-eaccelerator.noarch
zypper -n install perl-Jcode-2.07-7.1.x86_64 perl-Spreadsheet-ReadSXC-0.20-7.1.noarch perl-Spreadsheet-XLSX-0.13-7.1.noarch perl-Unicode-MapUTF8-1.11-8.1.x86_64 php5-eaccelerator-0.9.6.1-10.1.x86_64
/etc/init.d/apache2 restart
jjohnson78 wrote:CPAN seems to have installed it that way, which is kind of odd.
mav2287 wrote:I know this is an old thread but I was dealing with this tonight on a scratch install. Thee issue was the scratch install sheet was rather old. The fix for me was to just install the following in the order I have them listed below.
Spreadsheet::Read
Text::CSV
Spreadsheet::XLSX
Users browsing this forum: No registered users and 65 guests