Skip to content

Conversation

@amarkpayne
Copy link
Member

Motivation or Problem

fixes #2141 . The graphviz dependency requires many render libraries to work properly. Unfortunately, these dependencies are not listed by this package, so conda does not
install them in the conda environment. Instead, the system wide libraries are used if
available. On most native Linux distro like Ubuntu, these libraries are installed by default.
However, these libraries are not installed by default in WSL versions of Ubuntu. This
means that WSL users are missing dependencies that they need to run many RMG
related scripts and features.

Description of Changes

Updated WSL installation documentation to prompt user to install the graphviz package system wide. This is preferred over figuring out which dependencies graphviz needs that
are not currently installed by default, as these could change over time. In an ideal world
conda would deal with this for us, but the graphviz conda package does not do this, though
there appears to be some future work towards this end (see the discussion in #2141).

Testing

I have confirmed that this solution works in a fresh WSL install, and this also fixed the
user's problem in #2141. I have also built the documentation locally to ensure the changes
look as desired.

Reviewer Note

libxrender1 is a dependency of graphviz, and thus installed
together.

@codecov
Copy link

codecov bot commented May 28, 2021

Codecov Report

Merging #2144 (433a403) into master (7a4bdee) will increase coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2144      +/-   ##
==========================================
+ Coverage   47.39%   47.45%   +0.06%     
==========================================
  Files          89       89              
  Lines       23995    23995              
  Branches     6258     6258              
==========================================
+ Hits        11372    11387      +15     
+ Misses      11418    11407      -11     
+ Partials     1205     1201       -4     
Impacted Files Coverage Δ
arkane/kinetics.py 12.24% <0.00%> (ø)
rmgpy/molecule/draw.py 53.26% <0.00%> (+1.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a4bdee...433a403. Read the comment docs.

jonwzheng
jonwzheng previously approved these changes Jun 3, 2021
Copy link
Contributor

@jonwzheng jonwzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed that this fixes the dependency issue pointed out in #2141 in WSL 1, in addition to the 2 confirmations in the same thread that this works for WSL 2.

@amarkpayne
Copy link
Member Author

Thanks for the review @jonwzheng ! I'll rebase to update this branch. If you don't mind approving this PR after the test pass again, I'll merge this in

The graphviz conda package does not supply these dependencies, so
they have to be installed manually or system wide. Since these
dependencies could change over time, it is easier to install this
system wide rather than constantly update the dependency list on
our end.

Note: libxrender1 is a dependency of graphviz, and thus installed
together.
Copy link
Contributor

@jonwzheng jonwzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(duplicate of above review) - Confirmed that this fixes the dependency issue pointed out in #2141 in WSL 1, in addition to the 2 confirmations in the same thread that this works for WSL 2.

@amarkpayne amarkpayne merged commit 6fc3c5e into master Jun 3, 2021
@amarkpayne amarkpayne deleted the wsl_install_deps branch June 3, 2021 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"graphviz/libgvplugin_pango.so.6" - file not found" missing dependency on WSL installations

3 participants