Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sig_new_file error when converting notebook to script #3823

Closed
StevenMMortimer opened this issue Dec 10, 2016 · 3 comments
Closed

sig_new_file error when converting notebook to script #3823

StevenMMortimer opened this issue Dec 10, 2016 · 3 comments

Comments

@StevenMMortimer
Copy link

Description

What steps will reproduce the problem?

  1. Right-Click on an .ipynb file > Click on "Convert To Python Script"

What is the expected output? What do you see instead?

I expected to see a .py file generated based on the notebook, but instead received the following error in the internal console:

Traceback (most recent call last):
  File "C:\Program Files\Anaconda2\lib\site-packages\spyder\widgets\explorer.py", line 568, in convert_notebooks
    self.convert_notebook(fname)
  File "C:\Program Files\Anaconda2\lib\site-packages\spyder\widgets\explorer.py", line 559, in convert_notebook
    self.parent_widget.sig_new_file.emit(script)
AttributeError: 'Projects' object has no attribute 'sig_new_file'

Version and main components

  • Spyder Version: 3.0.0
  • Python Version: 2.7.12
  • Qt Versions: 5.6.0, PyQt5 5.6 on Windows

Dependencies

pyflakes >=0.5.0 :  1.3.0 (OK)
pep8 >=0.6       :  1.7.0 (OK)
pygments >=2.0   :  2.1.3 (OK)
qtconsole >=4.2.0:  4.2.1 (OK)
nbconvert >=4.0  :  4.2.0 (OK)
pandas >=0.13.1  :  0.18.1 (OK)
numpy >=1.7      :  1.11.1 (OK)
sphinx >=0.6.6   :  1.4.6 (OK)
rope >=0.9.4     :  0.9.4 (OK)
jedi >=0.8.1     :  0.9.0 (OK)
matplotlib >=1.0 :  1.5.3 (OK)
sympy >=0.7.3    :  1.0 (OK)
pylint >=0.25    :  1.5.4 (OK)
@ccordoba12
Copy link
Member

@andfoy, this is a simple one for you :-)

@andfoy
Copy link
Member

andfoy commented Dec 10, 2016

@ccordoba12 I tried to reproduce the error, but the conversion worked successfully, I don't know if the error is related to Qt 5.x

@ccordoba12
Copy link
Member

@andfoy, did you do the conversion from the Project explorer instead of the File Explorer?

@ccordoba12 ccordoba12 modified the milestones: v3.1.1, v3.1 Jan 5, 2017
@andfoy andfoy self-assigned this Jan 13, 2017
@ccordoba12 ccordoba12 modified the milestones: v3.1.1, v3.1.2, v3.1.3 Jan 18, 2017
@ccordoba12 ccordoba12 modified the milestones: v3.1.3, v3.1.4 Jan 28, 2017
ccordoba12 added a commit that referenced this issue Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants