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

Failure to install airodrop-ng due to PYHTONPATH env var empty #2452

Open
1 task done
Mister-X- opened this issue Feb 16, 2023 · 0 comments
Open
1 task done

Failure to install airodrop-ng due to PYHTONPATH env var empty #2452

Mister-X- opened this issue Feb 16, 2023 · 0 comments

Comments

@Mister-X-
Copy link
Collaborator

Defect Report

Issue type

  • Defect - Compilation or make check issue - Attach config.log and provide relevant system information such as lscpu - Make sure dependencies are installed

System information

  • OS Name: OpenSUSE
  • OS Version: Leap (15.4)
  • CPU: amd64

Aircrack-ng version

  • Version: 1.7
  • Commit Revision hash: 4d52bd2

Defect

Details

It happens during our Docker container build. While it isn't so much of a problem on most distro, it fails the opensuse one:

 /usr/bin/install -c -m 644 airdrop-ng.1 '/output/usr/share/man/man1'
( cd . && python3 setup.py build \
        --build-base /aircrack-ng/scripts/airdrop-ng/build \
        --verbose )
running build
running build_py
running build_scripts
( cd . && /usr/bin/mkdir -p /output/usr/local/lib/python3.6/site-packages/aircrack-ng && \
        python3 ./setup.py install \
                --prefix /output/usr \
                --record /output/usr/local/lib/python3.6/site-packages/aircrack-ng/airdrop-ng-install_files.txt \
                --verbose )
running install
Checking .pth file support in /output/usr/lib/python3.6/site-packages/
/usr/bin/python3 -E -c pass
TEST FAILED: /output/usr/lib/python3.6/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /output/usr/lib/python3.6/site-packages/

and your PYTHONPATH environment variable currently contains:

    ''

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations


Please make the appropriate changes for your system and try again.
make[4]: *** [Makefile:873: install-exec-local] Error 1
make[3]: *** [Makefile:758: install-am] Error 2
make[2]: *** [Makefile:600: install-recursive] Error 1
make[1]: *** [Makefile:668: install-recursive] Error 1
make: *** [Makefile:5376: install-recursive] Error 1

How to reproduce the issue

Run the 'Other linux' workflow. Here is an example output: https://github.com/aircrack-ng/aircrack-ng/actions/runs/4196178485/jobs/7277577698#step:4:1418

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

1 participant