It's working for Europe now.
Pyodbc install error in Azure Databricks: File not found error
Running the code below in Azure Databricks
%sh
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
apt-get update
ACCEPT_EULA=Y apt-get install msodbcsql17
apt-get -y install unixodbc-devhttps://packages.microsoft.com
sudo apt-get install python3-pip -y
pip3 install --upgrade pyodbc
At apt-get install msodbcsql17
step, I get the
Err:1 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 msodbcsql17 amd64 17.7.2.1-1
404 Not Found [IP: 13.81.215.193 443]
Since I have not changed the code, I assume the package was somehow removed from the repository, but I'm not sure where else to go find the package.
4 additional answers
Sort by: Most helpful
-
D. Stefanoski 26 Reputation points
2021-06-17T09:51:57.947+00:00 Look here, I just tested the broken url from various locations trough the world, it looks like Europe is being hit and updates are not propagated yet, le't give it some time until they sync properly! God I can't believe I am defending Microsoft :)
-
PRADEEPCHEEKATLA-MSFT 78,576 Reputation points Microsoft Employee
2021-06-17T09:36:38.903+00:00 Hello All,
(UPDATE2): Looks like there is an outage in specific regions with the http://packages.microsoft.com and it's going to be back online asap.
In my region, I'm able to reach the packages repository.
---------------------------------------------
(UPDATE1): Even I tried reinstalling on a fresh cluster and able to successfully install msodbcsql17 on the cluster.
Proof on completion:
-----------------------------
@Chung, Joshua , @Jaoua, Emna , @D. Stefanoski , @Tomáš , @Dagoberto Romer González , @MaaNo , @Francesco Caspani ,
Welcome the Microsoft Q&A platform.
This could be an intermittent issue. I would suggest you re-try again and check if that works.
Now, I'm able to install the
Pyodbc
in Azure Databricks without any issue.Installed on Databricks Runtime version :
8.2 (includes Apache Spark 3.1.1, Scala 2.12)
Hope this helps. Do let us know if you any further queries.
------------
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.
-
Francesco Caspani 1 Reputation point
2021-06-17T14:20:05.443+00:00 Now it works for debian 9.
-
Benjamin david 1 Reputation point
2021-06-17T15:03:05.88+00:00 Now it works for ubuntu 16.04.. but it is quite slow while downloading
]1