funilrys / PyFunceble

The tool to check the availability or syntax of domain, IP or URL.
https://pyfunceble.github.io
Apache License 2.0
296 stars 44 forks source link

Using the raw Python installation method only installs 1.0.0 #21

Closed DandelionSprout closed 5 years ago

DandelionSprout commented 5 years ago

Describe the bug I am unable to use PyFunceble, because trying to install or update PyFunceble, through the "pure Python" methods that are described in the installation and update guides, isn't going all that well. This is because it only installs 1.0.0 instead of 1.8.0, and then refuses to run due to a message that tells me to update PyFunceble, which I can't.

Modifications under .PyFunceble.yaml No changes that I know about.

To Reproduce Steps to reproduce the behavior:

  1. cd into a PyFunceble folder (Presumably one that has been set up with the "pure Python" installation method).
  2. Run git checkout master && git fetch origin && git merge origin/master
  3. See that it gets updated, or that it says that it's fully updated already.
  4. Run pyfunceble -v
  5. See that it says pyfunceble 1.0.0. (Blue Bontebok)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Versions (please complete the following information):

Additional context I am unable to test with either of the pip3 methods, because of something of some sort: image

I have absolutely no idea how to get the new GitHub compressed-archive download method to work either, with this incomprehensible error being shown: image

DandelionSprout commented 5 years ago

Okay, so apparently I had forgot to try to actually run python3 setup.py test && python3 setup.py install inside the 1.8.0 folder that is seen in the last screencap above (in part because I couldn't see anything anywhere about whether it was needed or not for when it's downloaded from the GitHub releases page)... which led to an error log of such length that I'm uploading it as an external image, in order to make this issue thread still readable: https://images2.imgbox.com/cd/2a/apmE5CxJ_o.png

As one can probably tell by now, me and command line tools in general rarely get along. πŸ˜…

funilrys commented 5 years ago

Hi @DandelionSprout and thanks for this issue!

I'm not a fluent Windows user but I'll try to reproduce. But first here what I did before trying to reproduce/make it work.

Please note that I have a Windows only since 2 weeks so I wrote PyFunceble without testing on Windows.

Current OSVersion

> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      17134  0

PowerShell Version

> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17134  407

Normal installation

I followed the pure installation method from the documentation.

Note: python is a synonym of python3 as I installed Python 3 only on the machine.

Found the first issue: install should be run before test (Got an issue because all package were not installed but if you installed anaconda it should not cause any issue).

So I did:

> python .\setup.py install
running install
running bdist_egg
running egg_info
creating PyFunceble.egg-info
writing PyFunceble.egg-info\PKG-INFO
writing dependency_links to PyFunceble.egg-info\dependency_links.txt
writing entry points to PyFunceble.egg-info\entry_points.txt
writing requirements to PyFunceble.egg-info\requires.txt
writing top-level names to PyFunceble.egg-info\top_level.txt
writing manifest file 'PyFunceble.egg-info\SOURCES.txt'
reading manifest file 'PyFunceble.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'PyFunceble.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\PyFunceble
copying PyFunceble\adblock.py -> build\lib\PyFunceble
copying PyFunceble\auto_continue.py -> build\lib\PyFunceble
copying PyFunceble\auto_save.py -> build\lib\PyFunceble
copying PyFunceble\check.py -> build\lib\PyFunceble
copying PyFunceble\clean.py -> build\lib\PyFunceble
copying PyFunceble\config.py -> build\lib\PyFunceble
copying PyFunceble\core.py -> build\lib\PyFunceble
copying PyFunceble\database.py -> build\lib\PyFunceble
copying PyFunceble\directory_structure.py -> build\lib\PyFunceble
copying PyFunceble\execution_time.py -> build\lib\PyFunceble
copying PyFunceble\expiration_date.py -> build\lib\PyFunceble
copying PyFunceble\generate.py -> build\lib\PyFunceble
copying PyFunceble\helpers.py -> build\lib\PyFunceble
copying PyFunceble\http_code.py -> build\lib\PyFunceble
copying PyFunceble\iana.py -> build\lib\PyFunceble
copying PyFunceble\logs.py -> build\lib\PyFunceble
copying PyFunceble\lookup.py -> build\lib\PyFunceble
copying PyFunceble\mining.py -> build\lib\PyFunceble
copying PyFunceble\percentage.py -> build\lib\PyFunceble
copying PyFunceble\prints.py -> build\lib\PyFunceble
copying PyFunceble\production.py -> build\lib\PyFunceble
copying PyFunceble\publicsuffix.py -> build\lib\PyFunceble
copying PyFunceble\referer.py -> build\lib\PyFunceble
copying PyFunceble\sort.py -> build\lib\PyFunceble
copying PyFunceble\status.py -> build\lib\PyFunceble
copying PyFunceble\syntax.py -> build\lib\PyFunceble
copying PyFunceble\url.py -> build\lib\PyFunceble
copying PyFunceble\__init__.py -> build\lib\PyFunceble
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\adblock.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\auto_continue.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\auto_save.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\check.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\clean.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\config.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\core.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\database.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\directory_structure.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\execution_time.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\expiration_date.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\generate.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\helpers.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\http_code.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\iana.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\logs.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\lookup.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\mining.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\percentage.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\prints.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\production.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\publicsuffix.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\referer.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\sort.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\status.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\syntax.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\url.py -> build\bdist.win-amd64\egg\PyFunceble
copying build\lib\PyFunceble\__init__.py -> build\bdist.win-amd64\egg\PyFunceble
byte-compiling build\bdist.win-amd64\egg\PyFunceble\adblock.py to adblock.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\auto_continue.py to auto_continue.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\auto_save.py to auto_save.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\check.py to check.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\clean.py to clean.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\config.py to config.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\core.py to core.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\database.py to database.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\directory_structure.py to directory_structure.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\execution_time.py to execution_time.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\expiration_date.py to expiration_date.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\generate.py to generate.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\helpers.py to helpers.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\http_code.py to http_code.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\iana.py to iana.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\logs.py to logs.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\lookup.py to lookup.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\mining.py to mining.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\percentage.py to percentage.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\prints.py to prints.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\production.py to production.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\publicsuffix.py to publicsuffix.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\referer.py to referer.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\sort.py to sort.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\status.py to status.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\syntax.py to syntax.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\url.py to url.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\PyFunceble\__init__.py to __init__.cpython-37.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying PyFunceble.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying PyFunceble.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying PyFunceble.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying PyFunceble.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying PyFunceble.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying PyFunceble.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
PyFunceble.__pycache__.__init__.cpython-37: module MAY be using inspect.getsourcefile
creating dist
creating 'dist\PyFunceble-1.8.0-py3.7.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing PyFunceble-1.8.0-py3.7.egg
creating d:\program\python3\lib\site-packages\PyFunceble-1.8.0-py3.7.egg
Extracting PyFunceble-1.8.0-py3.7.egg to d:\program\python3\lib\site-packages
Adding PyFunceble 1.8.0 to easy-install.pth file
Installing PyFunceble-script.py script to D:\program\python3\Scripts
Installing PyFunceble.exe script to D:\program\python3\Scripts
Installing pyfunceble-script.py script to D:\program\python3\Scripts
Installing pyfunceble.exe script to D:\program\python3\Scripts

Installed d:\program\python3\lib\site-packages\pyfunceble-1.8.0-py3.7.egg
Processing dependencies for PyFunceble==1.8.0
Searching for urllib3>=1.23
Reading https://pypi.org/simple/urllib3/
Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl#sha256=61bf29cada3fc2fbefad4fdf059ea4bd1b4a86d2b6d15e1c7c0b582b9752fe39
Best match: urllib3 1.24.1
Processing urllib3-1.24.1-py2.py3-none-any.whl
Installing urllib3-1.24.1-py2.py3-none-any.whl to d:\program\python3\lib\site-packages
writing requirements to d:\program\python3\lib\site-packages\urllib3-1.24.1-py3.7.egg\EGG-INFO\requires.txt
Adding urllib3 1.24.1 to easy-install.pth file

Installed d:\program\python3\lib\site-packages\urllib3-1.24.1-py3.7.egg
Searching for requests>=2.19.1
Reading https://pypi.org/simple/requests/
Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl#sha256=7bf2a778576d825600030a110f3c0e3e8edc51dfaafe1c146e39a2027784957b
Best match: requests 2.21.0
Processing requests-2.21.0-py2.py3-none-any.whl
Installing requests-2.21.0-py2.py3-none-any.whl to d:\program\python3\lib\site-packages
writing requirements to d:\program\python3\lib\site-packages\requests-2.21.0-py3.7.egg\EGG-INFO\requires.txt
Adding requests 2.21.0 to easy-install.pth file

Installed d:\program\python3\lib\site-packages\requests-2.21.0-py3.7.egg
Searching for PyYAML>=3.13
Reading https://pypi.org/simple/PyYAML/
Downloading https://files.pythonhosted.org/packages/a8/c6/a8d1555e795dbd0375c3c93b576ca13bbf139db51ea604afa19a2c35fc03/PyYAML-4.2b4.tar.gz#sha256=3c17fb92c8ba2f525e4b5f7941d850e7a48c3a59b32d331e2502a3cdc6648e76
Best match: PyYAML 4.2b4
Processing PyYAML-4.2b4.tar.gz
Writing C:\Users\nissa\AppData\Local\Temp\easy_install-n9zoord4\PyYAML-4.2b4\setup.cfg
Running PyYAML-4.2b4\setup.py -q bdist_egg --dist-dir C:\Users\nissa\AppData\Local\Temp\easy_install-n9zoord4\PyYAML-4.2b4\egg-dist-tmp-8ifk5q4r
Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
skipping build_ext
zip_safe flag not set; analyzing archive contents...
Copying pyyaml-4.2b4-py3.7-win-amd64.egg to d:\program\python3\lib\site-packages
Adding pyyaml 4.2b4 to easy-install.pth file

Installed d:\program\python3\lib\site-packages\pyyaml-4.2b4-py3.7-win-amd64.egg
Searching for domain2idna>=1.6.1
Reading https://pypi.org/simple/domain2idna/
Downloading https://files.pythonhosted.org/packages/4e/27/b7336824583e26d3e33f7b6917c00e51b7c8a94bc1d4b78d6aa1eb9c7e8b/domain2idna-1.6.1-py3-none-any.whl#sha256=e54926b0253a1dae203f3215df1ffdc19cc39e2cdebbd2da96d6b1cf8f4937c9
Best match: domain2idna 1.6.1
Processing domain2idna-1.6.1-py3-none-any.whl
Installing domain2idna-1.6.1-py3-none-any.whl to d:\program\python3\lib\site-packages
writing requirements to d:\program\python3\lib\site-packages\domain2idna-1.6.1-py3.7.egg\EGG-INFO\requires.txt
Adding domain2idna 1.6.1 to easy-install.pth file
Installing domain2idna-script.py script to D:\program\python3\Scripts
Installing domain2idna.exe script to D:\program\python3\Scripts

Installed d:\program\python3\lib\site-packages\domain2idna-1.6.1-py3.7.egg
Searching for colorama>=0.4.0
Reading https://pypi.org/simple/colorama/
Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl#sha256=f8ac84de7840f5b9c4e3347b3c1eaa50f7e49c2b07596221daec5edaabbd7c48
Best match: colorama 0.4.1
Processing colorama-0.4.1-py2.py3-none-any.whl
Installing colorama-0.4.1-py2.py3-none-any.whl to d:\program\python3\lib\site-packages
Adding colorama 0.4.1 to easy-install.pth file

Installed d:\program\python3\lib\site-packages\colorama-0.4.1-py3.7.egg
Searching for idna<2.9,>=2.5
Reading https://pypi.org/simple/idna/
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl#sha256=ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c
Best match: idna 2.8
Processing idna-2.8-py2.py3-none-any.whl
Installing idna-2.8-py2.py3-none-any.whl to d:\program\python3\lib\site-packages
Adding idna 2.8 to easy-install.pth file

Installed d:\program\python3\lib\site-packages\idna-2.8-py3.7.egg
Searching for chardet<3.1.0,>=3.0.2
Reading https://pypi.org/simple/chardet/
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl#sha256=fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691
Best match: chardet 3.0.4
Processing chardet-3.0.4-py2.py3-none-any.whl
Installing chardet-3.0.4-py2.py3-none-any.whl to d:\program\python3\lib\site-packages
Adding chardet 3.0.4 to easy-install.pth file
Installing chardetect-script.py script to D:\program\python3\Scripts
Installing chardetect.exe script to D:\program\python3\Scripts

Installed d:\program\python3\lib\site-packages\chardet-3.0.4-py3.7.egg
Searching for certifi>=2017.4.17
Reading https://pypi.org/simple/certifi/
Downloading https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl#sha256=993f830721089fef441cdfeb4b2c8c9df86f0c63239f06bd025a76a7daddb033
Best match: certifi 2018.11.29
Processing certifi-2018.11.29-py2.py3-none-any.whl
Installing certifi-2018.11.29-py2.py3-none-any.whl to d:\program\python3\lib\site-packages
Adding certifi 2018.11.29 to easy-install.pth file

Installed d:\program\python3\lib\site-packages\certifi-2018.11.29-py3.7.egg
Searching for setuptools==40.6.2
Best match: setuptools 40.6.2
Adding setuptools 40.6.2 to easy-install.pth file
Installing easy_install-script.py script to D:\program\python3\Scripts
Installing easy_install.exe script to D:\program\python3\Scripts
Installing easy_install-3.6-script.py script to D:\program\python3\Scripts
Installing easy_install-3.6.exe script to D:\program\python3\Scripts

Using d:\program\python3\lib\site-packages
Finished processing dependencies for PyFunceble==1.8.0
> python .\setup.py test
running test
running egg_info
writing PyFunceble.egg-info\PKG-INFO
writing dependency_links to PyFunceble.egg-info\dependency_links.txt
writing entry points to PyFunceble.egg-info\entry_points.txt
writing requirements to PyFunceble.egg-info\requires.txt
writing top-level names to PyFunceble.egg-info\top_level.txt
reading manifest file 'PyFunceble.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'PyFunceble.egg-info\SOURCES.txt'
running build_ext
test_adblock_decode (test_adblock.TestAdblockDecode) ... d:\program\python3\lib\site-packages\pyyaml-4.2b4-py3.7-win-amd64.egg\yaml\constructor.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
ok
test_backup (test_auto_continue.TestsAutoContinue) ... ok
test_backup_not_activated (test_auto_continue.TestsAutoContinue) ... ok
test_delete_file (test_auto_continue.TestsAutoContinue) ... ok
test_restore (test_auto_continue.TestsAutoContinue) ... ok
test_restore_old_system (test_auto_continue.TestsAutoContinue) ... ok
test_is_domain_valid (test_check.TestCheck) ... ok
test_is_domain_valid_not_valid (test_check.TestCheck) ... ok
test_is_ip_range (test_check.TestCheck) ... ok
test_is_ip_range_not (test_check.TestCheck) ... ok
test_is_ip_valid (test_check.TestCheck) ... ok
test_is_ip_valid_not_valid (test_check.TestCheck) ... ok
test_is_subdomain_not_valid (test_check.TestCheck) ... ok
test_is_subdomain_valid (test_check.TestCheck) ... ok
test_is_url_valid (test_check.TestCheck) ... ok
test_is_url_valid_convert_idna (test_check.TestCheck) ... ok
test_is_url_valid_not_convert_idna (test_check.TestCheck) ... ok
test_is_url_valid_not_valid (test_check.TestCheck) ... ok
test_is_url_valid_protocol_not_supported (test_check.TestCheck) ... ok
test_clean_all (test_clean.TestClean) ... ok
test_number_of_tested_null (test_clean.TestClean) ... ok
test_tested_out_of_index (test_clean.TestClean) ... ok
test_tested_same_last (test_clean.TestClean) ... ok
test_with_empty_list (test_clean.TestClean) ... ok
test_extracting_from_file (test_core.TestExtractDomain) ... ok
test_file_does_not_exist (test_core.TestExtractDomain) ... ok
test_index_not_exist (test_core.TestSwitch) ... ok
test_switch_false (test_core.TestSwitch) ... ok
test_switch_true (test_core.TestSwitch) ... ok
test_switch_value_is_not_bool (test_core.TestSwitch) ... ok
tests_colored_logo_green (test_core.TestsColoredLogo) ... ok
tests_colored_logo_red (test_core.TestsColoredLogo) ... ok
tests_quiet_colored_logo (test_core.TestsColoredLogo) ... ok
tests_comment (test_core.TestsFormatDomain) ... ok
tests_ends_with_comment (test_core.TestsFormatDomain) ... ok
tests_multiple_spaces (test_core.TestsFormatDomain) ... ok
tests_simple_line (test_core.TestsFormatDomain) ... ok
tests_with_multiple_tabs (test_core.TestsFormatDomain) ... ok
tests_with_prefix (test_core.TestsFormatDomain) ... ok
tests_with_tabs (test_core.TestsFormatDomain) ... ok
tests_counter_set (test_core.TestsResetCounters) ... ok
tests_reset_counters (test_core.TestsResetCounters) ... ok
test_add_file_path_not_present (test_database.TestDatabaseInactive) ... ok
test_add_file_path_present (test_database.TestDatabaseInactive) ... ok
test_add_path_does_not_exist (test_database.TestDatabaseInactive) ... ok
test_add_to_test__path_exist (test_database.TestDatabaseInactive) ... ok
test_add_to_test__path_exist_not_test (test_database.TestDatabaseInactive) ... ok
test_add_to_test__path_not_exist (test_database.TestDatabaseInactive) ... ok
test_backup (test_database.TestDatabaseInactive) ... ERROR
test_content (test_database.TestDatabaseInactive) ... ok
test_file_not_exist (test_database.TestDatabaseInactive) ... ok
test_is_present (test_database.TestDatabaseInactive) ... ok
test_remove (test_database.TestDatabaseInactive) ... ok
test_retrieve_file_exist (test_database.TestDatabaseInactive) ... ERROR
test_retrieve_file_not_exist (test_database.TestDatabaseInactive) ... ok
test_timestamp_path_does_not_exit (test_database.TestDatabaseInactive) ... ok
test_timestamp_path_exist_time_future (test_database.TestDatabaseInactive) ... ok
test_timestamp_path_exist_time_past (test_database.TestDatabaseInactive) ... ok
test_to_test__path_exist_time_future (test_database.TestDatabaseInactive) ... ok
test_to_test__path_exist_time_past (test_database.TestDatabaseInactive) ... ok
test_to_test__path_not_exist (test_database.TestDatabaseInactive) ... ok
test_add (test_database.TestDatabaseWhois) ... ok
test_authorization (test_database.TestDatabaseWhois) ... ok
test_backup (test_database.TestDatabaseWhois) ... ok
test_file_not_exist (test_database.TestDatabaseWhois) ... ok
test_get_expiration_date (test_database.TestDatabaseWhois) ... ok
test_is_in_database (test_database.TestDatabaseWhois) ... ok
test_is_time_older (test_database.TestDatabaseWhois) ... ok
test_retrieve_file_exist (test_database.TestDatabaseWhois) ... ok
test_retrieve_file_not_exist (test_database.TestDatabaseWhois) ... ok
test_calculate (test_execution_time.TestExecutionTime) ... ok
test_calculate_consequent (test_execution_time.TestExecutionTime) ... ok
test_format_execution_time (test_execution_time.TestExecutionTime) ... ok
test_convert_1_to_2_digits (test_expiration_date.TestExpirationDate) ... ok
test_convert_or_shorten_month (test_expiration_date.TestExpirationDate) ... ok
test_format_date (test_expiration_date.TestExpirationDate) ... ok
test_command (test_helpers.TestCommand) ... FAIL
test_merge (test_helpers.TestDict) ... ok
test_remove_key (test_helpers.TestDict) ... ok
test_remove_key_not_dict (test_helpers.TestDict) ... ok
test_remove_key_not_found (test_helpers.TestDict) ... ok
test_rename_key_not_dict (test_helpers.TestDict) ... ok
test_rename_key_single_non_strict (test_helpers.TestDict) ... ok
test_rename_key_single_strict (test_helpers.TestDict) ... ok
test_to_yaml (test_helpers.TestDict) ... ok
test_fix_path (test_helpers.TestDirectory) ... ok
test_copy (test_helpers.TestFile) ... ok
test_read_delete (test_helpers.TestFile) ... ok
test_write_delete (test_helpers.TestFile) ... ok
test_write_overwrite_delete (test_helpers.TestFile) ... ok
test_get_all (test_helpers.TestHash) ... FAIL
test_get_path_not_exist (test_helpers.TestHash) ... FAIL
test_get_specific_algo (test_helpers.TestHash) ... FAIL
testhash_data (test_helpers.TestHash) ... ok
testhash_file (test_helpers.TestHash) ... FAIL
test_merge (test_helpers.TestList) ... ok
test_match_group (test_helpers.TestRegex) ... ok
test_match_rematch (test_helpers.TestRegex) ... ok
test_matching_list (test_helpers.TestRegex) ... ok
test_not_matching_list (test_helpers.TestRegex) ... ok
test_replace (test_helpers.TestRegex) ... ok
test_replace_no_replace_with (test_helpers.TestRegex) ... ok
test_get_code_is_none (test_http_code.TestHTTPCode) ... ok
test_get_known_code (test_http_code.TestHTTPCode) ... ok
test_get_not_activated (test_http_code.TestHTTPCode) ... ok
test_get_unknown_code (test_http_code.TestHTTPCode) ... ok
test_nslookup_domain_down (test_lookup.TestLookup) ... ok
test_nslookup_domain_invalid (test_lookup.TestLookup) ... ok
test_nslookup_domain_up (test_lookup.TestLookup) ... ok
test_add (test_mining.TestMining) ... ok
test_backup (test_mining.TestMining) ... ERROR
test_list_of_mined (test_mining.TestMining) ... ok
test_remove (test_mining.TestMining) ... ok
test_retrieve_file_exist (test_mining.TestMining) ... ERROR
test_retrieve_file_not_exist (test_mining.TestMining) ... ok
test_calculate (test_percentage.TestPercentage) ... ok
test_count (test_percentage.TestPercentage) ... ok
test_init (test_percentage.TestPercentage) ... ok
test_log (test_percentage.TestPercentage) ... ok
test_log_syntax (test_percentage.TestPercentage) ... ok
test_before_header (test_prints.TestPrints) ... ok
test_colorify (test_prints.TestPrints) ... ok
test_data_constructor (test_prints.TestPrints) ... ok
test_header_constructor_with_separator (test_prints.TestPrints) ... ok
test_header_constructor_without_separator (test_prints.TestPrints) ... ok
test_size_from_header (test_prints.TestPrints) ... ok
test_hierarchical_sorting (test_sort.TestSort) ... ok
test_standart_sorting (test_sort.TestSort) ... ok

======================================================================
ERROR: test_backup (test_database.TestDatabaseInactive)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_database.py", line 155, in test_backup
    self.expected_content, Dict().from_json(File(self.file).read())
  File "c:\users\nissa\pyfunceble\PyFunceble\helpers.py", line 704, in read
    funilrys = file.read()
  File "D:\program\python3\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 73: invalid start byte

======================================================================
ERROR: test_retrieve_file_exist (test_database.TestDatabaseInactive)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_database.py", line 137, in test_retrieve_file_exist
    Inactive()._retrieve()
  File "c:\users\nissa\pyfunceble\PyFunceble\database.py", line 277, in _retrieve
    self._merge()
  File "c:\users\nissa\pyfunceble\PyFunceble\database.py", line 205, in _merge
    database_content = Dict().from_json(File(self.inactive_db_path).read())
  File "c:\users\nissa\pyfunceble\PyFunceble\helpers.py", line 704, in read
    funilrys = file.read()
  File "D:\program\python3\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 73: invalid start byte

======================================================================
ERROR: test_backup (test_mining.TestMining)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_mining.py", line 280, in test_backup
    self.excepted_content, Dict().from_json(File(self.file).read())
  File "c:\users\nissa\pyfunceble\PyFunceble\helpers.py", line 704, in read
    funilrys = file.read()
  File "D:\program\python3\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 45: invalid continuation byte

======================================================================
ERROR: test_retrieve_file_exist (test_mining.TestMining)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_mining.py", line 146, in test_retrieve_file_exist
    Mining()._retrieve()
  File "c:\users\nissa\pyfunceble\PyFunceble\mining.py", line 120, in __init__
    self._retrieve()
  File "c:\users\nissa\pyfunceble\PyFunceble\mining.py", line 224, in _retrieve
    data = Dict().from_json(File(self.file).read())
  File "c:\users\nissa\pyfunceble\PyFunceble\helpers.py", line 704, in read
    funilrys = file.read()
  File "D:\program\python3\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 45: invalid continuation byte

======================================================================
FAIL: test_command (test_helpers.TestCommand)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_helpers.py", line 222, in test_command
    self.assertEqual(expected + "\n", actual)
AssertionError: 'PyFunceble has been written by Fun Ilrys.\n' != "'PyFunceble has been written by Fun Ilrys.'\r\n"
- PyFunceble has been written by Fun Ilrys.
+ 'PyFunceble has been written by Fun Ilrys.'
? +                                         ++

======================================================================
FAIL: test_get_all (test_helpers.TestHash)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_helpers.py", line 165, in test_get_all
    self.assertEqual(expected, actual)
AssertionError: {'md5': 'ba2e0e1774c2e60e2327f263402facd4', 'sha1'[362 chars]f7f'} != {'md5': 'c8abd5d9744d1200ebd4ee370c029a21', 'sha1'[362 chars]3ff'}
Diff is 864 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_get_path_not_exist (test_helpers.TestHash)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_helpers.py", line 142, in test_get_path_not_exist
    self.assertEqual(expected, actual)
AssertionError: False != True

======================================================================
FAIL: test_get_specific_algo (test_helpers.TestHash)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_helpers.py", line 184, in test_get_specific_algo
    self.assertEqual(expected, actual)
AssertionError: False != True

======================================================================
FAIL: testhash_file (test_helpers.TestHash)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\nissa\PyFunceble\tests\test_helpers.py", line 112, in testhash_file
    self.assertEqual(expected, actual)
AssertionError: False != True

----------------------------------------------------------------------
Ran 128 tests in 3.975s

FAILED (failures=5, errors=4)
Test failed: <unittest.runner.TextTestResult run=128 errors=4 failures=5>
error: Test failed: <unittest.runner.TextTestResult run=128 errors=4 failures=5>

Hehe that's surprising 😸 I have some code to fix first apparently πŸ˜„ That'll make my next days :joy:

Then I did:

> pyfunceble -d github.com

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•   β•šβ–ˆβ–ˆβ•”β•  β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•
β–ˆβ–ˆβ•‘        β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•        β•šβ•β•   β•šβ•β•      β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•β• β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

Domain                                                                                               Status      HTTP Code
---------------------------------------------------------------------------------------------------- ----------- ----------
github.com                                                                                           ACTIVE      301

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•   β•šβ–ˆβ–ˆβ•”β•  β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•
β–ˆβ–ˆβ•‘        β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•        β•šβ•β•   β•šβ•β•      β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•β• β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

Now to upgrade

I first moved and installed the 1.0.0.

> git checkout 1.0.0
> python .\setup.py install
> PyFunceble --version
pyfunceble 1.0.0. (Blue Bontebok)

> pyfunceble -d github.com

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•   β•šβ–ˆβ–ˆβ•”β•  β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•
β–ˆβ–ˆβ•‘        β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•        β•šβ•β•   β•šβ•β•      β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•β• β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

A critical issue has been fixed.
Please take the time to update PyFunceble!
> git checkout master
> pyfunceble -v
pyfunceble 1.0.0. (Blue Bontebok)
> python .\setup.py install
> pyfunceble -v
pyfunceble 1.8.0. (Blue Bontebok: Maggot)
> pyfunceble -d github.com

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•   β•šβ–ˆβ–ˆβ•”β•  β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•
β–ˆβ–ˆβ•‘        β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•        β•šβ•β•   β•šβ•β•      β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•β• β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

Domain                                                                                               Status      HTTP Code
---------------------------------------------------------------------------------------------------- ----------- ----------
github.com                                                                                           ACTIVE      301

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•   β•šβ–ˆβ–ˆβ•”β•  β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•
β–ˆβ–ˆβ•‘        β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•        β•šβ•β•   β•šβ•β•      β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•β• β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

> pyfunceble -f .\.travis\lists\simple

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•   β•šβ–ˆβ–ˆβ•”β•  β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•
β–ˆβ–ˆβ•‘        β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•        β•šβ•β•   β•šβ•β•      β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•β• β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

Traceback (most recent call last):
  File "D:\program\python3\Scripts\pyfunceble-script.py", line 11, in <module>
    load_entry_point('PyFunceble==1.8.0', 'console_scripts', 'pyfunceble')()
  File "D:\program\python3\lib\site-packages\pyfunceble-1.8.0-py3.7.egg\PyFunceble\__init__.py", line 1164, in _command_line
    link_to_test=ARGS.link,
  File "D:\program\python3\lib\site-packages\pyfunceble-1.8.0-py3.7.egg\PyFunceble\core.py", line 130, in __init__
    self._entry_management()
  File "D:\program\python3\lib\site-packages\pyfunceble-1.8.0-py3.7.egg\PyFunceble\core.py", line 323, in _entry_management
    self.file()
  File "D:\program\python3\lib\site-packages\pyfunceble-1.8.0-py3.7.egg\PyFunceble\core.py", line 1040, in file
    list_to_test = self._file_list_to_test_filtering()
  File "D:\program\python3\lib\site-packages\pyfunceble-1.8.0-py3.7.egg\PyFunceble\core.py", line 919, in _file_list_to_test_filtering
    list_to_test = self._extract_domain_from_file()
  File "D:\program\python3\lib\site-packages\pyfunceble-1.8.0-py3.7.egg\PyFunceble\core.py", line 896, in _extract_domain_from_file
    for line in file:
  File "D:\program\python3\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 272: character maps to <undefined>
funilrys commented 5 years ago

To conclude my last comment (Did Ctrl+Enter by mistake). I thought that Windows was 100% supported but it is not the case. I'll dig around that in the coming days now that I have a Windows 10 Partition.

Thanks for taking the time to report this @DandelionSprout. Will do my best to fix all the Windoof issues asap.

Cheers, Nissar

DandelionSprout commented 5 years ago

I have so far been using Cygwin, a tool that creates a Unix command-line environment for Windows, to run PyFunceble so far, as I've come across more than one command line tool out there that were assuming that every single person who'd want to use them were on Linux, thus I've ended up defaulting to Cygwin because of them.

So if there turns out to be a way to do all this in Powershell instead, that'd be a pretty awesome bonus.

funilrys commented 5 years ago

Oh than it's because of Cygwin that you get that CURRENT_DIRECTORY not found error.

Can you run and give me the output of python3 get_system.py assuming that get_system.py has the following content ?

from platform import system

print('System is `{}`'.format(system())

Thanks in advance.

Cheers, Nissar

DandelionSprout commented 5 years ago

Now that you mention it, Cygwin is a pretty strange tool, all in all, and their package system is godawful.

This is hand-on-my-heart honestly the output I got from that command: image

Using Voidtools Everything, which is considered to be the best local file search tool for Windows, showed that I didn't even have a file called get_system.py on my PC, despite me apparently having installed Python3 as a Cygwin package.

DandelionSprout commented 5 years ago

Oh, wait, you wanted me to create that file. Give me 2 minutes.

DandelionSprout commented 5 years ago

Okay, so this is the file I'm trying to load (The vertical line at the end is just the cursor): image

And this is how it went in Cygwin: image

I'm speechless by now.

funilrys commented 5 years ago

I forgot a closing parenthese 😭

from platform import system

print('System is `{}`'.format(system()))
DandelionSprout commented 5 years ago

Ah. πŸ™‚

This time I got an actual result from it: image

funilrys commented 5 years ago

Okay that System is not registered into the source Code that's why you got that CURRENT_DIRECTORY not found error πŸ˜ƒ

Have to document myself about it and will include it :) Might be faster than Fixing for PowerShell !

Anyway, I'm going to bed (Berlin Time). Will look at those when I have some spare time in the coming days.

Thanks again for creating/maintaining/updating this issue.

Cheers, Nissar

funilrys commented 5 years ago

@DandelionSprout, first part fixed.

It is now into the dev version.

funilrys commented 5 years ago

@DandelionSprout It should be now (also) fixed on Windows Powershell too.

Can you test the dev branch/version for me when you have some time ? I'll release to stable after your feedback or in the next 2 weeks if I don't get any.

As mentionned in the commit(s) message(s), I fixed and tested it on my Windows partition.

P.S: Please DO NOT close this issue manually. This issue is going to be closed automatically once https://github.com/funilrys/PyFunceble/commit/04886480b91bdb2a5c13b23fc5b63e3e5055ce09 will be merged to master.

DandelionSprout commented 5 years ago

I'll make sure to test it out, but it's getting a bit late for me as well (as we're in the same timezone; I'm residing in Norway). My to-do plan indicates that I should have time for it sometime tomorrow during the daytime.

funilrys commented 5 years ago

@DandelionSprout Great let me know, I'll wait!

Have a good night.

Cheers, Nissar

DandelionSprout commented 5 years ago

To the surprise of no one, I am still very confused, and can't seem to make any process, even in this past half-hour.

When using https://pyfunceble.readthedocs.io/en/latest/installation.html#id3 with Cygwin (I skipped the setup.py test part in this test): image

If it helps with the diagnosing, I can say that I do not have a folder called C:\cygwin64\usr\lib\python3.6\site-packages, but I do have a C:\cygwin64\lib\python3.6\site-packages.

DandelionSprout commented 5 years ago

When trying to do anything in the PyFunceble folder in Powershell.

I am aware that I do currently not have Python installed as a desktop program, but I can't get the pyfunceble command to work either. I've never really understood how Powershell's command list actually works like. image

Would it be too much work to just as well just make a GUI for PyFunceble by now?

DandelionSprout commented 5 years ago

Okay, so I did some research on my Cygwin installation, and it turned out that some parts of the problem really was user-specific for me.

Essentially, I reinstalled Windows 10 on my PC a month ago. However, Windows 10 has the ability to do a "re-install" on top of an old installation. This means that all non-system files (such as Cygwin) are carried over verbatim, while old system files are placed in a folder called windows.old so that they can be replaced by the new installation's system files.

For the most part it's actually a very convenient feature. However, for some bizarre reason, Windows 10 thought that Cygwin was a system-critical folder, thus I've had to very liberally use a userscript tool called Take Ownership to give Cygwin writing permissions to itself again.

So now I have at long last been able to update and set up PyFunceble properly, and once again does it work as intended in Cygwin. For the record, I have not been able to figure out how to make it work in Powershell, however. I wouldn't be surprised if that'd be due to my inexperience with Powershell, but still. image

funilrys commented 5 years ago

@DandelionSprout

About https://github.com/funilrys/PyFunceble/issues/21#issuecomment-464353085

It's really dependend of your environnement but I suppose that when you installed Python you made it available to all user + added it to PATH.

I guess that adding the --user argument along with python3 setup.py install should do the trick in your case.

About https://github.com/funilrys/PyFunceble/issues/21#issuecomment-464353420

That only means that python is not into your PATH. The python3.3+ installer allows you to add it to your PATH but if it was not done the following might help.

Also: A GUI is planned for the future but not now.

About https://github.com/funilrys/PyFunceble/issues/21#issuecomment-464354770

Strange :thinking: So it's working ?

DandelionSprout commented 5 years ago

So it's working ?

Yes, thankfully.

funilrys commented 5 years ago

Yes, thankfully.

Great! Will release it to stable asap.