KissPeter / APIFuzzer

Fuzz test your application using your OpenAPI or Swagger API definition without coding
GNU General Public License v3.0
417 stars 65 forks source link

Import errors when running with Python 3 #19

Closed lobax closed 4 years ago

lobax commented 5 years ago

Using Python 3 ad running pip3 install -r requirements.txt fails to install a dependency and produces the following error:

WARNING: Generating metadata for package kittyfuzzer produced metadata for project name kittyfuzzer-remote. Fix your #egg=kittyfuzzer fragments.

Which leads to the following error when running fuzzer.py with python3:

  File "fuzzer.py", line 15, in <module>
    from kitty.interfaces import WebInterface
ModuleNotFoundError: No module named 'kitty.interfaces'

The error can be reproduced with the following dockerfile and running the command docker build . -t api-fuzzer; docker run -it api-fuzzer

FROM alpine:3.7
RUN apk add --no-cache git && \
    apk add --no-cache python3 && \
    python3 -m ensurepip && \
    rm -r /usr/lib/python*/ensurepip && \
    pip3 install --upgrade pip setuptools && \
    rm -r /root/.cache
RUN git clone https://github.com/KissPeter/APIFuzzer.git /root/APIFuzzer
RUN pip3 install -r /root/APIFuzzer/requirements.txt
WORKDIR /root/APIFuzzer
ENTRYPOINT python3 fuzzer.py
KissPeter commented 5 years ago

Hi, Thank you, I will take a look on it soon.

lobax commented 4 years ago

This issues appear to have been fixed and don't occur anymore.