Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation and the latest version #435

Open
dejankocic opened this issue Feb 27, 2024 · 6 comments
Open

Documentation and the latest version #435

dejankocic opened this issue Feb 27, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@dejankocic
Copy link

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

...

Expected behavior

Same features as presented in Medium articles.

Additional context

No response

@dejankocic dejankocic added the bug Something isn't working label Feb 27, 2024
@lijulia
Copy link
Contributor

lijulia commented Feb 29, 2024

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
Copy link
Author

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
Copy link
Contributor

Kai-Qiao commented Mar 4, 2024

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
Copy link
Author

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
Copy link
Contributor

Kai-Qiao commented Mar 5, 2024

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
Copy link
Author

--version always return the expected/right version

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

Regards,
D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants