ersilia-os / zaira-chem

Automated QSAR based on multiple small molecule descriptors
GNU General Public License v3.0
27 stars 10 forks source link

Stylia import small bugfix #15

Closed GemmaTuron closed 1 year ago

GemmaTuron commented 1 year ago

Describe the bug Installing ZairaChem pops an error due to Stylia:

File "/home/gturon/github/ersilia-os/zaira-chem/zairachem/cli/__init__.py", line 1, in <module> from .create_cli import create_cli File "/home/gturon/github/ersilia-os/zaira-chem/zairachem/cli/create_cli.py", line 1, in <module> from .cmd import Command File "/home/gturon/github/ersilia-os/zaira-chem/zairachem/cli/cmd.py", line 5, in <module> from .commands.report import report_cmd File "/home/gturon/github/ersilia-os/zaira-chem/zairachem/cli/commands/report.py", line 7, in <module> from ...reports.report import Reporter File "/home/gturon/github/ersilia-os/zaira-chem/zairachem/reports/__init__.py", line 8, in <module> from stylia import TWO_COLUMNS_WIDTH ImportError: cannot import name 'TWO_COLUMNS_WIDTH' from 'stylia' (/home/gturon/anaconda3/envs/zairachem/lib/python3.7/site-packages/stylia/__init__.py)

Manually cloning and installing Stylia in the zairachem environment solves the issue

To Reproduce Steps to reproduce the behavior:

  1. Clone ZairaChem Repo
  2. Install Zairachem following the instructions
  3. run zairachem --help

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

miquelduranfrigola commented 1 year ago

This has been resolved. Stylia is now directly installed from github.