f1dataR icon indicating copy to clipboard operation
f1dataR copied to clipboard

Can't install the package

Open pbousquets opened this issue 3 years ago • 9 comments

The installation throws this error message:

C:\Users\pbous\AppData\Local\Temp\RtmpukBwfm\R.INSTALL5d4c3eab76a9\f1dataR>CALL "C:\Users\pbous\AppData\Local\r-miniconda\condabin\activate.bat" "C:\Users\pbous\AppData\Local\r-miniconda\envs\r-reticulate" 

C:\Users\pbous\AppData\Local\Temp\RtmpukBwfm\R.INSTALL5d4c3eab76a9\f1dataR>conda.bat activate "C:\Users\pbous\AppData\Local\r-miniconda\envs\r-reticulate" 

(r-reticulate) C:\Users\pbous\AppData\Local\Temp\RtmpukBwfm\R.INSTALL5d4c3eab76a9\f1dataR>"C:/Users/pbous/AppData/Local/r-miniconda/envs/r-reticulate/python.exe" -m pip install --upgrade --no-user "fastf1" 
ERROR: Could not find a version that satisfies the requirement fastf1 (from versions: none)
ERROR: No matching distribution found for fastf1
Warning in shell(fi, intern = intern) :
  'C:\Users\pbous\AppData\Local\Temp\RtmpCeWrYh\file4cc2c815d57.bat' execution failed with error code 1
Error: package or namespace load failed for 'f1dataR':
 .onLoad failed in loadNamespace() for 'f1dataR', details:
  call: NULL
  error: Error installing package(s): "\"fastf1\""
Error: loading failed
Execution halted
*** arch - x64
Warning: package 'reticulate' was built under R version 4.1.3

C:\Users\pbous\AppData\Local\Temp\RtmpukBwfm\R.INSTALL5d4c3eab76a9\f1dataR>CALL "C:\Users\pbous\AppData\Local\r-miniconda\condabin\activate.bat" "C:\Users\pbous\AppData\Local\r-miniconda\envs\r-reticulate" 

C:\Users\pbous\AppData\Local\Temp\RtmpukBwfm\R.INSTALL5d4c3eab76a9\f1dataR>conda.bat activate "C:\Users\pbous\AppData\Local\r-miniconda\envs\r-reticulate" 

(r-reticulate) C:\Users\pbous\AppData\Local\Temp\RtmpukBwfm\R.INSTALL5d4c3eab76a9\f1dataR>"C:/Users/pbous/AppData/Local/r-miniconda/envs/r-reticulate/python.exe" -m pip install --upgrade --no-user "fastf1" 
ERROR: Could not find a version that satisfies the requirement fastf1 (from versions: none)
ERROR: No matching distribution found for fastf1
Warning in shell(fi, intern = intern) :
  'C:\Users\pbous\AppData\Local\Temp\RtmpiE9bfg\file14089924066.bat' execution failed with error code 1
Error: package or namespace load failed for 'f1dataR':
 .onLoad failed in loadNamespace() for 'f1dataR', details:
  call: NULL
  error: Error installing package(s): "\"fastf1\""
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/Users/pbous/Documents/R/win-library/4.1/f1dataR'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/pbous/AppData/Local/Temp/RtmpIJLFhX/file42c82d701385/f1dataR_0.3.8.tar.gz’ had non-zero exit status

pbousquets avatar Sep 25 '22 17:09 pbousquets

Hmm ok seems to be a dependency issue. Let me take a look and I'll get back to you

SCasanova avatar Sep 29 '22 20:09 SCasanova

Let me know if it works now. Some changes were made

SCasanova avatar Oct 04 '22 21:10 SCasanova

I was able to install in a new machine today

SCasanova avatar Oct 05 '22 18:10 SCasanova

I still have the same problem in two windows machines, but another running on Linux had no issues. Have you tested it on Windows?

pbousquets avatar Oct 06 '22 10:10 pbousquets

I think I figured it out. The package has some python code as well and it requires Python 3.8 or 3.9. By your message it seems your version is older therefore it can't install. I will figure out how to make sure the package accounts for this

SCasanova avatar Oct 06 '22 15:10 SCasanova

Oh, great! Thanks for your help!

pbousquets avatar Oct 07 '22 10:10 pbousquets

Did it work?

SCasanova avatar Oct 08 '22 20:10 SCasanova

Not at all. Somehow it depends on the machine I use. The one I have with windows doesn't work for some reason. Still similar issue:

> remotes::install_github("SCasanova/f1dataR")
Downloading GitHub repo SCasanova/f1dataR@HEAD
v  checking for file 'C:\Users\pbous\AppData\Local\Temp\RtmpwZiog7\remotes596063ff3f31\SCasanova-f1dataR-5f6c49f/DESCRIPTION' ... 
-  preparing 'f1dataR': (1.7s)
v  checking DESCRIPTION meta-information ... 
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'f1dataR_0.3.8.tar.gz'
   
Installing package into ‘C:/Users/pbous/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
* installing *source* package 'f1dataR' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Warning message:
package 'reticulate' was built under R version 4.1.3 
** help
*** installing help indices
  converting help for package 'f1dataR'
    finding HTML links ... done
    clear_f1_cache                          html  
    dot-load_drivers                        html  
    dot-load_laps                           html  
    dot-load_pitstops                       html  
    dot-load_quali                          html  
    dot-load_results                        html  
    dot-load_schedule                       html  
    dot-load_standings                      html  
    get_driver_telemetry                    html  
    load_drivers                            html  
    load_laps                               html  
    load_pitstops                           html  
    load_quali                              html  
    load_race_session                       html  
    load_results                            html  
    load_schedule                           html  
    load_standings                          html  
    plot_fastest                            html  
    theme_dark_f1                           html  
    time_to_sec                             html  
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
Warning: package 'reticulate' was built under R version 4.1.3

C:\Users\pbous\AppData\Local\Temp\RtmpklOC9W\R.INSTALL85c435ec5523\f1dataR>CALL "C:\Users\pbous\AppData\Local\r-miniconda\condabin\activate.bat" "C:\Users\pbous\AppData\Local\r-miniconda\envs\r-reticulate" 

C:\Users\pbous\AppData\Local\Temp\RtmpklOC9W\R.INSTALL85c435ec5523\f1dataR>conda.bat activate "C:\Users\pbous\AppData\Local\r-miniconda\envs\r-reticulate" 

(r-reticulate) C:\Users\pbous\AppData\Local\Temp\RtmpklOC9W\R.INSTALL85c435ec5523\f1dataR>"C:/Users/pbous/AppData/Local/r-miniconda/envs/r-reticulate/python.exe" -m pip install --upgrade --no-user "fastf1" 
ERROR: Could not find a version that satisfies the requirement fastf1 (from versions: none)
ERROR: No matching distribution found for fastf1
Warning in shell(fi, intern = intern) :
  'C:\Users\pbous\AppData\Local\Temp\RtmpG2fcFH\file1d0817866e51.bat' execution failed with error code 1
Error: package or namespace load failed for 'f1dataR':
 .onLoad failed in loadNamespace() for 'f1dataR', details:
  call: NULL
  error: Error installing package(s): "\"fastf1\""
Error: loading failed
Execution halted
*** arch - x64
Warning: package 'reticulate' was built under R version 4.1.3

C:\Users\pbous\AppData\Local\Temp\RtmpklOC9W\R.INSTALL85c435ec5523\f1dataR>CALL "C:\Users\pbous\AppData\Local\r-miniconda\condabin\activate.bat" "C:\Users\pbous\AppData\Local\r-miniconda\envs\r-reticulate" 

C:\Users\pbous\AppData\Local\Temp\RtmpklOC9W\R.INSTALL85c435ec5523\f1dataR>conda.bat activate "C:\Users\pbous\AppData\Local\r-miniconda\envs\r-reticulate" 

(r-reticulate) C:\Users\pbous\AppData\Local\Temp\RtmpklOC9W\R.INSTALL85c435ec5523\f1dataR>"C:/Users/pbous/AppData/Local/r-miniconda/envs/r-reticulate/python.exe" -m pip install --upgrade --no-user "fastf1" 
ERROR: Could not find a version that satisfies the requirement fastf1 (from versions: none)
ERROR: No matching distribution found for fastf1
Warning in shell(fi, intern = intern) :
  'C:\Users\pbous\AppData\Local\Temp\RtmpOAtJ2V\file5568763c237e.bat' execution failed with error code 1
Error: package or namespace load failed for 'f1dataR':
 .onLoad failed in loadNamespace() for 'f1dataR', details:
  call: NULL
  error: Error installing package(s): "\"fastf1\""
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/Users/pbous/Documents/R/win-library/4.1/f1dataR'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/pbous/AppData/Local/Temp/RtmpwZiog7/file596034986311/f1dataR_0.3.8.tar.gz’ had non-zero exit status

pbousquets avatar Oct 09 '22 17:10 pbousquets

At least I got it working elsewhere, so for me it's ok now. But probably you may want to make it working everywhere

pbousquets avatar Oct 09 '22 17:10 pbousquets

I'm having the same issue. I'm working on a windows computer and python 3.8.8 is installed.

cecilomar6 avatar Nov 04 '22 18:11 cecilomar6

Hi @cecilomar6 and @pbousquets , if the issue is still happening on any of your computers, can you run the following in the console after the failed remotes::install_github("SCasanova/f1dataR") install attempt, and post the output?

reticulate::py_version() 
reticulate::py_available()
reticulate::py_module_available('fastf1')

It could be a python version mismatch if you have multiple versions on your machine.

pbulsink avatar Nov 17 '22 17:11 pbulsink

Sorry for the delay. It's working now in the machine that was having problems!

Thanks a lot

pbousquets avatar Dec 01 '22 13:12 pbousquets

@pbulsink is a legend. Closed by #20

SCasanova avatar Dec 01 '22 21:12 SCasanova