vmware / data-annotator-for-machine-learning

Data annotator for machine learning allows you to centrally create, manage and administer annotation projects for machine learning
Apache License 2.0
60 stars 22 forks source link

Documentation and the latest version #435

Open dejankocic opened 8 months ago

dejankocic commented 8 months ago

Describe the bug

Hello,

From what I have read and seen in yours Medium articles, comparing with docker images I download for trying your tool, I can see different things. Typical example of differentiation between 2 versions is availability of projects list screen. In my version I don't have this. Please check the screenshots I uploaded from what I can see in the version I got with docker images. Are versions available on docker images and the one from building the code the same? Untitled

Reproduction steps

1. 2. 3. ...

Expected behavior

Same features as presented in Medium articles.

Additional context

No response

lijulia commented 8 months ago

Hi @dejankocic, Thanks for the feedback and sorry for the confusion. The medium article was published when DAML v1.0 was released but the docker images are based on release v3.0. We have improved the UI/UX and added some new features in release v3.0, so that is why you are seeing the UI differences. We have made some minor bug fixes and enhanced QnA project since we released the docker images (v3.0). So, if you want to use the new QnA feature, you can install DAML from source code. We do have a plan to release new docker images soon.

dejankocic commented 8 months ago

Hi and thank you very much for your response. I tried to building new features from the source code, but there are difficulties with building active-learning-service due to dependency on the enlisted Python versions. Even thou I have installed required Python version, I am getting the following error message:

x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.c numpy/core/src/multiarray/scalartypes.c.src: In function ‘unicodetype_repr’: numpy/core/src/multiarray/scalartypes.c.src:475:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 475 | ip = dptr = Py@Name@AS@NAME@(self); | ^~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from numpy/core/src/multiarray/scalartypes.c.src:3: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~ numpy/core/src/multiarray/scalartypes.c.src:476:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

……

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> numpy

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]

Any idea?

Thx, Dejan

Kai-Qiao commented 8 months ago

Hi @dejankocic I noticed that you are using Python3.10, as some modules not support well with that version, you can see from DAML's build document python3.10 is not supported, you can use Python version 3.7 that's runs well at along time https://github.com/Joe-Poc/GITHUB_ACTIONS_POC/actions/runs/8134926267/job/22228580744

dejankocic commented 8 months ago

Hi, Indeed this particular build was on Python3.10, but this was just to present you the error message which is the same as with 3.7. Indeed, in the documentation is well pointed out Python supported versions.

Kai-Qiao commented 8 months ago

Does your local Python 3.7 have the same error? If so I guess you don't change the path version successfully. double-check the Python version using python --version

There is a multiple Python version management software called Pyenv, which can easily change Python version for local dev, you can reference:

  1. https://github.com/pyenv/pyenv
  2. https://realpython.com/intro-to-pyenv/#using-pyenv-to-install-python

Use the correct Python version then create a virtual Python environment in the project's root folder after that, will not affect your system's Python libs

cd active-learning-service
#out put should be python 3.7.x mine Python 3.7.10,  using python or python3 according to your python alias
python --version 

python -m venv .venv   # windows: py -3 -m venv .venv
. .venv/bin/activate    # windows: .venv\Scripts\activate

python -m pip install --upgrade pip
pip install -r requirements.txt
python manage.py runserver localhost:8000
dejankocic commented 8 months ago

--version always return the expected/right version

Thank you very much for your responses. Will check the rest.

Regards, D.