I have installed Atom and the platformio-atom-ide-terminal package.But the terminal screen is blank and I not getting "Windows powershell prompt" or directory path.I am running a simple Python code.
Python Version: Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
Atom version:1.34.0
I tried changing the setting.
Map Terminal:File.Working directory:Active file.PFB
Screenshots:
Related
I am trying to launch jconsole on Ubuntu 18.04 installed on WSL(Windows 10).
But it is just hanging there, like waiting for another input or argument.
/usr/lib/jvm/java-8-openjdk-amd64/bin$ ls -lrt jconsole
-rwxr-xr-x 1 root root 6336 Apr 16 02:48 jconsole
/usr/lib/jvm/java-8-openjdk-amd64/bin$ file jconsole
jconsole: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/l, for GNU/Linux 3.2.0, BuildID[sha1]=ca8e0f8d1da13af7e272d6ac57781cab9d197b95, stripped
/usr/lib/jvm/java-8-openjdk-amd64/bin$ jconsole
<cursor blinking>
/usr/lib/jvm/java-8-openjdk-amd64/bin$ sudo jconsole
<cursor blinking>
Windows version:
C:\Users\username>ver
Microsoft Windows [Version 10.0.17763.1158]
Any help is appreciated, thanks!
so I am trying to draw the graph I already have and I constantly run to an error I do not understand.
File "/usr/local/lib/python2.7/site-packages/pygraphviz/agraph.py", line 1305, in layout
data=self._run_prog(prog,' '.join([args,"-T",fmt]))
File "/usr/local/lib/python2.7/site-packages/pygraphviz/agraph.py", line 1251, in _run_prog
runprog=r'"%s"'%self._get_prog(prog)
File "/usr/local/lib/python2.7/site-packages/pygraphviz/agraph.py", line 1239, in _get_prog
raise ValueError("Program %s not found in path."%prog)
ValueError: Program dot not found in path.
But I have installed graphviz with brew and my path works:
Computer:~ name$ dot -V
dot - graphviz version 2.38.0 (20140413.2041)
So what is wrong?
Why is the program not found? Thanks!
to draw it i do like this
A=nx.to_agraph(graph) # convert to a graphviz graph
A.layout(prog='dot') # neato layout
A.draw(filename+'.png') # write
I've got a similar setup to you (Mac OSX 10.10, brew) and it is working for me.
e.g.
aric:~ aric$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx as nx
>>> A = nx.to_agraph(nx.path_graph(4))
>>> A
<AGraph path_graph(4) <Swig Object of type 'Agraph_t *' at 0x10dbd9600>>
>>> print A
strict graph "path_graph(4)" {
0 -- 1;
1 -- 2;
2 -- 3;
}
>>> A.layout(prog='dot')
>>> A.draw('foo.png')
>>>
aric:~ aric$ brew -v
Homebrew 0.9.5
aric:~ aric$ uname -a
Darwin aric.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Maybe something is wrong with your pygraphviz install?
Try
$ python setup_egg.py test
from the pygraphviz source directory and see if it passes.
You might need to
$pip install doctest-skip-unicode
$pip install nose
OK found it digging!
It is eclipse fault and PyDev.
And to be exact, the lack of your $PATH in eclipse settings.
Useful links:
OSX + Eclipse + PyDev - PATH isn't correct
Environment variables in Mac OS X
for me worked:
launchctl setenv PATH $PATH
and restart eclipse. you would have to do it everytime you reboot.
unfortunately it is an apple bug and you can not do much about it.
The other way round is:
ln -s /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse /usr/local/bin/eclipse
and then start eclipse from terminal:
eclipse &
and the PATH variable will be OK. :(
I used version 24.3.1 before. Some my script run emacsclient -c by the schedule when monitor is off to save power: everything was ok. But there is a problem with new version 24.4.1 - emacs freezes until the monitor is on (by keboard or mouse) and only after that it wakes up and creates frame.
GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2014-10-21 on kairos
Linux kairos 3.7.0-030700-generic #201212102335 SMP Tue Dec 11 04:36:24 UTC 2012
Ubuntu 12.04 64 bit
I'm using Eclipse kepler & pydev 3.4.1 on Ubuntu 12.04.
I installed ipython 0.12.1 via pip, which was located in /usr/lib/python2.7/dist-packages/, so I added this path to PYTHONPATH via eclipse->preference->PyDev->Interpreters->Python Interpreter->System PYTHONPATH.
By this way, I would start IPython in the interactive console(just press CTRL_ALT_ENTER), the output is :
Python 2.7.3 (default, Feb 27 2014, 20:00:17) Type "copyright",
"credits" or "license" for more information.
IPython 0.12.1 -- An enhanced Interactive Python. ? ->
Introduction and overview of IPython's features. %quickref -> Quick
reference. help -> Python's own help system. object? -> Details
about 'object', use 'object??' for extra details.
PyDev -- Python IDE for Eclipse For help on using PyDev's Console see
http://pydev.org/manual_adv_interactive_console.html
It looks fine, but when I try to run a simple code in the interactive console, say:
from common_function import *
if __name__ == '__main__':
print("hello")
It shows me an ImportError:
File "/git/mycode/python_lab/pylab/simple_test.py", line 7, in
from common_function import *
ImportError: No module named common_function
Here, the simple_test.py and common_function.py are placed in the same src folder, and I find some posts on stackoverflow saying that adding the src folder which contatins all the py files to project's PYTHONPATH would solve this problem, so I tried and it did solve the ImportError, but the IPython is disable, the output of interactive console is :
/usr/bin/python2.7 2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3]
PyDev console: using default backend (IPython not available).
runfile('/media/data/yanglin/local/work/git/mycode/python_lab/pylab/simple_test.py')
hello
Any one know how to fix this problem?
I would like to use the IPython interpreter in Eclipse/PyDev.
PyDev however does not recognize my IPython installation.
The results I get is the following:
>>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version))
PyDev console: using default backend (IPython not available).
D:\QuantumGIS\apps\Python25\python.exe 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
>>> import IPython
>>>
The "import IPython" command does work.
I'm using
Windows XP 32 bit
Eclipse 3.7.2
PyDev 2.4.0
IPython 0.10.2
Python 2.5 (version that is supplied with QGIS 1.7.3)
How should I set up PyDev so I can use IPython as the interactive interpreter?
Not sure if it's the same issue but from Fabio's blog he said to try in the python console (import IPython worked ok):
from IPython.frontend.terminal.interactiveshell import TerminalInteractiveShell
which gave me nothing useful and:
from IPython.frontend.prefilterfrontend import PrefilterFrontEnd
Which complained that twisted wasn't installed. I installed twisted 12.0 for Python 2.5 and it's dependency Zope (3.8 for Python 2.5), restarted the IDE and the console now shows ipython. There was something about ipython actually using XMLRPC to communicate with the IDE so I guess twisted is needed for that.
Hope that helps.
Stu.
Windows 7
Aptana studio 3.1.2 (version of eclipse)
PyDev 2.5.0 IPython 0.10
Python 2.5 (needed for some old code I'm working on and haven't
upgraded yet)