Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install 'unknown package' from Bitbucket #2118

Closed
bjornol opened this issue Sep 19, 2019 · 19 comments
Closed

Failed to install 'unknown package' from Bitbucket #2118

bjornol opened this issue Sep 19, 2019 · 19 comments

Comments

@bjornol
Copy link

bjornol commented Sep 19, 2019

HI
Im on a windows devtools version 2.2.0 and im having trouble installing from private bitbucket repo. I get current error message:

devtools::install_bitbucket("dummy/url", auth_user="user", password="password")

Failed to install 'unknown package' from Bitbucket:
cannot open URL cannot open URL 'https://api.bitbucket.org/2.0/repositories/dummy/url/src/master/DESCRIPTION'

Its working on my ubuntu machine

Anyone having the same issue?

@jimhester
Copy link
Member

You may want to install the devel version of the remotes package, there have been some community fixes in regards to bitbucket that may solve this issue.

devtools::install_dev("remotes")

@bjornol
Copy link
Author

bjornol commented Sep 23, 2019

No change. Still get the same error.

@lounsburynw
Copy link

I am also having the same issue

@bjornol
Copy link
Author

bjornol commented Feb 18, 2020

Why is this an issue still. Just updated one of my old servers with devtools and suddenly I get this error message again. Now what. Can’t install my private packages again. This is quite irritating

@gabriben
Copy link

same problem here :(

@karelfiser
Copy link

Same problem (Ubuntu 20.04, R version 4.0.2 (2020-06-22), devtools_2.3.0).

@zero1025998080
Copy link

Same in R 3.6.3 with package devtools 2.3.0, I also tried R 4.0.2 before, which only caused more problems.

@bguillod
Copy link

Same here, building a docker image which installs a private package from bitbucket fails although it used to work. Very irritating indeed. Could it be some system dependencies were updated and create issue with devtools?

@fdrennan
Copy link

same here

@Sam-cdd
Copy link

Sam-cdd commented Jun 23, 2021

Same problem

@zero1025998080
Copy link

I don't remeber what is the specific problem when I come here for help then, but I did solve it.
I tried to download a package called "maucantor/unodf" from Bitbucket that time, and it was my first and only time download packages from Bitbucket.
I tried this in Rstudio (R 3.6.1:
remotes:::download_method()
options(download.file.method = "libcurl")
library(devtools)
install_bitbucket("maucantor/unodf")
And also there is a problem on the code of the function in this package, so I collect it (≠ → !=).
Hope this could help.

@Micksusername
Copy link

Same issue guys and can't find a solution anywhere!! Please....somebody!!!

@saberpowers
Copy link

I am also currently blocked by this issue.

@harell
Copy link

harell commented Mar 31, 2022

@jimhester this is still an open issue on R4.1.3 remotes v2.4.2. Could you please advise?

I'm trying to install a package on a public Bitbucket repo. This gives the following error

install_bitbucket('annalectnz/rianna')
> Error: Failed to install 'unknown package' from Bitbucket:
  cannot open URL 'https://api.bitbucket.org/2.0/repositories/annalectnz/rianna/src/HEAD/DESCRIPTION'

However, when I paste the URL address to Chrome, I can see the DESCRIPTION file content

@jennybc
Copy link
Member

jennybc commented Apr 1, 2022

install_bitbucket() is implemented in the remotes package:

install_bitbucket <- with_pkgbuild_build_tools(with_ellipsis(remotes::install_bitbucket))

Also comments on old issues are often not seen.

@jonkatz2
Copy link

jonkatz2 commented May 19, 2022

I installed a package from a private repo using install_bitbucket() today.
The remotes::install_bitbucket() help page has this blurb:

Then store your password in the environment variable BITBUCKET_PASSWORD (e.g. evelynwaugh:swordofhonour) 

I thought this meant username:password, but that did not work for me. What worked for me was to set my username and (app) password separately:

Sys.setenv(BITBUCKET_USER='jonkatz')
Sys.setenv(BITBUCKET_PASSWORD='XxXxXxXxXxXxXxX')
install_bitbucket("gsilver/coio")

Another stumble was that to look up my username I had to view my Personal Settings and look for it under Bitbucket Profile Settings, not Account Settings.

@harell
Copy link

harell commented May 21, 2022

I installed a package from a private repo using install_bitbucket() today. The remotes::install_bitbucket() help page has this blurb:

Then store your password in the environment variable BITBUCKET_PASSWORD (e.g. evelynwaugh:swordofhonour) 

I thought this meant username:password, but that did not work for me. What worked for me was to set my username and (app) password separately:

Sys.setenv(BITBUCKET_USER='jonkatz')
Sys.setenv(BITBUCKET_PASSWORD='XxXxXxXxXxXxXxX')
install_bitbucket("gsilver/coio")

Another stumble was that to look up my username I had to view my Personal Settings and look for it under Bitbucket Profile Settings, not Account Settings.

@jonkatz2 Please move this issue to r-lib/remotes#703

@aakashparulekar
Copy link

Hey guys, what worked for me was going into Bitbucket and setting an App password. Use the App password as the password argument for install_bitbucket. Works for any Sourcetree issues as well

@eliauk07yz
Copy link

HI Im on a windows devtools version 2.2.0 and im having trouble installing from private bitbucket repo. I get current error message:

devtools::install_bitbucket("dummy/url", auth_user="user", password="password")

Failed to install 'unknown package' from Bitbucket: cannot open URL cannot open URL 'https://api.bitbucket.org/2.0/repositories/dummy/url/src/master/DESCRIPTION'

Its working on my ubuntu machine

Anyone having the same issue?

Hi:
I also meet this problem,can you tell me how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests