logo
down
shadow

Error in setting up mitmproxy on alpine 3.9


Error in setting up mitmproxy on alpine 3.9

By : Ashraf Hassan
Date : November 29 2020, 12:01 PM
wish help you to fix your issue I am using alpine 3.9, and setting up mitmproxy on it.(https://github.com/danielguerra69/alpine-mitmproxy/blob/master/Dockerfile) Dockerfile : , the solution would be to use python3 instead of python2:
code :
FROM alpine:3.9
RUN apk --update --no-cache add py3-pip ca-certificates gcc libffi-dev python3-dev musl-dev openssl-dev g++ libxml2-dev\
 libxslt-dev libjpeg-turbo-dev zlib-dev tshark
RUN pip3 install --upgrade pip
RUN pip3 install mitmproxy
COPY bin /bin
ENV LANG=en_US.UTF-8
VOLUME /root/.mitmproxy
EXPOSE 8080
CMD ["mitmproxy"]


Share : facebook icon twitter icon
Error installing mitmproxy

Error installing mitmproxy


By : Muhammad Ridhwaan
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , You need to figure out where to obtain xslt-config, and install that first.
mitmproxy installation error

mitmproxy installation error


By : Rafael Mendoza
Date : March 29 2020, 07:55 AM
To fix this issue That error seems to indicate that mitmproxy is not compatible with python 2.6.x. I assume that syntax is new for 2.7.x or something like that.
That line doesn't work for me in 2.4.3 or 2.6.6 but does in 2.7.8.
MitmProxy cannot start in Ubuntu: Error starting proxy server: error(98, 'Address already in use')

MitmProxy cannot start in Ubuntu: Error starting proxy server: error(98, 'Address already in use')


By : ivan garcia
Date : March 29 2020, 07:55 AM
Hope that helps mitmproxy defaults to port 8080, so this looks like you already have an application running on port 8080.
Error: mitmproxy requires Python 3.5 or above

Error: mitmproxy requires Python 3.5 or above


By : Becki Yore
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , Try to install it in a new clean virtual environment with clear dependencies:
code :
$ mkvirtualenv mitmproxy
$ pip install mitmproxy
$ mitmproxy --host
usage: mitmproxy [options]
mitmproxy: error: unrecognized arguments: --host
$ mitmproxy --help
Setting and using environment variable in docker alpine in the same line in shell

Setting and using environment variable in docker alpine in the same line in shell


By : user3159948
Date : March 29 2020, 07:55 AM
will help you I want to set and use the environment variable in alpine shell in the following manner , Use -e or --env option in docker run:
code :
docker run --rm -it -e MY_VAR=mytext alpine:latest /bin/sh -c 'echo "$MY_VAR"'
mytext
docker run --rm -it alpine:latest /bin/sh -c 'MY_VAR=mytext; echo "$MY_VAR"'
version: "3.7"
services:
  tree:
    environment:
      - MY_VAR=mytext
    image: alpine:latest
    container_name: alpine
    entrypoint:
      - /bin/ash
      - -c
      - 'echo $$MY_VAR'
docker-compose -f docker-compose.yml up
Recreating alpine ... done
Attaching to alpine
alpine  | mytext
alpine exited with code 0
Related Posts Related Posts :
  • Tuning the hyperparameter with gridsearch results in overfitting
  • some coordinates that I extracted from geocoder in Python are not saving in the variable I created
  • 7C in cs circles- python Im not sure what is wrong with this yet
  • How to fix 'AttributeError: 'list' object has no attribute 'shape'' error in python with Tensorflow / Keras when loading
  • python - thread`s target is a method of an object
  • Retrieve Variable From Class
  • What is the reason for matplotlib for printing labels multiple times?
  • Why would people use ThreadPoolExecutor instead of direct function call?
  • When clear_widgets is called, it doesnt remove screens in ScreenManager
  • Python can't import function
  • Pieces doesn't stack after one loop on my connect4
  • How to change font size of all .docx document with python-docx
  • How to store a word with # in .cfg file
  • How to append dictionaries to a dictionary?
  • How can I scrape text within paragraph tag with some other tags then within the paragraph text?
  • Custom entity ruler with SpaCy did not return a match
  • Logging with two handlers - one to file and one to stderr
  • How to do pivot_table in dask with aggfunc 'min'?
  • This for loop displays only the last entry of the student record
  • How to split a string by a specific pattern in number of characters?
  • Python 3: how to scrape research results from a website using CSFR?
  • Setting the scoring parameter of RandomizedSeachCV to r2
  • How to send alert or message from view.py to template?
  • How to add qml ScatterSeries to existing qml defined ChartView?
  • Django + tox: Apps aren't loaded yet
  • My css and images arent showing in django
  • Probability mass function sum 2 dice roll?
  • Cannot call ubuntu 'ulimit' from python subprocess without using shell option
  • Dataframe Timestamp Filter for new/repeating value
  • Problem with clicking select2 dropdownlist in selenium
  • pandas dataframe masks to write values into new column
  • How to click on item in navigation bar on top of page using selenium python?
  • Add multiple EntityRuler with spaCy (ValueError: 'entity_ruler' already exists in pipeline)
  • error when replacing missing ')' using negative look ahead regex in python
  • Is there a way to remove specific strings from indexes using a for loop?
  • select multiple tags by position in beautifulSoup
  • pytest: getting AttributeError: 'CaptureFixture' object has no attribute 'readouterror' capturing stdout
  • Shipping PyGObject/GTK+ app on Windows with MingW
  • Python script to deduplicate lines in multiple files
  • How to prevent window and widgets in a pyqt5 application from changing size when the visibility of one widget is altered
  • How to draw stacked bar plot from df.groupby('feature')['label'].value_counts()
  • Python subprocess doesn't work without sleep
  • How can I adjust 'the time' in python with module Re
  • Join original np array with resulting np array in a form of dictionary? multidimensional array? etc?
  • Forcing labels on histograms in each individual graph in a figure
  • For an infinite dataset, is the data used in each epoch the same?
  • Is there a more efficent way to extend a string?
  • Is it possible to do this loop in a one-liner?
  • invalid literal for int() with base 10: - django
  • Why does my code print a value that I have not assigned as yet?
  • the collatz func in automate boring stuff with python
  • How to find all possible combinations of parameters and funtions
  • about backpropagation deep neural network in tensorflow
  • Sort strings in pandas
  • How do access my flask app hosted in docker?
  • Replace the sentence include some text with Python regex
  • Counting the most common element in a 2D List in Python
  • logout a user from the system using a function in python
  • mp4 metadata not found but exists
  • Django: QuerySet with ExpressionWrapper
  • shadow
    Privacy Policy - Terms - Contact Us © festivalmusicasacra.org