Giter VIP home page Giter VIP logo

Comments (17)

CodeSaint98 avatar CodeSaint98 commented on May 31, 2024 1

Create a virtual environment with the python version specified. Then install the requirements.

from watermark-remover.

whitelok avatar whitelok commented on May 31, 2024

from watermark-remover.

kmurf1999 avatar kmurf1999 commented on May 31, 2024

I'm getting this error as well

from watermark-remover.

arthurwolf avatar arthurwolf commented on May 31, 2024

I have the same issue too, I have the right python version and the requirements install fine.

from watermark-remover.

CodeSaint98 avatar CodeSaint98 commented on May 31, 2024

I had the same issue initially. I solved it by creating a virtual environment with conda and running it in that.
The command: conda create -n myenv python=3.6.5
You can reference it here: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#deactivating-an-environment

from watermark-remover.

KR1470R avatar KR1470R commented on May 31, 2024

Thanks for answers.
I fixed this problem by decompile .pyc files to .py using util uncompyle6 and just work with them.
And yes, author, why do you compile files to .pyc? What's the catch?

from watermark-remover.

vantinhuynh avatar vantinhuynh commented on May 31, 2024

@KR1470R Can you details about your solution?
I tried to install uncompyle6 but it does not work.

from watermark-remover.

vantinhuynh avatar vantinhuynh commented on May 31, 2024

I pull the docker image and I can run the command inside docker
"python3 main.pyc --mode train --dataset demo --iters 3 --watermark_threshold 0.6 --save_result true"
But I always got killed

image

from watermark-remover.

KR1470R avatar KR1470R commented on May 31, 2024

@vantinhuynh What's a problem with uncompyle6?
Example usage:
uncompyle6 utils.cpython-38.pyc > utils.py

from watermark-remover.

arthurwolf avatar arthurwolf commented on May 31, 2024

@vantinhuynh I can install the docker image, but then do not know how/where to actually run the code, can you give the steps you used?

@CodeSaint98 When you say create the environment, exactly what do you mean, what commands did you use exactly?

conda create -n myenv python=3.6.5
zsh: command not found: conda

Thanks a lot, just trying to get this to work, and am a bit lost, would appreciate any help.

from watermark-remover.

CodeSaint98 avatar CodeSaint98 commented on May 31, 2024

@arthurwolf Make sure that you've installed Anaconda properly on your system first. You can refer this link: https://docs.anaconda.com/anaconda/install/.
If you did install Anaconda and you're still facing this error refer this link: https://stackoverflow.com/questions/31615322/zsh-conda-pip-installs-command-not-found.
You don't have to use Anaconda to create the virtual environment. You can use anything as long as it creates an environment with the specified python version. This bad number error occurs because the compiler the original author used to compile his code to .pyc is different from the one you're using. Decompiling it and then compiling it with your compiler also works but its a bit too long a method when you can just implement a virtual environment.

from watermark-remover.

vantinhuynh avatar vantinhuynh commented on May 31, 2024

@KR1470R KR
It is ok with me know

@arthurwolf ar
You must rewrite Dockerfile

FROM whitelok/watermark-remover:v1.0

RUN apt-get update
RUN apt-get install apache2 -y
RUN rm -rf /root/watermark-remover/*
RUN git clone https://github.com/whitelok/watermark-remover.git
RUN chmod 755 /root/watermark-remover/watermark-remover/train.sh
WORKDIR /root/watermark-remover/watermark-remover
EXPOSE 80
CMD apachectl -D FOREGROUND

And then run docker build
Next Start the container with the new images has just been built above
Next Access inside docker container and run above command

from watermark-remover.

arthurwolf avatar arthurwolf commented on May 31, 2024

@vantinhuynh I have zero idea what «Access inside docker container and run above command« means...

from watermark-remover.

arthurwolf avatar arthurwolf commented on May 31, 2024

I managed to get it to work with conda, thanks for the help. Still would like to know how to use it through docker as that'd be easier to deploy ultimately.

from watermark-remover.

vantinhuynh avatar vantinhuynh commented on May 31, 2024

@arthurwolf

  1. docker run -d --name watermark your_docker_image_after_build
  2. docker exec -it watermark /bin/bash

from watermark-remover.

KR1470R avatar KR1470R commented on May 31, 2024

@vantinhuynh Thank you.
However, i did decompiled .pyc files because change some behavior of this program for my case.

from watermark-remover.

whitelok avatar whitelok commented on May 31, 2024

Thanks for someone's suggestion. ALL CODE IN THIS WILL BE DELETE FOREVER. So no support anymore.

Closing

from watermark-remover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.