question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Error in updating source" and "Problem getting file" errors

See original GitHub issue

In the latest version I get a bunch of these errors while running either the updateHostsFile.py script (the first one I tried) or makeHosts.py (which I tried later to see if it would fix the errors):

Updating source extensions/fakenews from https://raw.githubusercontent.com/marktron/fakenews/master/fakenews Problem getting file: https://raw.githubusercontent.com/marktron/fakenews/master/fakenews Error in updating source: https://raw.githubusercontent.com/marktron/fakenews/master/fakenews

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dksaunderscommented, Jan 25, 2020

This was an issue for me just now on macOS. I added code in the get_file_by_url() method to show the full exception, which was

<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>

This was caused by Python not using the OpenSSL certificates from macOS. I ended up

  1. Installing Python from python.org, instead of using the version that came installed on the Mac. If you’re already using an installed (non-default) Python, skip this.
  2. At the end of the install, it should prompt to run the /Applications/Python 3.8/Install Certificates.command. Do that.

Hopefully that solves the issue for you.

1reaction
valentin-krasontovitschcommented, Aug 1, 2018

I’m getting this message as well, trying to figure out what’s going on - I added some debugging output, and looking at the (type of the) exception that’s thrown in get_file_by_url, I’m seeing

<class 'bs4.FeatureNotFound'>
Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

So the call to urlopen returns with a status of 200, but the subsequent call to BeautifulSoup must be failing.

Running on a raspberry pi, with raspbian stretch, python 3.5.3, and having just pulled and installed the requirements with pip 18.0.

Apparently some requirement or library is missing? Gonna try to investigate further…

And I found a viable solution (for my problem) in this issue on another repo - there it suggests to install some apt packages, as such:

apt-get install libxslt1-dev libxml2 python-dev

for me it was the first one which had apparently been missing, and it fixed the problem!

I don’t know if that was the OP’s problem as well, but in any case I would suggest adding these requirements (which seem to be hard requirements at least on raspbian-stretch) somewhere in the docs - unless you think that’s too obscure, and this comment might serve as enough documentation ; )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some update files are missing or have problems. We'll try to ...
When I try to install 2019-02 Cumulative Update for Windows 10 Version 1809 for x64-based Systems (KB4487044) I get the following error:.
Read more >
How to fix the "Updating from such a repository can't be done ...
1. Open the sources.list file using a text editor, I will be using the vi editor: 1 · 2. Add the following option...
Read more >
source control error: Failed to update file from source control
I am using redgate Source control for Oracle Version: 4.0.10.997. ... local folder and connection establishment , i am getting this error.
Read more >
Many project errors after update - Silicon Labs Community
780 If I try to generate my .isc file, I get this error: If I try to open ... 17 C/C++ Problem Fatal...
Read more >
Fix Windows errors that occur during Acrobat Reader update
Common error messages ; 1706, No valid source could be found for [product name]. One or more of the installer files that the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found