fossology / atarashi

Atarashi scans for license statements in open source software, focusing on text statistics. Designed to work stand-alone and with FOSSology.
http://fossology.github.io/atarashi
GNU General Public License v2.0
26 stars 23 forks source link

Build fails due to import error from nirjas #92

Closed xavierfigueroav closed 2 years ago

xavierfigueroav commented 2 years ago

I get the following error:

Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    from atarashi.build_deps import download_dependencies
  File "/home/xavierfigueroav/Documents/atarashi-project/atarashi/atarashi/build_deps.py", line 32, in <module>
    from atarashi.license.licensePreprocessor import LicensePreprocessor
  File "/home/xavierfigueroav/Documents/atarashi-project/atarashi/atarashi/license/licensePreprocessor.py", line 31, in <module>
    from atarashi.libs.commentPreprocessor import CommentPreprocessor
  File "/home/xavierfigueroav/Documents/atarashi-project/atarashi/atarashi/libs/commentPreprocessor.py", line 30, in <module>
    from nirjas import extract as commentExtract, LanguageMapper
ImportError: cannot import name 'LanguageMapper' from 'nirjas' (/home/xavierfigueroav/Documents/atarashi-project/atarashi/.env/lib/python3.8/site-packages/nirjas/__init__.py)

This happens when running python setup.py build, after cloning the repository and installing the dependencies.

GMishx commented 2 years ago

Just fixed the thing in Nirjas. Please install the latest version 1.0.1 and try again.