-
Notifications
You must be signed in to change notification settings - Fork 85
get_fld #24
Comments
Thanks for reporting, I'm happy to accept a PR to fix. cc @FFY00 who contributed the original patch and might have more context. |
It was definitely working, it probably was an API change. I will have a look when I get home. |
Ran into this same problem after installing on my RPi. Tried the edit that @microchip8 suggested, but that didn't work (still couldn't find module |
Sorry for the late response. |
I use my distro's python 3 packages. I have the following python3-tld-0.7.10 it does not work with these versions. Only when I changed get_fld to get_tld twice in the script (import at top and below where it is called) did the script work. |
Your tld version seems to be a bit old. Your purposed fix just gets rid of the import error, but it will not work if you try to use subdomains. @1deadpixl what do you want to do? Support older versions of tld, use a try block here so that users will only run into this issue when they use subdomains, etc? |
@microchip8 you can get rid of the issue by installing tld with pip. |
OK, thanks :) |
Would probably be a good idea to lock the version of all dependencies in requirements.txt, if anyone has time to submit a PR I'd be happy to merge |
@FFY00 I think it was a config error on my part: |
For future visitors. The current work around I have to use when ever installing this software is this
|
That fixed the issue for me. Thank you for this. |
Hi,
there's a typo (I think) in your script. Instead of get_tld, you use get_fld. This does not work here (fails to import error). When I change get_fld to get_tld in your script, the script works
The text was updated successfully, but these errors were encountered: