question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python3.7 not working with Plotext 5.2

See original GitHub issue

Hello, I was trying your library and on the first attempt I got this message:

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import plotext as plt
  File "/home/kevin/Documents/plot/venv/lib/python3.7/site-packages/plotext/__init__.py", line 6, in <module>
    from ._core import *
  File "/home/kevin/Documents/plot/venv/lib/python3.7/site-packages/plotext/_core.py", line 10, in <module>
    from plotext._figure import _figure_class
  File "/home/kevin/Documents/plot/venv/lib/python3.7/site-packages/plotext/_figure.py", line 1, in <module>
    from plotext._default import default_figure_class
  File "/home/kevin/Documents/plot/venv/lib/python3.7/site-packages/plotext/_default.py", line 2, in <module>
    from plotext._utility import no_color
  File "/home/kevin/Documents/plot/venv/lib/python3.7/site-packages/plotext/_utility.py", line 554
    return xl, yl, *transpose(ol, len(other))
                   ^
SyntaxError: invalid syntax

I try the first example in the documentation:

import plotext as plt
y = plt.sin() # sinusoidal signal
plt.scatter(y)
plt.title("Scatter Plot")
plt.show()

My environment:

  • OS: Ubuntu
  • Python version 3.7.7

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lewoudarcommented, Sep 25, 2022

You are welcome 😃

1reaction
lewoudarcommented, Sep 25, 2022

Hi @piccolomo, it now works when installing it from git source. It just remains to add it on pypi. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

plotext - PyPI
plotext plots directly on terminal. it allows for scatter, line, bar, histogram and date-time plots (including candlestick),; it can also plot error bars, ......
Read more >
piccolomo/plotext: plotting on terminal - GitHub
plotext plots directly on terminal. it allows for scatter, line, bar, histogram and date-time plots (including candlestick),; it can also plot error bars, ......
Read more >
python - Package Python3.7 is not available - Stack Overflow
I tried doing the below steps in an official docker image of Kali Linux. It should work on the desktop as well.
Read more >
plotext - Python Package Health Analysis - Snyk
Learn more about plotext: package health score, popularity, security, maintenance, versions and more. ... No known security issues ... 5.2.8 (Latest). 5.2.8.
Read more >
Chapter 38. Installing and using Python Red Hat Enterprise ...
In Red Hat Enterprise Linux 8, Python 3 is distributed in versions 3.6, 3.8, ... command to install or run Python does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found