{"action":"created","issue":{"url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/792","repository_url":"https://api.github.com/repos/Qiskit/qiskit-terra","labels_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/792/comments","events_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/792/events","html_url":"https://github.com/Qiskit/qiskit-terra/issues/792","id":351761201,"node_id":"MDU6SXNzdWUzNTE3NjEyMDE=","number":792,"title":"Detail more  latex error messages when plotting circuit.","user":{"login":"Scinawa","id":2940017,"node_id":"MDQ6VXNlcjI5NDAwMTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2940017?v=4","gravatar_id":"","url":"https://api.github.com/users/Scinawa","html_url":"https://github.com/Scinawa","followers_url":"https://api.github.com/users/Scinawa/followers","following_url":"https://api.github.com/users/Scinawa/following{/other_user}","gists_url":"https://api.github.com/users/Scinawa/gists{/gist_id}","starred_url":"https://api.github.com/users/Scinawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scinawa/subscriptions","organizations_url":"https://api.github.com/users/Scinawa/orgs","repos_url":"https://api.github.com/users/Scinawa/repos","events_url":"https://api.github.com/users/Scinawa/events{/privacy}","received_events_url":"https://api.github.com/users/Scinawa/received_events","type":"User","site_admin":false},"labels":[{"id":933835141,"node_id":"MDU6TGFiZWw5MzM4MzUxNDE=","url":"https://api.github.com/repos/Qiskit/qiskit-terra/labels/priority:%20low","name":"priority: low","color":"0e8a16","default":false},{"id":552526583,"node_id":"MDU6TGFiZWw1NTI1MjY1ODM=","url":"https://api.github.com/repos/Qiskit/qiskit-terra/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-17T22:51:14Z","updated_at":"2018-08-21T17:30:27Z","closed_at":null,"author_association":"NONE","body":"<!-- ⚠️ If you do not respect this template, your issue will be closed -->\r\n<!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. -->\r\n\r\n### What is the expected enhancement?\r\nI would expect to have more debug information for errors in the generation of circuits plotted by qiskit.\r\nFor instance, I would like to know that the name i gave to a register contain unallowed character, instead of guessing.\r\nInstead I received a generic \"is Qcircuit library installed?\" error. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/comments/414756575","html_url":"https://github.com/Qiskit/qiskit-terra/issues/792#issuecomment-414756575","issue_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/792","id":414756575,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDc1NjU3NQ==","user":{"login":"mtreinish","id":2447371,"node_id":"MDQ6VXNlcjI0NDczNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/2447371?v=4","gravatar_id":"","url":"https://api.github.com/users/mtreinish","html_url":"https://github.com/mtreinish","followers_url":"https://api.github.com/users/mtreinish/followers","following_url":"https://api.github.com/users/mtreinish/following{/other_user}","gists_url":"https://api.github.com/users/mtreinish/gists{/gist_id}","starred_url":"https://api.github.com/users/mtreinish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtreinish/subscriptions","organizations_url":"https://api.github.com/users/mtreinish/orgs","repos_url":"https://api.github.com/users/mtreinish/repos","events_url":"https://api.github.com/users/mtreinish/events{/privacy}","received_events_url":"https://api.github.com/users/mtreinish/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T17:30:27Z","updated_at":"2018-08-21T17:30:27Z","author_association":"CONTRIBUTOR","body":"@delapuente I actually would say this isn't really related to #601.\r\n\r\n The fundamental issue here is that when we subprocess out to call pdflatex here: https://github.com/Qiskit/qiskit-terra/blob/master/qiskit/tools/visualization/_circuit_visualization.py#L282-L291 we don't do anything with the actual output from the pdflatex command. Instead we just assume that the error is because pdflatex isn't installed and print the message @Scinawa is referring to.\r\n\r\nThe fix here would be probably to just print the pdflatex output on error (or alternatively write it to a log file since pdflatex is fairly verbose) so that there is actually debug info on what went wrong."}}
{"actor":{"display_login":"mtreinish"}}