-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
TypeError: register() takes from 2 to 3 positional arguments but 4 were given #3840
Comments
Looks like this is a bug in Python itself: https://bugs.python.org/issue31014 It sounds like it depends on the BROWSER environment variable; you might be able to work around it by unsetting that. Hopefully it will be fixed in 3.7.1. |
Both jupyter notebook and jupyter-lab have this problem. As @takluyver suggest doing "unset BROWSER" in terminal first fixes the problem:
|
@ciri @takluyver That works for me as well (python 3.7, ipython 6.5, jupyter 4.4, arch linux) |
The fix is merged and should be released with Python 3.7.1 (python/cpython@a410f9f) Would it make sense to include this in the dependencies, i.e. that Jupyter Notebook is not compatible with Python 3.7.0? |
If the above doesn't work for you, try the following: Given the error message, we are looking at line 116 of webbrowser.py. There I changed this:
to this:
Now running jupyter notebook works as expected! |
Don't get me wrong, the fix does work. But any user with Python 3.7.0 will find the Notebook and/or Jupyter (Lab) not working but not every user will look around Github for an open/closed issue. I think, this makes the Jupyter Notebook not compatible with Python 3.7.0 and that should hence be mentioned in the dependencies. |
Agreed with @MaxSchambach, this is straight up not working on Python 3.7.0. Perhaps you could just apply @nicholas-mitchell's fix in the interim rather than leaving all users on 3.7 in a lurch? |
The meantioned fix is changing the |
From the above I thought I could "fix" the issue by doing for my base anaconda installation. (which is python 3.7)
Suggestions? |
It looks like you installed Python2 in your base Anaconda/Miniconda
installation.
Try looking at virtual environments!
…On Wed, 24 Oct 2018 at 19:20, Tom Brander ***@***.***> wrote:
From the above I thought I could "fix" the issue by doing for my base
anaconda installation.
conda install python=3.7.1
but I got
Solving environment: failed UnsatisfiableError: The following
specifications were found to be in conflict: - anaconda-project ->
anaconda-client -> python[version='>=2.7,<2.8.0a0'] -> openssl=1.0 -
python=3.7.1 Use "conda info <package>" to see the dependencies for each
package.
Suggestions?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3840 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMOhpaR79jeo_YCa6DmYZeGkAdLADCOaks5uoKFagaJpZM4V1aDj>
.
|
You can simply put |
This would essentially be the same as the originally proposed solution, which didn't work for me. (but I haven't tested your variant) |
Hmmm.... If I type python at the command prompt I get python 3.7.0 but I see what you mean with the dependency message, indicating python 2.7... which simply confuses me more.. |
I have the same problem in a clean Python 3.7 conda environment. As Python 3.7.1 has just been released, I think it will take a little while for the conda branches to update. In principle, using But this has nothing to do with the actual issue here. That is, Jupyter notebook not being compatible with Python 3.7.0 due to the bug in |
You currently cannot create a Conda environment with python 3.7.1 along
with Jupyter. If you try, it will fail or attempt to downgrade your python
to 2.7 😂
…On Fri, 26 Oct 2018, 17:31 Maximilian Schambach, ***@***.***> wrote:
I have the same problem in a clean Python 3.7 conda environment. As Python
3.7.1 has just been released, I think it will take a little while for the
conda branches to update. In principle, using conda update -n envname
python should update Python in the Python branch of the environment, i.e.
in the Python 3.7 branch from 3.7.0 to 3.7.1.
But this has nothing to do with the actual issue here. That is, Jupyter
notebook not being compatible with Python 3.7 due to the bug in
webbrowser.py
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3840 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMOhpZ6C6Lou-sV7ZYsR4BLbXArb_fy1ks5uoyrrgaJpZM4V1aDj>
.
|
Has there been any update on this? @nicholas-mitchell I tried your fix but no help. Am using Anaconda, Python 3.7, Ubuntu 16.04. Thanks, Zach. |
I was able to create a new conda env with Python 3.7.1 and Jupyter so that seems to be resolved. |
when opening jupyter notebook it shows this error
my system information
os: arch linux
Kernel Information: Linux 4.17.12-arch1-1-ARCH x86_64
python version: Python 3.7.0
jupyter version: 4.4.0
The text was updated successfully, but these errors were encountered: