Coder Social home page Coder Social logo

Comments (5)

ChenglongMa avatar ChenglongMa commented on June 12, 2024

Hi @vittoria-thomasini,

Thanks for your feedback. I have noticed this bug, and I will fix it soon.
If you don't mind, you can clone the source code to your local device and run:

python ./path/to/SkinToneClassifier/src/stone/__main__.py -i ...<other parameters>

I will let you know once I fix the bug.

Thanks!

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on June 12, 2024

Hi @vittoria-thomasini,

I tested the installation steps in some different sandboxes, but they did not pop up the error message.

According to your cmd message, the first line Defaulting to user installation because normal site-packages is not writeable says SkinToneClassifier cannot be installed in the default site-packages. Instead, it was installed in c:\users\appdata\roaming\python\python39\site-packages.

Well, it can cause the error that stone cannot be found, because c:\users\appdata\roaming\python\python39\site-packages may not be in the system PATH.

So, please do the following steps to fix it:

  1. Open c:\users\appdata\roaming\python\python39\site-packages and check if there is a file named stone.exe;
  2. If so, please add c:\users\appdata\roaming\python\python39\site-packages to your system environment path;
    You can refer to this link to add it: https://stackoverflow.com/a/69912527/8860079. Just change their path to c:\users\appdata\roaming\python\python39\site-packages;
  3. If there is no such file or you don't want to touch the environment variable, you can run pip install... command with administrative privileges.

Hope this can help you.
Thanks.

from skintoneclassifier.

XiaoWen1227 avatar XiaoWen1227 commented on June 12, 2024

Hey @ChenglongMa,

I have the same issue, i successfully installed it, but I still unable to use the "stone" command, anything i did wrong?

Requirement already satisfied: skin-tone-classifier in c:\users\stude\anaconda3\lib\site-packages (0.2.2)
Requirement already satisfied: opencv-python>=4.6.0.66 in c:\users\stude\anaconda3\lib\site-packages (from skin-tone-classifier) (4.8.0.74)
Requirement already satisfied: numpy>=1.21.5 in c:\users\stude\anaconda3\lib\site-packages (from skin-tone-classifier) (1.21.5)
Requirement already satisfied: colormath>=3.0.0 in c:\users\stude\anaconda3\lib\site-packages (from skin-tone-classifier) (3.0.0)
Requirement already satisfied: tqdm>=4.64.0 in c:\users\stude\anaconda3\lib\site-packages (from skin-tone-classifier) (4.64.1)
Requirement already satisfied: networkx>=2.0 in c:\users\stude\anaconda3\lib\site-packages (from colormath>=3.0.0->skin-tone-classifier) (2.8.4)
Requirement already satisfied: colorama in c:\users\stude\anaconda3\lib\site-packages (from tqdm>=4.64.0->skin-tone-classifier) (0.4.6)

appreciated for help

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on June 12, 2024

Hi @XiaoWen1227,

Thanks for your feedback!

I repeated the installation step in a new environment but did not reproduce the same error.

According to the message, you seem to have installed the library in the base environment of anaconda.

Please do the following checks to verify the installation:

  1. Please ensure you entered the base environment before running the stone command;
  2. Please check whether there is a stone.exe file located in C:\Users\stude\anaconda3\Scripts;
  3. Please run the stone command in Anaconda Powershell Prompt rather than Anaconda Prompt;

Please let me know if you have any updates after the above steps.

Thanks!

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on June 12, 2024

With no more responses, close the issue for now.
We'll be happy to reopen the issue when more information is provided.

from skintoneclassifier.

Related Issues (10)

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.