Git Product home page Git Product logo

Comments (16)

EdOverflow avatar EdOverflow commented on August 12, 2024

What version of Python are you running?

$ sudo apt-get install html

from linkfinder.

w1ld3r avatar w1ld3r commented on August 12, 2024

As I wrote upper: Python 3.8.3

from linkfinder.

remonsec avatar remonsec commented on August 12, 2024

Help !

image

from linkfinder.

w1ld3r avatar w1ld3r commented on August 12, 2024

Help !

image

What version of python are you running ?

from linkfinder.

remonsec avatar remonsec commented on August 12, 2024

Help !
image

What version of python are you running ?

chech this out

image

from linkfinder.

w1ld3r avatar w1ld3r commented on August 12, 2024

I recommend you to don't use anymore python2 because it's no more supported and LinkFinder support python3. So use pip3 instead of pip. But I thinks you will have the same error as me.

from linkfinder.

w1ld3r avatar w1ld3r commented on August 12, 2024

To reproduce my issue:

git clone https://github.com/GerbenJavado/LinkFinder.git
cd LinkFinder
pip3 install -r requirements.txt
sudo python3 setup.py install
linkfinder -h

Error:

Traceback (most recent call last):
  File "/home/xinshen/.local/bin//linkfinder", line 11, in <module>
    import re, sys, glob, html, argparse, jsbeautifier, webbrowser, subprocess, base64, ssl, xml.etree.ElementTree
ImportError: No module named html

Otherwise it's running well with:

python3 linkfinder.py -h

from linkfinder.

remonsec avatar remonsec commented on August 12, 2024

To reproduce my issue:

git clone https://github.com/GerbenJavado/LinkFinder.git
cd LinkFinder
pip3 install -r requirements.txt
sudo python3 setup.py install
linkfinder -h

Error:

Traceback (most recent call last):
  File "/home/xinshen/.local/bin//linkfinder", line 11, in <module>
    import re, sys, glob, html, argparse, jsbeautifier, webbrowser, subprocess, base64, ssl, xml.etree.ElementTree
ImportError: No module named html

Otherwise it's running well with:

python3 linkfinder.py -h

image

linkfinder -h not working, i have done with sudo python3 setup.py install command
python3 linkfinder.py -h working good
Thanks bro for your support

from linkfinder.

EdOverflow avatar EdOverflow commented on August 12, 2024

@x1n5h3n, would you be willing to retest your steps above? Does the problem still occur with the latest master branch?

from linkfinder.

w1ld3r avatar w1ld3r commented on August 12, 2024

I've got a ModuleNotFoundError when trying to install requirements modules.

Steps to reproduce:

git clone https://github.com/GerbenJavado/LinkFinder.git
cd LinkFinder
pip3 install -r requirements.txt
Requirement already satisfied: jsbeautifier in /home/xinshen/.local/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (1.10.3)
Collecting html
  Using cached html-1.16.tar.gz (7.6 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ansfj40_/html/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ansfj40_/html/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-fwdyf2xd
         cwd: /tmp/pip-install-ansfj40_/html/
    Complete output (15 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 20, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 6, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 11, in <module>
        from setuptools.extern.six.moves import html_parser
      File "/usr/lib/python3/dist-packages/setuptools/_vendor/six.py", line 92, in __get__
        result = self._resolve()
      File "/usr/lib/python3/dist-packages/setuptools/_vendor/six.py", line 115, in _resolve
        return _import_module(self.mod)
      File "/usr/lib/python3/dist-packages/setuptools/_vendor/six.py", line 82, in _import_module
        __import__(name)
    ModuleNotFoundError: No module named 'html.parser'; 'html' is not a package
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Otherwise it's running well, for me, without installing requirements packages.

from linkfinder.

nikitastupin avatar nikitastupin commented on August 12, 2024

Hi @EdOverflow,

c9cfaa5 has broken pip3 install -r requirements.txt. Now it returns:

...
Collecting html
  Downloading html-1.16.tar.gz (7.6 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-flkrb8ji/html/setup.py'"'"'; __file__='"'"'/tmp/pip-install-flkrb8ji/html/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-flkrb8ji/html/pip-egg-info
         cwd: /tmp/pip-install-flkrb8ji/html/
    Complete output (17 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 19, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 35, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 6, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 11, in <module>
        from setuptools.extern.six.moves import html_parser
      File "/usr/lib/python3/dist-packages/setuptools/_vendor/six.py", line 92, in __get__
        result = self._resolve()
      File "/usr/lib/python3/dist-packages/setuptools/_vendor/six.py", line 115, in _resolve
        return _import_module(self.mod)
      File "/usr/lib/python3/dist-packages/setuptools/_vendor/six.py", line 82, in _import_module
        __import__(name)
    ModuleNotFoundError: No module named 'html.parser'; 'html' is not a package
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

As far as I understand html module is built-in in python3 so we don't need to install it manually.

Software versions

$ pip3 --version
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
$ python3 --version
Python 3.8.2
$ uname -a
Linux bug 5.4.0-31-generic #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

from linkfinder.

EdOverflow avatar EdOverflow commented on August 12, 2024

Yep, you are absolutely right, @nikitastupin. I noticed this when @x1n5h3n tried reproducing the problem. As you pointed out, html is a built-in module in Python 3. I will remove it from the requirements.txt file.

from linkfinder.

mikely22 avatar mikely22 commented on August 12, 2024

Any help fixing this issue Mr EdOverflow have been on this for the past 3days no luck. Thanks

from linkfinder.

Redge4r avatar Redge4r commented on August 12, 2024

Hello,

I see the same error

$ py linkfinder.py -h
Traceback (most recent call last):
File "linkfinder.py", line 11, in
import re, sys, glob, argparse, jsbeautifier, webbrowser, subprocess, base64, ssl, xml.etree.ElementTree, html
ImportError: No module named html

$ py --version
Python 3.8.5

Please advice what can be done to fix it.

from linkfinder.

abhi06991 avatar abhi06991 commented on August 12, 2024

For me, this worked, In the linkfinder.py file, you have to change the shebang, the first line from python to python3
#!/usr/bin/env python to #!/usr/bin/env python3

from linkfinder.

w1ld3r avatar w1ld3r commented on August 12, 2024

@abhi06991 when executed using python3 command, the shebang is not used.
When you run it like this ./linkfinder.py, it's used.

from linkfinder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.