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

ValueError: invalid literal for int() with base 10: b'' #5402

Closed
k78872 opened this issue Oct 6, 2017 · 4 comments
Closed

ValueError: invalid literal for int() with base 10: b'' #5402

k78872 opened this issue Oct 6, 2017 · 4 comments

Comments

@k78872
Copy link

k78872 commented Oct 6, 2017

Description

What steps will reproduce the problem?

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

Please provide any additional information below

File "/anaconda3/lib/python3.6/site-packages/spyder/plugins/maininterpreter.py", line 162, in python_executable_switched
self.warn_python_compatibility(cust_pyexec)
File "/anaconda3/lib/python3.6/site-packages/spyder/plugins/maininterpreter.py", line 171, in warn_python_compatibility
console_version = int(proc.communicate()[0])
ValueError: invalid literal for int() with base 10: b''

Version and main components

  • Spyder Version: 3.2.3
  • Python Version: 3.6.2
  • Qt Versions: 5.6.2, PyQt5 5.6 on Darwin

Dependencies

pyflakes >=0.6.0 :  1.5.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.20.3 (OK)
numpy >=1.7      :  1.13.3 (OK)
sphinx >=0.6.6   :  1.6.3 (OK)
rope >=0.9.4     :  0.10.5 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
psutil >=0.3     :  5.2.2 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  0.26.1 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.1.0 (OK)
pylint >=0.25    :  1.7.2 (OK)

@Jeroendevr
Copy link

ValueError: invalid literal for int() with base 10: b'' Gives me a hint that a certain calculation is done using Log, Ln or Exp which is not correctly entered. Can you verify if this is the case?

@ccordoba12 ccordoba12 added this to the v3.2.x milestone Oct 6, 2017
@ccordoba12 ccordoba12 changed the title ask question ValueError: invalid literal for int() with base 10: b'' Oct 6, 2017
@ccordoba12
Copy link
Member

ccordoba12 commented Oct 6, 2017

Thanks for reporting. We'll take a look at this in a future release.

@Jeroendevr
Copy link

What also could be the case is that you are using an int() function on an empty string?
For example the following gives also the same error:

a = ""
int(a)

@csabella
Copy link
Contributor

This error occurred when you tried to change the Python interpreter in the preferences. Spyder tried to send code to the interpreter to get which version of Python it was using and instead didn't get an answer back. @k78872, what interpreter were you trying to change to? Do you get the same error every time you try to change to that interpreter or did this just happen one time?

Thanks!

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

4 participants