Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnonPK3 opened this issue Feb 27, 2020 · 7 comments
Open

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

AnonPK3 opened this issue Feb 27, 2020 · 7 comments

Comments

@AnonPK3
Copy link

AnonPK3 commented Feb 27, 2020

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'

@lanmaster53
Copy link
Owner

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.

@AnonPK3
Copy link
Author

AnonPK3 commented Apr 7, 2020 via email

@lanmaster53
Copy link
Owner

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.

@0x646e78
Copy link

@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
Copy link
Author

AnonPK3 commented May 26, 2020 via email

@0x646e78
Copy link

0x646e78 commented May 26, 2020

@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.

@lanmaster53
Copy link
Owner

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants