yoeo / guesslang

Detect the programming language of a source code
https://guesslang.readthedocs.io
MIT License
773 stars 110 forks source link

loosen tensorflow requirement up to and excluding next major version #62

Open AndydeCleyre opened 2 years ago

AndydeCleyre commented 2 years ago
jossef commented 2 years ago

@yoeo @larshp

please merge and release on pypi

larshp commented 2 years ago

<- wrong user..

cmcdougall commented 1 year ago

@yoeo - any update on when this will be available on pypi?

Thanks!

jossef commented 1 year ago

https://pypi.org/project/guesslang-experimental as a workaround for now until this is merged

exhuma commented 1 year ago

If the project remains abandoned for over 12 months, you may be able to report it to the PYPA and request a takeover. As long as you can prove that you have tried to contact the original authors without response.

syn-4ck commented 9 months ago

Hi @jossef, for me this workaround is not working (using your pypi package). It seems that there are a problem with tensorflow dependency:

Traceback (most recent call last):
  File "/home/julian/workspace/.../src/main.py", line 7, in <module>
    from core.technology_detection.detect_technologies import detect_technologies
  File "/home/julian/workspace/.../src/core/technology_detection/detect_technologies.py", line 2, in <module>
    from guesslang import Guess
  File "/home/julian/workspace/.../.venv/lib/python3.10/site-packages/guesslang/__init__.py", line 16, in <module>
    from guesslang.guess import Guess, GuesslangError  # noqa: F401
  File "/home/julian/workspace/.../.venv/lib/python3.10/site-packages/guesslang/guess.py", line 10, in <module>
    from guesslang import model
  File "/home/julian/workspace/.../.venv/lib/python3.10/site-packages/guesslang/model.py", line 13, in <module>
    from tensorflow.python.training.tracking.tracking import AutoTrackable
ModuleNotFoundError: No module named 'tensorflow.python.training.tracking'

Could you help me?

Regards!