Joelgranados / EcoIP

Scripts to Analyze Color Data
GNU General Public License v3.0
4 stars 0 forks source link

EcoIP tar.gz file does not download properly on windows. #49

Closed joelissues closed 10 years ago

joelissues commented 11 years ago

I have tried installing the ecoip framework using an r shell, but have been unsuccessful. I am running a windows 7 ultimate x64 pc onto which I have installed the required imagemagick and gtk2.0, as well as R versions 2.15.0,2.15.2, and 3.01.2. In all these versions, I run the commands

source("http://sourceforge.net/projects/ecoip/files/ecoip_install.R/download")

eip.install()

After doing so, I get the following output

[1] "http://sourceforge.net/projects/ecoip/files/20130531/EcoIP_0.1-20130531.tar.gz/download" [1] "~/EcoIP_0.1-20130531.tar.gz" cygwin warning: MS-DOS style path detected: C:\Users\Documents/EcoIP_0.1-20130531.tar.gz Preferred POSIX equivalent is: /cygdrive/c/Users//Documents/EcoIP_0.1-20130531.tar.gz CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames --2013-07-01 13:10:44-- http://sourceforge.net/projects/ecoip/files/20130531/EcoIP_0.1-20130531.tar.gz/download Resolving sourceforge.net (sourceforge.net)... 216.34.181.60 Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://downloads.sourceforge.net/project/ecoip/20130531/EcoIP_0.1-20130531.tar.gz?r=&ts=1372698647&use_mirror=iweb [following] --2013-07-01 13:10:45-- http://downloads.sourceforge.net/project/ecoip/20130531/EcoIP_0.1-20130531.tar.gz?r=&ts=1372698647&use_mirror=iweb Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59 Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://iweb.dl.sourceforge.net/project/ecoip/20130531/EcoIP_0.1-20130531.tar.gz [following] --2013-07-01 13:10:45-- http://iweb.dl.sourceforge.net/project/ecoip/20130531/EcoIP_0.1-20130531.tar.gz Resolving iweb.dl.sourceforge.net (iweb.dl.sourceforge.net)... 70.38.0.134, 2607:f748:10:12::5f:2 Connecting to iweb.dl.sourceforge.net (iweb.dl.sourceforge.net)|70.38.0.134|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 6427656 (6.1M) [application/x-gzip] Saving to: C:\\Users\\<USER>\\Documents/EcoIP_0.1-20130531.tar.gz' ' 0K .......... .......... .......... .......... .......... 0% 596K 10s 50K .......... .......... .......... .......... .......... 1% 1.17M 8s 100K .......... .......... .......... .......... .......... 2% 938K 7s 150K .......... .......... .......... .......... .......... 3% 1.26M 7s 200K .......... .......... .......... .......... .......... 3% 1.25M 6s 250K .......... .......... .......... .......... .......... 4% 1.31M 6s 300K .......... .......... .......... .......... .......... 5% 869K 6s 350K .......... .......... .......... .......... .......... 6% 989K 6s 400K .......... .......... .......... .......... .......... 7% 890K 6s 450K .......... .......... .......... .......... .......... 7% 1.26M 6s 500K .......... .......... .......... .......... .......... 8% 945K 6s 550K .......... .......... .......... .......... .......... 9% 53.8K 14s 600K .......... .......... .......... .......... .......... 10% 158K 16s 650K .......... .......... .......... .......... .......... 11% 297K 16s 700K .......... .......... .......... .......... .......... 11% 421K 15s 750K .......... .......... .......... .......... .......... 12% 420K 15s 800K .......... .......... .......... .......... .......... 13% 722K 14s 850K .......... .......... .......... .......... .......... 14% 573K 14s 900K .......... .......... .......... .......... .......... 15% 718K 14s 950K .......... .......... .......... .......... .......... 15% 643K 13s 1000K .......... .......... .......... .......... .......... 16% 867K 13s 1050K .......... .......... .......... .......... .......... 17% 94.8K 15s 1100K .......... .......... .......... .......... .......... 18% 352K 14s 1150K .......... .......... .......... .......... .......... 19% 469K 14s 1200K .......... .......... .......... .......... .......... 19% 546K 14s 1250K .......... .......... .......... .......... .......... 20% 657K 13s 1300K .......... .......... .......... .......... .......... 21% 717K 13s 1350K .......... .......... .......... .......... .......... 22% 682K 13s 1400K .......... .......... .......... .......... .......... 23% 889K 12s 1450K .......... .......... .......... .......... .......... 23% 630K 12s 1500K .......... .......... .......... .......... .......... 24% 864K 12s 1550K .......... .......... .......... .......... .......... 25% 895K 11s 1600K .......... .......... .......... .......... .......... 26% 887K 11s 1650K .......... .......... .......... .......... .......... 27% 719K 11s 1700K .......... .......... .......... .......... .......... 27% 1.02M 11s 1750K .......... .......... .......... .......... .......... 28% 1.12M 10s 1800K .......... .......... .......... .......... .......... 29% 928K 10s 1850K .......... .......... .......... .......... .......... 30% 764K 10s 1900K .......... .......... .......... .......... .......... 31% 996K 10s 1950K .......... .......... .......... .......... .......... 31% 1.02M 9s 2000K .......... .......... .......... .......... .......... 32% 1.05M 9s 2050K .......... .......... .......... .......... .......... 33% 852K 9s 2100K .......... .......... .......... .......... .......... 34% 1.12M 9s 2150K .......... .......... .......... .......... .......... 35% 863K 8s 2200K .......... .......... .......... .......... .......... 35% 1.13M 8s 2250K .......... .......... .......... .......... .......... 36% 930K 8s 2300K .......... .......... .......... .......... .......... 37% 1.11M 8s 2350K .......... .......... .......... .......... .......... 38% 1.20M 8s 2400K .......... .......... .......... .......... .......... 39% 1.09M 7s 2450K .......... .......... .......... .......... .......... 39% 1.09M 7s 2500K .......... .......... .......... .......... .......... 40% 1.27M 7s 2550K .......... .......... .......... .......... .......... 41% 1.68M 7s 2600K .......... .......... .......... .......... .......... 42% 920K 7s 2650K .......... .......... .......... .......... .......... 43% 1.79M 7s 2700K .......... .......... .......... .......... .......... 43% 1.11M 6s 2750K .......... .......... .......... .......... .......... 44% 1.42M 6s 2800K .......... .......... .......... .......... .......... 45% 1.43M 6s 2850K .......... .......... .......... .......... .......... 46% 1.31M 6s 2900K .......... .......... .......... .......... .......... 46% 1.13M 6s 2950K .......... .......... .......... .......... .......... 47% 1.40M 6s 3000K .......... .......... .......... .......... .......... 48% 1.48M 6s 3050K .......... .......... .......... .......... .......... 49% 1.67M 5s 3100K .......... .......... .......... .......... .......... 50% 459K 5s 3150K .......... .......... .......... .......... .......... 50% 1.03M 5s 3200K .......... .......... .......... .......... .......... 51% 1.22M 5s 3250K .......... .......... .......... .......... .......... 52% 1.40M 5s 3300K .......... .......... .......... .......... .......... 53% 1.86M 5s 3350K .......... .......... .......... .......... .......... 54% 1.33M 5s 3400K .......... .......... .......... .......... .......... 54% 823K 5s 3450K .......... .......... .......... .......... .......... 55% 2.09M 4s 3500K .......... .......... .......... .......... .......... 56% 982K 4s 3550K .......... .......... .......... .......... .......... 57% 2.45M 4s 3600K .......... .......... .......... .......... .......... 58% 1.09M 4s 3650K .......... .......... .......... .......... .......... 58% 1.06M 4s 3700K .......... .......... .......... .......... .......... 59% 2.06M 4s 3750K .......... .......... .......... .......... .......... 60% 1.19M 4s 3800K .......... .......... .......... .......... .......... 61% 2.14M 4s 3850K .......... .......... .......... .......... .......... 62% 985K 4s 3900K .......... .......... .......... .......... .......... 62% 1.50M 4s 3950K .......... .......... .......... .......... .......... 63% 1.24M 3s 4000K .......... .......... .......... .......... .......... 64% 1.70M 3s 4050K .......... .......... .......... .......... .......... 65% 1.69M 3s 4100K .......... .......... .......... .......... .......... 66% 1.56M 3s 4150K .......... .......... .......... .......... .......... 66% 2.03M 3s 4200K .......... .......... .......... .......... .......... 67% 1.59M 3s 4250K .......... .......... .......... .......... .......... 68% 1.30M 3s 4300K .......... .......... .......... .......... .......... 69% 1.73M 3s 4350K .......... .......... .......... .......... .......... 70% 2.57M 3s 4400K .......... .......... .......... .......... .......... 70% 2.34M 3s 4450K .......... .......... .......... .......... .......... 71% 1.65M 2s 4500K .......... .......... .......... .......... .......... 72% 1.59M 2s 4550K .......... .......... .......... .......... .......... 73% 1.50M 2s 4600K .......... .......... .......... .......... .......... 74% 2.60M 2s 4650K .......... .......... .......... .......... .......... 74% 1.75M 2s 4700K .......... .......... .......... .......... .......... 75% 1.87M 2s 4750K .......... .......... .......... .......... .......... 76% 2.17M 2s 4800K .......... .......... .......... .......... .......... 77% 41.3K 2s 4850K .......... .......... .......... .......... .......... 78% 824K 2s 4900K .......... .......... .......... .......... .......... 78% 295K 2s 4950K .......... .......... .......... .......... .......... 79% 421K 2s 5000K .......... .......... .......... .......... .......... 80% 427K 2s 5050K .......... .......... .......... .......... .......... 81% 723K 2s 5100K .......... .......... .......... .......... .......... 82% 581K 2s 5150K .......... .......... .......... .......... .......... 82% 708K 2s 5200K .......... .......... .......... .......... .......... 83% 706K 2s 5250K .......... .......... .......... .......... .......... 84% 949K 2s 5300K .......... .......... .......... .......... .......... 85% 718K 1s 5350K .......... .......... .......... .......... .......... 86% 940K 1s 5400K .......... .......... .......... .......... .......... 86% 960K 1s 5450K .......... .......... .......... .......... .......... 87% 709K 1s 5500K .......... .......... .......... .......... .......... 88% 1.29M 1s 5550K .......... .......... .......... .......... .......... 89% 929K 1s 5600K .......... .......... .......... .......... .......... 90% 883K 1s 5650K .......... .......... .......... .......... .......... 90% 1.33M 1s 5700K .......... .......... .......... .......... .......... 91% 901K 1s 5750K .......... .......... .......... .......... .......... 92% 1.33M 1s 5800K .......... .......... .......... .......... .......... 93% 913K 1s 5850K .......... .......... .......... .......... .......... 93% 1.34M 1s 5900K .......... .......... .......... .......... .......... 94% 1.30M 1s 5950K .......... .......... .......... .......... .......... 95% 883K 0s 6000K .......... .......... .......... .......... .......... 96% 1.33M 0s 6050K .......... .......... .......... .......... .......... 97% 1.14M 0s 6100K .......... .......... .......... .......... .......... 97% 1.33M 0s 6150K .......... .......... .......... .......... .......... 98% 1.28M 0s 6200K .......... .......... .......... .......... .......... 99% 1.19M 0s 6250K .......... .......... ....... 100% 34.2K=10s ' 2013-07-01 13:10:55 (618 KB/s) -C:\Users\\Documents/EcoIP_0.1-20130531.tar.gz' saved [6427656/6427656]

Installing package(s) into ‘C:/Users/Dmitri/Documents/R/win-library/2.15’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- Warning message: package ‘~/EcoIP_0.1-20130531.tar.gz’ is not available (for R version 2.15.2)

Any idea as to how to resolve this?

Joelgranados commented 11 years ago

I noticed that you are running R in a cygwin environment. Can you try to install EcoIP by using the R console that is provided by the R windows installation (instead of running it on cygwin)? Be sure to execute RGui.exe (http://data.princeton.edu/R/gettingStarted.html)

joelissues commented 11 years ago

I also noticed that cygwin saw the filepaths and did some regex parsing. The thing is, I was running these commands through the R console as opposed to through cygwin or command prompt. I'm not sure of how to separate cygwin from the R console.

Joelgranados commented 11 years ago

Hrm.

From where did you install R? Where did you download it from? I'm going to test on a windows box that I have and I want to replicate your setup.

Regards

On Tue, Jul 2, 2013 at 7:27 PM, joelissues notifications@github.com wrote:

I also noticed that cygwin saw the filepaths and did some regex parsing. The thing is, I was running these commands through the R console as opposed to through cygwin or command prompt. I'm not sure of how to separate cygwin from the R console.

— Reply to this email directly or view it on GitHubhttps://github.com/Joelgranados/EcoIP/issues/49#issuecomment-20361398 .

Joel Andrés Granados IT University of Copenhagen Copenhagen, Denmark.

Joelgranados commented 11 years ago

I've manged to Recreate the bug. To start I have created a new version of EcoIP that is released with R 3.0.0 so we should stop having the error message that warned about the wrong R version. To install this new version just follow the same instructions as before (https://github.com/Joelgranados/EcoIP/wiki/How-to-Install).

I'm going to test this new version on my test box back at home. I'll update the bug report once I have more information. I encourage you to test in your environment to see if the new EcoIP actually fixes stuff :)

Joelgranados commented 11 years ago

I think I found the culprit of the issue. I was using "wget" to download the source (this does not work with windows). I was also using "~" to refer to the home directory (this does not work on windows). I have made a new release of EcoIP in the hope to address this issue. Please test and get back to me if it's still is a problem.

Joelgranados commented 11 years ago

Hey Dmitri

I tested again with the new build and it apparently keeps on failing. It seems that the automatic download is failing to correctly download the file (only on windows). A work around is to download the file from  http://sourceforge.net/projects/ecoip/ and use it for installation. Execute 'R CMD INSTALL ecoipfile.tar.gz'. If you have all the dependencies installed it should work.

If you don't have all the dependencies installed, you need to install them all. R will tell you which packages you need to install to get EcoIP going. Notice that you might have to compile some packages (SVG package) in order to install it; this is possible with the Rtools package for windows (so you might have to install Rtools as well).

I'm going to leave this issue open until I figure out why the download method does not download properly on windows

Joelgranados commented 11 years ago

This issue could be related to https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=7991 and to http://tolstoy.newcastle.edu.au/R/devel/06/06/5792.html#5796qlink1

Joelgranados commented 10 years ago

I tested the download feature in R and there seems to be something fishy.... I downloaded with "auto" and "internal" and in both cases the download detects a file of 6430711 bytes but downloads (I don't know from where) 6453589 bytes. When I download with Firefox I get the correct size of 6430711.

The R log: """

eip.trz = "EcoIP_0.1-20130717.tar.gz" eip.from = paste("http://sourceforge.net/projects/ecoip/files/20130717/", eip.trz, "/download", sep="") download.file(eip.from, eip.trz, method="auto") essai de l'URL 'http://sourceforge.net/projects/ecoip/files/20130717/EcoIP_0.1-20130717.tar.gz/download' Content type 'application/x-gzip' length 6430711 bytes (6.1 Mb) URL ouverte downloaded 6.1 Mb

file.info("EcoIP_0.1-20130717.tar.gz")[1] size EcoIP_0.1-20130717.tar.gz 6453589 unlink("EcoIP_0.1-20130717.tar.gz")

download.file(eip.from, eip.trz, method="internal") essai de l'URL 'http://sourceforge.net/projects/ecoip/files/20130717/EcoIP_0.1-20130717.tar.gz/download' Content type 'application/x-gzip' length 6430711 bytes (6.1 Mb) URL ouverte downloaded 6.1 Mb

file.info("EcoIP_0.1-20130717.tar.gz")[1] size EcoIP_0.1-20130717.tar.gz 6453589 unlink("EcoIP_0.1-20130717.tar.gz")

file.info("EcoIP_0.1-20130717.tar.gz")[1] size EcoIP_0.1-20130717.tar.gz 6430711 """

Joelgranados commented 10 years ago

I just created a new bug-report in the R bug tracking system. https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15398

Joelgranados commented 10 years ago

This issue should be solved with the latest version. EcoIP_0.1-20130722