Python Error Import Unable To Open X Server
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies unable to open x server linux of this site About Us Learn more about Stack Overflow the company Business unable to open x server ssh Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question
Unable To Open X Server Import C Importimagecommand 359
_ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's
Importerror: No Module Named Requests
how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top import: unable to open X server `' @ error/import.c/ImportImageCommand/361 up vote 0 down vote favorite I am trying to run a python script to generate heatmap and clustering dendrogram. But I got an error message saying : import: unable to open X server @ error/import.c/ImportImageCommand/361 I am a new to both linux and python. So I cannot make out utterly why the error happened. Dose anyone know how to solve this problem? My OS is linux fedora. Thanks. python x-server share|improve this question edited Nov 4 '15 at 11:22 Vinz 1,213414 asked Nov 4 '15 at 10:36 sim 11 Can you tell a little bit more ? Python version, which part of your code generates that error ? etc... –Vinz Nov 4 '15 at 10:46 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote Your script is being interpreted by a shell instead of python. The shell attempts to execute the X import command and that external /usr/bin/export command prints the error. Make sure you have #!/usr/bin/env python at the top of each python executable script (not necessary for imported libraries). This causes the script to be interpreted by python. share|improve this answer answered Nov 5 '15 at 19:10 RobertL 3,670219 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using
Sign in Pricing Blog Support Search GitHub This repository Watch 37 Star 275 Fork 15 colinhowe/monner Code Issues 3 Pull requests 0 Projects 0 Pulse Graphs New issue Errors running example - import: unable to open X server `'. #5 Closed theresia opened this Issue Aug 12, 2012 · 4 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 http://unix.stackexchange.com/questions/240702/import-unable-to-open-x-server-error-import-c-importimagecommand-361 participants theresia commented Aug 12, 2012 I tried running it: tre@local [/home/tre/monner]# ./monner.py --target-output /dev/null wget http://www.google.com import: unable to open X server '.
import: unable to open X server'. ./monner.py: line 4: KILOBYTES: command not found ./monner.py: line 5: MEGABYTES: command not found ./monner.py: line 7: syntax error near unexpected token ('
https://github.com/colinhowe/monner/issues/5 ./monner.py: line 7:def _get_cpu_stats():' Owner colinhowe commented Aug 12, 2012 try: python manage.py --target-output /dev/null wget http://www.google.com Also, did you run setup.py? theresia commented Aug 12, 2012 my bad, just realized that I omitted the call to python interpreter :-/. this works: tre@local [/home/tre/monner]# python ./monner.py --target-output /dev/null wget http://www.google.com theresia closed this Aug 12, 2012 rouge8 commented Aug 12, 2012 Installed from pip, ran the example, get the following error: $ monner.py --target-output /dev/null wget http://www.google.com /home/andy/.local/bin/monner.py: line 4: KILOBYTES: command not found /home/andy/.local/bin/monner.py: line 5: MEGABYTES: command not found /home/andy/.local/bin/monner.py: line 7: syntax error near unexpected token `(' /home/andy/.local/bin/monner.py: line 7: `def _get_cpu_stats():' Doh I understand. Same problem. Owner colinhowe commented Aug 12, 2012 Hello! Latest version (as of about 2 minutes ago) just uses monner: monner --target-output /dev/null wget http://www.google.com Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API
is in directory pdf but I have https://www.pythonanywhere.com/forums/topic/1835/ an message 18:45 ~/pdf $ import odbchelperpdf: unable to open X server `' @ error/import.c/ImportImageCommand/368. other commend 18:39 ~/pdf $ python -c "odbchelper.py"Traceback (most recent https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=114830 call last): File "
Board index The team Delete all board cookies All times are UTC