Giter VIP home page Giter VIP logo

Comments (5)

georgosgeorgos avatar georgosgeorgos commented on July 28, 2024 1

There is no such issue when installing the library for standard use. I'm trying to reproduce it in development mode.

from gt4sd-core.

drugilsberg avatar drugilsberg commented on July 28, 2024

Thanks for reporting.
Here it would be great to have a stack/error trace to understand what errors exactly.
I tried a build both on Ubuntu and Mac OS X and it went through without pinning the requirements.

from gt4sd-core.

georgosgeorgos avatar georgosgeorgos commented on July 28, 2024

Installing in development mode pip install --no-deps -e . we have a problem related to the wheel version:

gt4sd-core git:(main) ✗ gt4sd-inference --algorithm_name PaccMannRL --algorithm_application PaccMannRLProteinBasedGenerator --target MVLSPADKTNVKAAWGKVGAHAGEYGAEALERMFLSFPTT --number_of_samples 10

Traceback (most recent call last):
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 579, in _build_master
ws.require(requires)
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 897, in require
needed = self.resolve(parse_requirements(requirements))
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 788, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (protobuf 3.20.1 (/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages), Requirement.parse('protobuf<3.20,>=3.9.2'), {'tensorboard'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/anaconda3/envs/gt4sd_tmp/bin/gt4sd-inference", line 33, in
sys.exit(load_entry_point('gt4sd', 'console_scripts', 'gt4sd-inference')())
File "/opt/anaconda3/envs/gt4sd_tmp/bin/gt4sd-inference", line 25, in importlib_load_entry_point
return next(matches).load()
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/importlib_metadata/init.py", line 203, in load
module = import_module(match.group('module'))
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/ggi/_otehr/gt4sd-core/src/gt4sd/cli/inference.py", line 35, in
from ..algorithms.registry import ApplicationsRegistry
File "/Users/ggi/_otehr/gt4sd-core/src/gt4sd/algorithms/init.py", line 28, in
from .conditional_generation.guacamol.core import ( # noqa: F401
File "/Users/ggi/_otehr/gt4sd-core/src/gt4sd/algorithms/conditional_generation/guacamol/init.py", line 26, in
from .core import (
File "/Users/ggi/_otehr/gt4sd-core/src/gt4sd/algorithms/conditional_generation/guacamol/core.py", line 28, in
from ....training_pipelines.core import TrainingPipelineArguments
File "/Users/ggi/_otehr/gt4sd-core/src/gt4sd/training_pipelines/init.py", line 30, in
import pkg_resources
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 3246, in
@_call_aside
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 3221, in _call_aside
f(*args, **kwargs)
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 3259, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 581, in _build_master
return cls._build_from_requirements(requires)
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 594, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/opt/anaconda3/envs/gt4sd_tmp/lib/python3.7/site-packages/pkg_resources/init.py", line 783, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'wheel>=0.26' distribution was not found and is required by tensorboard

from gt4sd-core.

georgosgeorgos avatar georgosgeorgos commented on July 28, 2024

Setting pip install wheel==0.26 and pip install protobuf==3.9.2 we can run inference.

from gt4sd-core.

drugilsberg avatar drugilsberg commented on July 28, 2024

Setting pip install wheel==0.26 and pip install protobuf==3.9.2 we can run inference.

Probably here, it's just about:

  • changing the <= to a < in this line
  • adding wheel>=0.26 in requirements.txt

from gt4sd-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.