Can't start Pycharm due to inability to detect graphics settings

3

1

I just downloaded the PyCharm IDE on my Feodra to play around with Django. I am unable to run it due to some graphics environment problem, which doesn't tell me much. I have downloaded and installed the OpenJDK as mention in Pycharm installation guide.

My graphics card is a GTX 770.

Here is the console output:

[root@localhost bin]# java -version
openjdk version "1.8.0_45"
OpenJDK Runtime Environment (build 1.8.0_45-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
[root@localhost bin]# ./pycharm.sh 
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0

Startup Error: Unable to detect graphics environment
[root@localhost bin]# 

How can I fix this?

sztyrymytyry

Posted 2015-06-14T12:01:59.483

Reputation: 33

have you tried export DISPLAY=:0.0? – sk8asd123 – 2015-10-16T18:18:28.017

Answers

3

That error is seen if no DISPLAY var is set, you wouldn't be able to run xterm for that reason either. Nothing to do with your graphics card.

Just correct your DISPLAY settings and then re-try pycharm.

The DISPLAY setting may be missing because you're trying to execute as root instead of your normal userid (assuming you are running X as your userid, not root)? Just a guess...

Dan Cornilescu

Posted 2015-06-14T12:01:59.483

Reputation: 802

where do we set that variable? – Sudip Bhandari – 2016-10-06T06:17:17.640

In the shell/terminal where you intend to launch pycharm via cmdline. – Dan Cornilescu – 2016-10-06T07:45:47.197

how to correct DISPLAY settings please be elaborate. – Deb – 2017-07-23T17:56:45.003

@Deb You can start here https://www.google.ca/?gws_rd=ssl#q=how+to+export+display

– Dan Cornilescu – 2017-07-23T22:22:17.787

1@Dan Cornilescu, I am sorry, I checked your above link , didn't find anything useful. I am also facing the same problem of can't start pycharm because of unable to detect graphics environment in fedora. – Deb – 2017-07-24T16:03:28.993

0

I had the ,Unable to detect grphic settings' issue when I tried to open pycharm remotely.

chmod +x worked for me.

Samuel

Posted 2015-06-14T12:01:59.483

Reputation: 1

0

execute it without sudo or without root account

Napy Astorga

Posted 2015-06-14T12:01:59.483

Reputation: 1

Who, what, when, why, and how? – Pimp Juice IT – 2018-03-08T00:23:31.277