atom-community / atom-community/atom-script

Python script outputs nothing into console

Open
#1,833 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:

1. Open Atom
2. Create Python file
3. Write code:
```python
print 23
```
4. Press Ctrl + Shift + B. It works as on screenshot.
![atom-script runs python code perfectly ok](https://www.dropbox.com/s/tlmem50206e0h66/screenshot%202019-03-22%20001.png?raw=1)
5. Add `import sys` before print statement
```python
import sys
print 23
```
6. Run Ctrl + Shift + B again. Execution seems ok, but console output is empty as on screenshot.
![atom-script runs python but console output is empty](https://www.dropbox.com/s/zbrc13gbts7rl38/screenshot%202019-03-22%20002.png?raw=1)

My python version is `Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32`, operating system is Windows 7 SP1 64-bit.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.