{"action":"created","issue":{"url":"https://api.github.com/repos/plotly/orca/issues/131","repository_url":"https://api.github.com/repos/plotly/orca","labels_url":"https://api.github.com/repos/plotly/orca/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/plotly/orca/issues/131/comments","events_url":"https://api.github.com/repos/plotly/orca/issues/131/events","html_url":"https://github.com/plotly/orca/issues/131","id":360593766,"node_id":"MDU6SXNzdWUzNjA1OTM3NjY=","number":131,"title":"xvfb-run: error: Xvfb failed to start","user":{"login":"lobachevzky","id":10344742,"node_id":"MDQ6VXNlcjEwMzQ0NzQy","avatar_url":"https://avatars2.githubusercontent.com/u/10344742?v=4","gravatar_id":"","url":"https://api.github.com/users/lobachevzky","html_url":"https://github.com/lobachevzky","followers_url":"https://api.github.com/users/lobachevzky/followers","following_url":"https://api.github.com/users/lobachevzky/following{/other_user}","gists_url":"https://api.github.com/users/lobachevzky/gists{/gist_id}","starred_url":"https://api.github.com/users/lobachevzky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobachevzky/subscriptions","organizations_url":"https://api.github.com/users/lobachevzky/orgs","repos_url":"https://api.github.com/users/lobachevzky/repos","events_url":"https://api.github.com/users/lobachevzky/events{/privacy}","received_events_url":"https://api.github.com/users/lobachevzky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-16T02:15:45Z","updated_at":"2018-09-17T19:53:36Z","closed_at":null,"author_association":"NONE","body":"I am able to reproduce the error with the following minimal code:\r\n```\r\nimport plotly.io as pio\r\nimport numpy as np\r\nimport plotly.graph_objs as go\r\n\r\n\r\nN = 100\r\nx = np.random.rand(N)\r\ny = np.random.rand(N)\r\ncolors = np.random.rand(N)\r\nsz = np.random.rand(N)*30\r\n\r\nfig = go.Figure()\r\nfig.add_scatter(x=x,\r\n                y=y,\r\n                mode='markers',\r\n                marker={'size': sz,\r\n                        'color': colors,\r\n                        'opacity': 0.6,\r\n                        'colorscale': 'Viridis'})\r\n\r\npio.write_image(fig, 'plot.png')\r\n```\r\nTo which I get the following error:\r\n```\r\n❯ python orca_bug.py \r\nTraceback (most recent call last):\r\n  File \"orca_bug.py\", line 21, in <module>\r\n    pio.write_image(fig, 'plot.png')\r\n  File \"/home/ethanbro/virtualenvs/598/lib/python3.6/site-packages/plotly/io/_orca.py\", line 1492, in write_image\r\n    validate=validate)\r\n  File \"/home/ethanbro/virtualenvs/598/lib/python3.6/site-packages/plotly/io/_orca.py\", line 1263, in to_image\r\n    ensure_server()\r\n  File \"/home/ethanbro/virtualenvs/598/lib/python3.6/site-packages/plotly/io/_orca.py\", line 1134, in ensure_server\r\n    validate_executable()\r\n  File \"/home/ethanbro/virtualenvs/598/lib/python3.6/site-packages/plotly/io/_orca.py\", line 1001, in validate_executable\r\n    returncode=p.returncode))\r\nValueError: \r\nThe orca executable is required in order to export figures as static images,\r\nbut the executable that was found at '/usr/local/bin/orca'\r\ndoes not seem to be a valid plotly orca executable. Please refer to the end of\r\nthis message for details on what went wrong.\r\n\r\nIf you haven't installed orca yet, you can do so using conda as follows:\r\n\r\n    $ conda install -c plotly plotly-orca\r\n\r\nAlternatively, see other installation methods in the orca project README at\r\nhttps://github.com/plotly/orca.\r\n\r\nAfter installation is complete, no further configuration should be needed. \r\n\r\nIf you have installed orca, then for some reason plotly.py was unable to\r\nlocate it. In this case, set the `plotly.io.orca.config.executable`\r\nproperty to the full path of your orca executable. For example:\r\n\r\n    >>> plotly.io.orca.config.executable = '/path/to/orca'\r\n\r\nAfter updating this executable property, try the export operation again.\r\nIf it is successful then you may want to save this configuration so that it\r\nwill be applied automatically in future sessions. You can do this as follows:\r\n\r\n    >>> plotly.io.orca.config.save() \r\n\r\nIf you're still having trouble, feel free to ask for help on the forums at\r\nhttps://community.plot.ly/c/api/python\r\n\r\nAn error occurred while trying to get the version of the orca executable.\r\nHere is the command that plotly.py ran to request the version\r\n    $ /usr/local/bin/orca --version\r\n\r\nThis command returned the following error:\r\n\r\n[Return code: 1]\r\nxvfb-run: error: Xvfb failed to start\r\n```\r\nI am running headless so I use `xvfb-run`:\r\n```\r\n❯ cat $(which orca)\r\n#!/bin/zsh\r\n\r\nxvfb-run /usr/local/lib/node_modules/orca/orca-1.1.1-x86_64.AppImage \"$@\"\r\n```\r\nUsing Ubuntu 18:\r\n```\r\n❯ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 18.04.1 LTS\r\nRelease:\t18.04\r\nCodename:\tbionic\r\n```\r\nWeirdly, I do not get the error when I run ` /usr/local/bin/orca --version`:\r\n```\r\n❯  /usr/local/bin/orca --version\r\ndesktop-file-install is missing. Skipping /tmp/.mount_orca-1Pimrny/AppRun.\r\n1.1.1\r\n```\r\nNot sure what the other stuff is about.\r\n"},"comment":{"url":"https://api.github.com/repos/plotly/orca/issues/comments/422147933","html_url":"https://github.com/plotly/orca/issues/131#issuecomment-422147933","issue_url":"https://api.github.com/repos/plotly/orca/issues/131","id":422147933,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjE0NzkzMw==","user":{"login":"etpinard","id":6675409,"node_id":"MDQ6VXNlcjY2NzU0MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/6675409?v=4","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T19:53:36Z","updated_at":"2018-09-17T19:53:36Z","author_association":"MEMBER","body":"and what about `$ which orca`?"}}
{"actor":{"display_login":"etpinard"}}