Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6614977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:24:18+00:00 2026-05-25T20:24:18+00:00

When I start python-shell (or even just start python from M-x shell), Emacs gives

  • 0

When I start python-shell (or even just start python from M-x shell), Emacs gives the expected prompt:

bash-3.2$ python
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

But when I type something at the prompt and press RET, the cursor moves down a line but the command is not executed. The only commands I can get the subprocess to respond to are interrupts like C-C C-c. After an interrupt, another prompt (>>>) appears and I can use M-n and M-p to navigate the lines I “entered” earlier.

>>> test
hmmm, definitely pressed enter there
  C-c C-c
KeyboardInterrupt
>>> 

Curiously, this occurs both in Aquaemacs and in emacs -nw. I’ve tried moving my .emacs and .emacs.d files and the behavior is the same. Any ideas on what might be causing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:24:19+00:00Added an answer on May 25, 2026 at 8:24 pm

    After you do “M-x shell” and then “python RET”, do “C-h k RET” and then what is displayed? the Help buffer should say that “comint-send-input” is the command that is executed for RET. If it isn’t showing “comint-send-input” as the command executed by “RET” then there is probably something in one of your init files (the .emacs file isn’t the only init file) that is overriding this binding. So, then try running emacs with “emacs -nw -q -no-site-file” and repeat the above. If it wasn’t displaying “comint-send-input” previously and is displaying “comint-send-input” now, then it’s definitely something in one of your init files. Look at both your local (http://www.gnu.org/software/emacs/emacs-lisp-intro/elisp/Init-File.html#Init-File) and site-wide (http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/Site_002dwide-Init.html#Site_002dwide-Init) init files to try to find the culprit. If it’s not obvious after examining the files, your best bet is to rename any init files you find and gradually re-introduce the code until you find what is causing the “breakage”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am going to start up gdb from python. For example: prog.shell.py: #do lots
When I start Python from Mac OS' Terminal.app, python recognises the encoding as UTF-8:
I am trying to run a shell from my python program. I have used
When I start the interactive django shell through manage.py, by executing python -v manage.py
I am using python -m SimpleHTTPServer 8080 to start a webserver from a linux
I want to start using Python for small projects but the fact that a
Should I start a Python program with: if__name__ == '__main__': some code... And if
When you start/stop a python cherrypy service (compiled with py2exe), this works fine When
I want to start coding in Python or Ruby. Since I own a Lego
I'm using parallel-python and start a new job server in a function. after the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.