biggles icon indicating copy to clipboard operation
biggles copied to clipboard

biggles setup fails on current OSX

Open graik opened this issue 6 years ago • 4 comments

The setup instructions for OSX are now out of date. homebrew has been modified and the brew install plotutils does not any longer accept the --with-x11 option. Possibly because of this, my biggles installation stopped working and also re-installation of plotutils or biggles doesn't seem to fix it:

pip install biggles
python
Python 3.7.3 (default, Mar 27 2019, 09:23:39) 
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import biggles
>>> import numpy
>>> x = numpy.arange(0,10,0.3)
>>> p = biggles.FramedPlot()
>>> p.add( biggles.Curve(x, numpy.cos(x)) )
>>> p.show()
libplot: ignoring request to create plotter of unknown type
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/biggles/biggles.py", line 2527, in show
    self.show_x11(width, height)
  File "/usr/local/lib/python3.7/site-packages/biggles/biggles.py", line 2550, in show_x11
    with ScreenRenderer(persistent, width, height) as device:
  File "/usr/local/lib/python3.7/site-packages/biggles/libplot/renderer.py", line 491, in ScreenRenderer
    return NonInteractiveScreenRenderer(width, height)
  File "/usr/local/lib/python3.7/site-packages/biggles/libplot/renderer.py", line 439, in __init__
    parameters)
  File "/usr/local/lib/python3.7/site-packages/biggles/libplot/renderer.py", line 152, in __init__
    super(LibplotRenderer, self).__init__(type, parameters, filename)
RuntimeError: could not create plotter
>>> 

Any ideas how to fix this? Forcing recompilation didn't fix the issue either (pip install --no-binary :all: biggles)

Thanks

graik avatar Oct 06 '19 08:10 graik

Have you solved this question? I face the same challenge.

JuanaHe avatar Aug 05 '20 13:08 JuanaHe

I didn't get it to work, no.

graik avatar Aug 05 '20 14:08 graik

I don't have a mac for testing, maybe another maintainer can have a look

esheldon avatar Aug 10 '20 14:08 esheldon

This issue still persists. However, partial workaround:

(1) git clone https://github.com/biggles-plot/biggles.git (2) Edit setup.py ... comment out use_2to3=True, (3) pip install .

The installation succeeds but import fails because of a missing geometry package (next issue).

graik avatar Jun 02 '22 14:06 graik