lanmaster53/recon-ng

Python upgraded to 3.6.8 new set of errors (Raspberry Pi 3B+)

AnonPK3 opened this issue · 7 comments

pi@raspberrypi:/etc/python3.6.8 $ python3 --version
Python 3.6.8

pi@raspberrypi:/GitArchive/recon-ng $ ls
docker-compose.yml Dockerfile LICENSE README.md recon recon-cli recon-ng recon-web REQUIREMENTS VERSION

*** I apply the json patch mentioned in another comment
*** I run pip install -r REQUIREMENTS

Failed building wheel for lxml
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-fpL3FM/lxml/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-KzcV45-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-fpL3FM/lxml/

pi@raspberrypi:/GitArchive/recon-ng $ ./recon-ng
Traceback (most recent call last):
File "./recon-ng", line 8, in
from recon.core import base
File "/GitArchive/recon-ng/recon/core/base.py", line 14, in
import yaml
ModuleNotFoundError: No module named 'yaml'

pi@raspberrypi:/GitArchive/recon-ng $ sudo ./recon-ng
Traceback (most recent call last):
File "./recon-ng", line 8, in
from recon.core import base
File "/GitArchive/recon-ng/recon/core/base.py", line 14, in
import yaml
ModuleNotFoundError: No module named 'yaml'

pi@raspberrypi:/GitArchive/recon-ng $ python3 recon-ng
Traceback (most recent call last):
File "recon-ng", line 8, in
from recon.core import base
File "/GitArchive/recon-ng/recon/core/base.py", line 14, in
import yaml
ModuleNotFoundError: No module named 'yaml'

pi@raspberrypi:/GitArchive/recon-ng $ python3 ./recon-ng
Traceback (most recent call last):
File "./recon-ng", line 8, in
from recon.core import base
File "/GitArchive/recon-ng/recon/core/base.py", line 14, in
import yaml
ModuleNotFoundError: No module named 'yaml'

Is this still an issue?

This is expected. If pip install -r REQUIREMENTS doesn't work, nothing will. This command installs Recon-ng's dependencies. No idea what's going on with lxml though. It's not building in your environment. Gonna need more information. If you were the one that was running Recon-ng on Raspberry Pi, then perhaps that OS doesn't meet the build requirements for lxml. I recommend Docker.

If you follow a tutorial on installing Docker (not even sure it is possible on Raspberry Pi), then the Recon-ng wiki will help you get Recon-ng setup with a working Docker install. Also, do some Google searching on the installing lxml on Raspberry Pi. There are known complications and possible workarounds.

@AnonPK3 I believe that will be due to missing libraries on your system:

sudo apt-get install -y i libxml2-dev libxslt1-dev

libxml install page: https://lxml.de/installation.html#installation

Having said this I'd suggest also using the Docker image, or at least a venv. python-lxml from apt can also provide the dependency.

@AnonPK3 have you edited the file recon/core/base.py ? The error reports yam1 but the module is yaml - note the 1 and l. In your original issue report this was correctly yaml. You may want to start from a clean checkout of the repo.

@0x646e78 Are you on the Recon-ng Slack? If not, please join and hit me up. I wanted to chat with you. Sign up here https://github.com/lanmaster53/recon-ng/wiki/Getting-Started#help. Thanks!