yoeo / guesslang

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

loosen tensorflow requirement #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 2 years ago

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

Thanks!

jossef commented 2 years 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 1 year 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!

AndydeCleyre commented 2 months ago

@syn-4ck It's been a while, but I just capped the version before a breaking change I encountered.

You could try installing this PR with pip, with a requirement:

guesslang @ git+https://github.com/andydecleyre/guesslang@tensorflow-looser
kakairesteven commented 2 weeks ago

@jossef, I have been using guess-lang-experimental (alternative to guess-lang). Is there support for tensorflow versions after 2.15.0?