Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with plotnine #51

Closed
p-stehlik opened this issue Nov 17, 2023 · 1 comment
Closed

Not working with plotnine #51

p-stehlik opened this issue Nov 17, 2023 · 1 comment

Comments

@p-stehlik
Copy link

p-stehlik commented Nov 17, 2023

Hi I keep getting this error:

ValueError: invalid version number '0.12.1.post29+gef5650c'

My plotnine version is

I'm not sure what the issue is 0.12.3

Thanks.

@p-stehlik
Copy link
Author

12 discussionPlot = plotBars("Discussion")
13 otherPlot = plotBars("Other")
---> 18 g1 = pw.load_ggplot(titlePlot, figsize=(2,3))
19 g2 = pw.load_ggplot(abstractPlot, figsize=(2,3))
20 g3 = pw.load_ggplot(introPlot, figsize=(2,3))

File c:\Users\s2997324\AppData\Local\anaconda3\lib\site-packages\patchworklib\patchworklib.py:461, in load_ggplot(ggplot, figsize)
459 import plotnine
460 plotnine_version = plotnine.version
--> 461 if StrictVersion(plotnine_version) >= StrictVersion("0.12"):
462 overwrite_plotnine()
464 #save_original_position

File c:\Users\s2997324\AppData\Local\anaconda3\lib\site-packages\setuptools_distutils\version.py:54, in Version.init(self, vstring)
52 def init(self, vstring=None):
53 if vstring:
---> 54 self.parse(vstring)
55 warnings.warn(
56 "distutils Version classes are deprecated. "
57 "Use packaging.version instead.",
58 DeprecationWarning,
59 stacklevel=2,
...
--> 157 raise ValueError("invalid version number '%s'" % vstring)
159 (major, minor, patch, prerelease, prerelease_num) = match.group(1, 2, 4, 5, 6)
161 if patch:

ValueError: invalid version number '0.12.1.post29+gef5650c'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants