Why does Julia 0.5 keep complaining about method re-definitions?

726 views
Skip to first unread message

Daniel Carrera

unread,
Sep 27, 2016, 1:56:27 PM9/27/16
to julia-users
Hello,

I'm not sure when I upgraded, but I am using Julia 0.5 and now it complains every time I redefine a method, which is basically all the time. When I'm developing ideas I usually have a file with a script that I modify and reload all the time:

julia> include("foo.jl");

... see the results, edit file ...

julia> include("foo.jl");

... see the results, edit file ...
julia> include("foo.jl");

... see the results, edit file ...


And so on. This is what I do most of the time. But now every time I `include("foo.jl")` I get warnings for every method that has been redefined (which is all of them):

julia> include("foo.jl");

WARNING: Method definition (::Type{Main.Line})(Float64, Float64) in module Main at /home/daniel/Data/Science/Thesis/SI.jl:4 overwritten at /home/daniel/Data/Science/Thesis/SI.jl:4.
WARNING: Method definition (::Type{Main.Line})(Any, Any) in module Main at /home/daniel/Data/Science/Thesis/SI.jl:4 overwritten at /home/daniel/Data/Science/Thesis/SI.jl:4.
WARNING: Method definition new_line(Any, Any, Any) in module Main at /home/daniel/Data/Science/Thesis/SI.jl:8 overwritten at /home/daniel/Data/Science/Thesis/SI.jl:8.


Is there a way that this can be fixed? How can I recover Julia's earlier behaviour? This is very irritating, and I don't think it makes sense for a functional language like Julia. If I wrote a method as a variable assignment (e.g. "foo = x -> 2*x") Julia wouldn't complain.


Thanks for the help,
Daniel.

Andrew

unread,
Sep 27, 2016, 3:13:00 PM9/27/16
to julia-users
It seems like a lot of people are complaining about this. Is there some way to suppress method overwritten warnings for an include() statement? Perhaps a keyword like include("foo.jl", quietly = true)?

Chris Rackauckas

unread,
Sep 27, 2016, 3:43:15 PM9/27/16
to julia-users
Or just a standard way to suppress warnings of a given type (say, surpress("MethodDefinition")). For now, Suppressor.jl does well.

Cedric St-Jean

unread,
Sep 27, 2016, 3:45:39 PM9/27/16
to julia-users
I wrote a work-around earlier today:

Pkg.clone("git://github.com/cstjean/ClobberingReload.jl.git")

using ClobberingReload: sinclude     # silent include
sinclude
("foo.jl")   # no redefinition warnings

It's fresh off the press, so please file an issue if you encounter a problem. It calls `include` under the hood; there's no magic involved. I just intercept STDERR and remove the redefinition warnings.

Cedric St-Jean

unread,
Sep 27, 2016, 3:56:05 PM9/27/16
to julia-users
@Chris: I agree; if warnings were typed, we could selectively activate them. I'm using regexes for now:

ClobberingReload.scrub_stderr(r"WARNING\: redefining constant .*\n", r"WARNING\: replacing docs for .*\n", ...) do
   
...
end

Daniel Carrera

unread,
Sep 27, 2016, 4:14:29 PM9/27/16
to julia...@googlegroups.com
Thanks! You are a savior!

Here is something odd: when I installed it with Pkg.clone(...) my Julia decided that it also had to update Conda and install Jupyter. Is this some weird quirk of my setup. I notice that you import IJulia, so I guess that has something to do with it. It's not a big deal; I just thought it was weird to see the package manager installing stuff like Qt, fontconfig, SSL, and libxml just to clobber include().

But other than that, it works fabulously. Thank you so much!

Cheers,
Daniel.

Cedric St-Jean

unread,
Sep 27, 2016, 4:30:32 PM9/27/16
to julia...@googlegroups.com
Yeah, it's because of IJulia, sorry about that. I need it to support autoreloading. I could split the package in two, but it's small enough already that it doesn't feel like the right call. 

One day we'll get conditional imports...

K leo

unread,
Sep 28, 2016, 12:53:12 AM9/28/16
to julia-users
This a very heavy install.  It's fetching tons of things that I have not used.  Not sure what they are, but seems like trashing my system.

K leo

unread,
Sep 28, 2016, 12:55:53 AM9/28/16
to julia-users

On Wednesday, September 28, 2016 at 12:53:12 PM UTC+8, K leo wrote:
This a very heavy install.  It's fetching tons of things that I have not used.  Not sure what they are, but seems like trashing my system.

INFO: Cloning ClobberingReload from git://github.com/cstjean/ClobberingReload.jl.git
INFO: Computing changes...
INFO: Cloning cache of IJulia from https://github.com/JuliaLang/IJulia.jl.git
INFO: Cloning cache of Nettle from https://github.com/staticfloat/Nettle.jl.git
INFO: Cloning cache of ZMQ from https://github.com/JuliaLang/ZMQ.jl.git
INFO: Installing Conda v0.3.2
INFO: Installing IJulia v1.3.2
INFO: Installing Nettle v0.2.4
INFO: Installing ZMQ v0.3.4
INFO: Building Nettle
INFO: Building ZMQ
INFO: Building IJulia
INFO: Installing Jupyter via the Conda package.
INFO: Downloading miniconda installer ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 25.9M  100 25.9M    0     0  1104k      0  0:00:24  0:00:24 --:--:-- 2297k
INFO: Installing miniconda ...
PREFIX=/home/xxx/.julia/v0.5/Conda/deps/usr
installing: _cache-0.0-py27_x0 ...
installing: python-2.7.11-0 ...
installing: conda-env-2.4.5-py27_0 ...
installing: openssl-1.0.2g-0 ...
installing: pycosat-0.6.1-py27_0 ...
installing: pyyaml-3.11-py27_1 ...
installing: readline-6.2-2 ...
installing: requests-2.9.1-py27_0 ...
installing: sqlite-3.9.2-0 ...
installing: tk-8.5.18-0 ...
installing: yaml-0.1.6-0 ...
installing: zlib-1.2.8-0 ...
installing: conda-4.0.5-py27_0 ...
installing: pycrypto-2.6.1-py27_0 ...
installing: pip-8.1.1-py27_1 ...
installing: wheel-0.29.0-py27_0 ...
installing: setuptools-20.3-py27_0 ...
Python 2.7.11 :: Continuum Analytics, Inc.
creating default environment...
installation finished.
Fetching package metadata: ....
Solving package specifications: .........

Package plan for installation in environment /home/xxx/.julia/v0.5/Conda/deps/usr:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-env-2.6.0            |                0          502 B
    expat-2.1.0                |                0         365 KB
    icu-54.1                   |                0        11.3 MB
    jpeg-8d                    |                1         806 KB
    libffi-3.2.1               |                0          36 KB
    libgcc-5.2.0               |                0         1.1 MB
    libsodium-1.0.10           |                0         1.2 MB
    libxcb-1.12                |                0         1.5 MB
    sqlite-3.13.0              |                0         4.0 MB
    dbus-1.10.10               |                0         2.4 MB
    glib-2.43.0                |                1         5.4 MB
    libpng-1.6.22              |                0         214 KB
    libxml2-2.9.2              |                0         4.2 MB
    python-2.7.12              |                1        12.1 MB
    zeromq-4.1.4               |                0         4.1 MB
    backports-1.0              |           py27_0           1 KB
    backports_abc-0.4          |           py27_0           5 KB
    decorator-4.0.10           |           py27_0          12 KB
    enum34-1.1.6               |           py27_0          53 KB
    freetype-2.5.5             |                1         2.5 MB
    functools32-3.2.3.2        |           py27_0          15 KB
    gstreamer-1.8.0            |                0         2.6 MB
    ipython_genutils-0.1.0     |           py27_0          32 KB
    markupsafe-0.23            |           py27_2          31 KB
    mistune-0.7.3              |           py27_0         560 KB
    path.py-8.2.1              |           py27_0          45 KB
    ptyprocess-0.5.1           |           py27_0          19 KB
    pygments-2.1.3             |           py27_0         1.2 MB
    pytz-2016.6.1              |           py27_0         178 KB
    pyzmq-15.4.0               |           py27_0         705 KB
    ruamel_yaml-0.11.14        |           py27_0         352 KB
    simplegeneric-0.8.1        |           py27_1           7 KB
    sip-4.18                   |           py27_0         264 KB
    six-1.10.0                 |           py27_0          16 KB
    wcwidth-0.1.7              |           py27_0          21 KB
    clyent-1.2.2               |           py27_0          15 KB
    conda-4.2.9                |           py27_0         360 KB
    configparser-3.5.0         |           py27_0          31 KB
    fontconfig-2.11.1          |                6         405 KB
    get_terminal_size-1.0.0    |           py27_0           4 KB
    gst-plugins-base-1.8.0     |                0         3.1 MB
    jinja2-2.8                 |           py27_1         264 KB
    jsonschema-2.5.1           |           py27_0          55 KB
    pathlib2-2.1.0             |           py27_0          26 KB
    pexpect-4.0.1              |           py27_0          63 KB
    prompt_toolkit-1.0.3       |           py27_0         295 KB
    python-dateutil-2.5.3      |           py27_0         236 KB
    singledispatch-3.4.0.3     |           py27_0          12 KB
    ssl_match_hostname-3.4.0.2 |           py27_1           6 KB
    traitlets-4.3.0            |           py27_0         119 KB
    anaconda-client-1.5.1      |           py27_0         110 KB
    entrypoints-0.2.2          |           py27_0           6 KB
    jupyter_core-4.2.0         |           py27_0          51 KB
    pickleshare-0.7.4          |           py27_0           8 KB
    qt-5.6.0                   |                0        43.9 MB
    tornado-4.4.1              |           py27_0         552 KB
    ipython-5.1.0              |           py27_0         936 KB
    jupyter_client-4.4.0       |           py27_0          97 KB
    nbformat-4.1.0             |           py27_0         115 KB
    pyqt-5.6.0                 |           py27_0         5.3 MB
    terminado-0.6              |           py27_0          18 KB
    ipykernel-4.5.0            |           py27_0         123 KB
    nbconvert-4.2.0            |           py27_0         310 KB
    jupyter_console-5.0.0      |           py27_0          28 KB
    notebook-4.2.3             |           py27_0         5.0 MB
    qtconsole-4.2.1            |           py27_1         148 KB
    widgetsnbextension-1.2.6   |           py27_0         1.1 MB
    ipywidgets-5.2.2           |           py27_0          58 KB
    jupyter-1.0.0              |           py27_3           3 KB
    nb_anacondacloud-1.2.0     |           py27_0          23 KB
    nb_conda_kernels-2.0.0     |           py27_0          30 KB
    nb_conda-2.0.0             |           py27_0          28 KB
    _nb_ext_conf-0.3.0         |           py27_0          956 B
    nbpresent-3.0.2            |           py27_0         463 KB
    ------------------------------------------------------------
                                           Total:       120.4 MB

The following NEW packages will be INSTALLED:

    _nb_ext_conf:       0.3.0-py27_0   
    anaconda-client:    1.5.1-py27_0   
    backports:          1.0-py27_0     
    backports_abc:      0.4-py27_0     
    clyent:             1.2.2-py27_0   
    configparser:       3.5.0-py27_0   
    dbus:               1.10.10-0      
    decorator:          4.0.10-py27_0  
    entrypoints:        0.2.2-py27_0   
    enum34:             1.1.6-py27_0   
    expat:              2.1.0-0        
    fontconfig:         2.11.1-6       
    freetype:           2.5.5-1        
    functools32:        3.2.3.2-py27_0 
    get_terminal_size:  1.0.0-py27_0   
    glib:               2.43.0-1       
    gst-plugins-base:   1.8.0-0        
    gstreamer:          1.8.0-0        
    icu:                54.1-0         
    ipykernel:          4.5.0-py27_0   
    ipython:            5.1.0-py27_0   
    ipython_genutils:   0.1.0-py27_0   
    ipywidgets:         5.2.2-py27_0   
    jinja2:             2.8-py27_1     
    jpeg:               8d-1           
    jsonschema:         2.5.1-py27_0   
    jupyter:            1.0.0-py27_3   
    jupyter_client:     4.4.0-py27_0   
    jupyter_console:    5.0.0-py27_0   
    jupyter_core:       4.2.0-py27_0   
    libffi:             3.2.1-0        
    libgcc:             5.2.0-0        
    libpng:             1.6.22-0       
    libsodium:          1.0.10-0       
    libxcb:             1.12-0         
    libxml2:            2.9.2-0        
    markupsafe:         0.23-py27_2    
    mistune:            0.7.3-py27_0   
    nb_anacondacloud:   1.2.0-py27_0   
    nb_conda:           2.0.0-py27_0   
    nb_conda_kernels:   2.0.0-py27_0   
    nbconvert:          4.2.0-py27_0   
    nbformat:           4.1.0-py27_0   
    nbpresent:          3.0.2-py27_0   
    notebook:           4.2.3-py27_0   
    path.py:            8.2.1-py27_0   
    pathlib2:           2.1.0-py27_0   
    pexpect:            4.0.1-py27_0   
    pickleshare:        0.7.4-py27_0   
    prompt_toolkit:     1.0.3-py27_0   
    ptyprocess:         0.5.1-py27_0   
    pygments:           2.1.3-py27_0   
    pyqt:               5.6.0-py27_0   
    python-dateutil:    2.5.3-py27_0   
    pytz:               2016.6.1-py27_0
    pyzmq:              15.4.0-py27_0  
    qt:                 5.6.0-0        
    qtconsole:          4.2.1-py27_1   
    ruamel_yaml:        0.11.14-py27_0 
    simplegeneric:      0.8.1-py27_1   
    singledispatch:     3.4.0.3-py27_0 
    sip:                4.18-py27_0    
    six:                1.10.0-py27_0  
    ssl_match_hostname: 3.4.0.2-py27_1 
    terminado:          0.6-py27_0     
    tornado:            4.4.1-py27_0   
    traitlets:          4.3.0-py27_0   
    wcwidth:            0.1.7-py27_0   
    widgetsnbextension: 1.2.6-py27_0   
    zeromq:             4.1.4-0        

The following packages will be UPDATED:

    conda:              4.0.5-py27_0 --> 4.2.9-py27_0   
    conda-env:          2.4.5-py27_0 --> 2.6.0-0        
    python:             2.7.11-0     --> 2.7.12-1       
    sqlite:             3.9.2-0      --> 3.13.0-0       

Fetching packages ...
conda-env-2.6. 100% |####################################| Time: 0:00:00 493.56 kB/s
expat-2.1.0-0. 100% |####################################| Time: 0:00:02 146.65 kB/s
icu-54.1-0.tar 100% |####################################| Time: 0:00:14 825.31 kB/s
jpeg-8d-1.tar. 100% |####################################| Time: 0:00:06 133.58 kB/s
libffi-3.2.1-0 100% |####################################| Time: 0:00:00  50.31 kB/s
libgcc-5.2.0-0 100% |####################################| Time: 0:00:07 156.10 kB/s
libsodium-1.0. 100% |####################################| Time: 0:00:07 172.95 kB/s
libxcb-1.12-0. 100% |####################################| Time: 0:00:10 148.88 kB/s
sqlite-3.13.0- 100% |####################################| Time: 0:00:10 412.13 kB/s
dbus-1.10.10-0 100% |####################################| Time: 0:00:08 306.02 kB/s
glib-2.43.0-1. 100% |####################################| Time: 0:00:19 291.78 kB/s
libpng-1.6.22- 100% |####################################| Time: 0:00:02  90.77 kB/s
libxml2-2.9.2- 100% |####################################| Time: 0:00:20 213.01 kB/s
python-2.7.12- 100% |####################################| Time: 0:00:22 565.40 kB/s
zeromq-4.1.4-0 100% |####################################| Time: 0:00:20 210.51 kB/s
backports-1.0- 100% |####################################| Time: 0:00:00   2.15 MB/s
backports_abc- 100% |####################################| Time: 0:00:00   4.28 MB/s
decorator-4.0. 100% |####################################| Time: 0:00:00  20.61 MB/s
enum34-1.1.6-p 100% |####################################| Time: 0:00:00  66.70 kB/s
freetype-2.5.5 100% |####################################| Time: 0:00:08 312.17 kB/s
functools32-3. 100% |####################################| Time: 0:00:00  37.43 kB/s
gstreamer-1.8. 100% |####################################| Time: 0:00:13 201.00 kB/s
ipython_genuti 100% |####################################| Time: 0:00:00 120.53 kB/s
markupsafe-0.2 100% |####################################| Time: 0:00:00 115.32 kB/s
mistune-0.7.3- 100% |####################################| Time: 0:00:03 155.31 kB/s
path.py-8.2.1- 100% |####################################| Time: 0:00:00  63.12 kB/s
ptyprocess-0.5 100% |####################################| Time: 0:00:00  53.36 kB/s
pygments-2.1.3 100% |####################################| Time: 0:00:06 179.87 kB/s
pytz-2016.6.1- 100% |####################################| Time: 0:00:02  87.86 kB/s
pyzmq-15.4.0-p 100% |####################################| Time: 0:00:05 131.37 kB/s
ruamel_yaml-0. 100% |####################################| Time: 0:00:03 108.32 kB/s
simplegeneric- 100% |####################################| Time: 0:00:00  10.05 MB/s
sip-4.18-py27_ 100% |####################################| Time: 0:00:02 121.45 kB/s
six-1.10.0-py2 100% |####################################| Time: 0:00:00  55.96 kB/s
wcwidth-0.1.7- 100% |####################################| Time: 0:00:00  79.25 kB/s
clyent-1.2.2-p 100% |####################################| Time: 0:00:00  38.91 kB/s
conda-4.2.9-py 100% |####################################| Time: 0:00:01 188.64 kB/s
configparser-3 100% |####################################| Time: 0:00:00  76.74 kB/s
fontconfig-2.1 100% |####################################| Time: 0:00:04 100.98 kB/s
get_terminal_s 100% |####################################| Time: 0:00:00   6.96 MB/s
gst-plugins-ba 100% |####################################| Time: 0:00:09 354.94 kB/s
jinja2-2.8-py2 100% |####################################| Time: 0:00:02  95.16 kB/s
jsonschema-2.5 100% |####################################| Time: 0:00:00  77.84 kB/s
pathlib2-2.1.0 100% |####################################| Time: 0:00:00  89.60 kB/s
pexpect-4.0.1- 100% |####################################| Time: 0:00:00  85.43 kB/s
prompt_toolkit 100% |####################################| Time: 0:00:01 180.43 kB/s
python-dateuti 100% |####################################| Time: 0:00:01 126.93 kB/s
singledispatch 100% |####################################| Time: 0:00:00  32.02 kB/s
ssl_match_host 100% |####################################| Time: 0:00:00  11.94 MB/s
traitlets-4.3. 100% |####################################| Time: 0:00:01 102.34 kB/s
anaconda-clien 100% |####################################| Time: 0:00:00 131.32 kB/s
entrypoints-0. 100% |####################################| Time: 0:00:00   8.01 MB/s
jupyter_core-4 100% |####################################| Time: 0:00:00  65.15 kB/s
pickleshare-0. 100% |####################################| Time: 0:00:00  10.55 MB/s
qt-5.6.0-0.tar 100% |####################################| Time: 0:00:38   1.18 MB/s
tornado-4.4.1- 100% |####################################| Time: 0:00:04 126.35 kB/s
ipython-5.1.0- 100% |####################################| Time: 0:00:04 212.47 kB/s
jupyter_client 100% |####################################| Time: 0:00:01  80.24 kB/s
nbformat-4.1.0 100% |####################################| Time: 0:00:01  97.55 kB/s
pyqt-5.6.0-py2 100% |####################################| Time: 0:00:22 245.24 kB/s
terminado-0.6- 100% |####################################| Time: 0:00:00  47.85 kB/s
ipykernel-4.5. 100% |####################################| Time: 0:00:01  75.60 kB/s
nbconvert-4.2. 100% |####################################| Time: 0:00:03 101.72 kB/s
jupyter_consol 100% |####################################| Time: 0:00:00  78.09 kB/s
notebook-4.2.3 100% |####################################| Time: 0:00:10 520.04 kB/s
qtconsole-4.2. 100% |####################################| Time: 0:00:01 103.16 kB/s
widgetsnbexten 100% |####################################| Time: 0:00:06 172.46 kB/s
ipywidgets-5.2 100% |####################################| Time: 0:00:00  72.03 kB/s
jupyter-1.0.0- 100% |####################################| Time: 0:00:00   2.40 MB/s
nb_anacondaclo 100% |####################################| Time: 0:00:00  48.66 kB/s
nb_conda_kerne 100% |####################################| Time: 0:00:00  79.82 kB/s
nb_conda-2.0.0 100% |####################################| Time: 0:00:00  68.97 kB/s
_nb_ext_conf-0 100% |####################################| Time: 0:00:00   1.55 MB/s
nbpresent-3.0. 100% |####################################| Time: 0:00:03 126.30 kB/s
Extracting packages ...
[      COMPLETE      ]|#######################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|#######################################################| 100%
Linking packages ...
[      COMPLETE      ]|#######################################################| 100%

julia> 
 

Chris Rackauckas

unread,
Sep 28, 2016, 1:36:01 AM9/28/16
to julia-users
You could've just used Suppressor.jl...

Daniel Carrera

unread,
Sep 28, 2016, 3:56:04 AM9/28/16
to julia...@googlegroups.com
Suppressor.jl would suppress everything, right?

So the idea is that one would use `@suppress import("foo.jl")` ?

As heavy as ClobberingReload.jl is, I appreciate that it only suppresses *one* error -- the annoying "you redefined a method" error that IMO should never have existed in the first place. If there are other errors, like syntax errors, in my script, I do want to hear about those. Or have I misunderstood how Suppressor.jl works?

Cheers,
Daniel.

Ismael Venegas Castelló

unread,
Sep 28, 2016, 4:16:01 AM9/28/16
to julia-users
Daniel indeed Suppressor provides the following macros: @suppress (will suppress both STDERR and STDOUT), @suppress_out (just STDOUT) and @suppress_err (just STDERR), notice that STDERR suppresses warnings but not errors! This can be easily understood reading code in the README:

julia> using Suppressor                                     

julia
> @suppress begin                                      
           
println("This string doesn't get printed!")      
           
warn("This warning is ignored.")                
       
end                                                  

julia
> @suppress_out begin                                  
           
println("This string doesn't get printed!")      
           
warn("This warning is important")                
       
end                                                
WARNING
: This warning is important                          

julia
> @suppress_err begin                                  
           
println("This string gets printed!")            
           
warn("This warning is unimportant")              
       
end                                                  
This string gets printed!      

julia
> @suppress begin
           
println("This string doesn't get printed!")
           
warn("This warning is ignored.")
           
error("Remember that errors are still printed!")
       
end
------------------------------------------------------------------------------------------
ErrorException                                          Stacktrace (most recent call last)
[#2] — anonymous
       
at <missing>:?

[#1] — macro expansion;
       
at Suppressor.jl:16 [inlined]

Remember that errors are still printed!                            

julia
>    

So in order to ignore the error you would have to explicitly wrap it in a try and explicitly silence it. Also notice that:

import("foo.jl")

is a syntax error, you're supposed to do:

@suppress include("foo.jl")

instead. If you find a bug please file an issue, thanks!

Cedric St-Jean

unread,
Sep 28, 2016, 8:25:37 AM9/28/16
to julia-users
I just removed the IJulia dependency from ClobberingReload.jl (made it optional - autoreload still works for IJulia users). Thank you for the feedback. If you `Pkg.checkout("ClobberingReload")`, it should automatically remove IJulia and its dependencies.

BTW, if you haven't tried IJulia/Jupyter notebooks, I would strongly recommend giving it a shot. It's the #2 most popular Julia package for a reason.

Cédric

K leo

unread,
Sep 28, 2016, 8:45:37 AM9/28/16
to julia-users
julia> Pkg.checkout("ClobberingReload")
ERROR: ClobberingReload is not a git repo
 in checkout(::String, ::String, ::Bool, ::Bool) at ./pkg/entry.jl:225
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#checkout,Tuple{String,String,Bool,Bool}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#checkout,Tuple{String,String,Bool,Bool}}, ::String) at ./file.jl:59
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at ./pkg/dir.jl:31
 in checkout(::String) at ./pkg/pkg.jl:170

Thanks for the tip on IJulia/Jupyter.  Will try them.

Cedric St-Jean

unread,
Sep 28, 2016, 9:04:22 AM9/28/16
to julia...@googlegroups.com
That's weird, I'm pretty sure that I've had the same issue when I tried it just now, but I can't seem to reproduce it. ClobberingReload is still installed on your system, right? How about this?

Pkg.checkout("ClobberingReload", "master")

If you want to try IJulia, you should Pkg.add("IJulia") before doing this, because otherwise it'll get uninstalled by the Pkg.checkout, and it's the package that dragged all of the dependencies you listed above.

J Luis

unread,
Sep 28, 2016, 9:15:38 AM9/28/16
to julia-users

This a very heavy install.  It's fetching tons of things that I have not used.  Not sure what they are, but seems like trashing my system.

Yes, unfortunately Conda is an unbearably big dependency (over 1.xxx Gb) that sneaks in via un-suspicious packages. A dependency this big should never install without a strict user consent. Docs explain how to avoid it but don't find the explanation clear. I had to declare this

ENV["JUPYTER"]="C:/programs/WinPython-3.5.2.2_64/python-3.5.2.amd64/Scripts/jupyter"

to really prevent a Conda installation
 

Daniel Carrera

unread,
Sep 29, 2016, 8:07:20 AM9/29/16
to julia...@googlegroups.com
Hi everyone,

I created a new issue asking the Julia developers to please restore the earlier behaviour. I would be immensely grateful if you could write on this issue and let the Julia developers know that I am not the only person who would be happier without the sea of warnings.


Cheers,
Daniel.


Tom Breloff

unread,
Oct 12, 2016, 1:22:21 PM10/12/16
to julia-users
I just immediately found a bug thanks to the redefinition warning:

julia> using Plots; plotlyjs()
INFO: Recompiling stale cache file /home/tom/.julia/lib/v0.5/Plots.ji for module Plots.
WARNING: Method definition apply_recipe(Base.Dict{Symbol, Any}, Type{Base.Dates.Date}, Base.Dates.Date) in module Plots at /home/tom/.julia/v0.5/RecipesBase/src/RecipesBase.jl:232 overwritten at /home/tom/.julia/v0.5/RecipesBase/src/RecipesBase.jl:232.

So... thanks. :)

Reply all
Reply to author
Forward
0 new messages