Beginner: Using Colab or Kaggle ✅

Is it okay to use Colab instead of Kaggle because I am also encountering same error on Kaggle but Colab seems to be good for now as it does not throw such errors moreover I kinda like the interface of Colab more than kaggle.

thank you very much!!

1 Like

Is it normal that my code doesn’t work properly if I try use the Kaggle accelerator? For example, even setting up my environment and setting up the notebook doesn’t work properly when using a Kaggle GPU accelerator. I also find the ImageClassifierCleaner doesn’t work properly no matter if I use an accelerator or not. Is this normal?

This worked for me, except initially it returned that time was not defined. when I removed that line it worked. Thank you

1 Like

I have the exact same error on my Kaggle account. anyone was able to resolve it ?

I’m not sure what to do with the error I’m getting when running the Kaggle book on the first lesson. I’m running into an error on the second cell when installing the libraries.

The error I’m getting is below.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [71 lines of output]
Ignoring numpy: markers ‘python_version == “3.6” and platform_system != “AIX”’ don’t match your environment
Ignoring numpy: markers ‘python_version == “3.7” and platform_system != “AIX”’ don’t match your environment
Ignoring numpy: markers ‘python_version == “3.6” and platform_system == “AIX”’ don’t match your environment
Ignoring numpy: markers ‘python_version == “3.7” and platform_system == “AIX”’ don’t match your environment
Ignoring numpy: markers ‘python_version >= “3.8” and platform_system == “AIX”’ don’t match your environment
Collecting wheel
Using cached wheel-0.45.0-py3-none-any.whl.metadata (2.3 kB)
Collecting setuptools
Using cached setuptools-75.3.0-py3-none-any.whl.metadata (6.9 kB)
Collecting Cython>=0.29.18
Using cached Cython-3.0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
Collecting numpy==1.17.3
Using cached numpy-1.17.3.zip (6.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘done’
Collecting pybind11>=2.4.3
Using cached pybind11-2.13.6-py3-none-any.whl.metadata (9.5 kB)
Using cached wheel-0.45.0-py3-none-any.whl (72 kB)
Using cached setuptools-75.3.0-py3-none-any.whl (1.3 MB)
Using cached Cython-3.0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
Using cached pybind11-2.13.6-py3-none-any.whl (243 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status ‘error’
error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [15 lines of output]
        Running from numpy source directory.
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/tmp/pip-install-5gznu_mr/numpy_855119900a9d4ae4bb3d7a729a216681/setup.py", line 443, in <module>
            setup_package()
          File "/tmp/pip-install-5gznu_mr/numpy_855119900a9d4ae4bb3d7a729a216681/setup.py", line 422, in setup_package
            from numpy.distutils.core import setup
          File "/tmp/pip-install-5gznu_mr/numpy_855119900a9d4ae4bb3d7a729a216681/numpy/distutils/core.py", line 26, in <module>
            from numpy.distutils.command import config, config_compiler, \
          File "/tmp/pip-install-5gznu_mr/numpy_855119900a9d4ae4bb3d7a729a216681/numpy/distutils/command/config.py", line 20, in <module>
            from numpy.distutils.mingw32ccompiler import generate_manifest
          File "/tmp/pip-install-5gznu_mr/numpy_855119900a9d4ae4bb3d7a729a216681/numpy/distutils/mingw32ccompiler.py", line 34, in <module>
            from distutils.msvccompiler import get_build_version as get_build_msvc_version
        ModuleNotFoundError: No module named 'distutils.msvccompiler'
        [end of output]
  
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for numpy
    Running setup.py clean for numpy
    error: subprocess-exited-with-error
  
    × python setup.py clean did not run successfully.
    │ exit code: 1
    ╰─> [10 lines of output]
        Running from numpy source directory.
       
        `setup.py clean` is not supported, use one of the following instead:
       
          - `git clean -xdf` (cleans all files)
          - `git clean -Xdf` (cleans all versioned files, doesn't touch
                              files that aren't checked into the git repo)
       
        Add `--force` to your command to use it anyway if you must (unsupported).
       
        [end of output]
  
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed cleaning build dir for numpy
  Failed to build numpy
  ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (numpy)
  
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

2 Likes

This was giving me problems when starting out

Having the same issue! Someone help!

I encountered the same issue on Kaggle just a few minutes ago. This is due to the fact that you didn’t turn on the accelarator in Session Options on the right of the page.

Hi! I’m just starting out. I’m trying to upload a picture of cat to the first lesson, but I can’t figure out the way to do that yet. I don’t understand which volume does it use here. I come from Java/Kotlin background so it’s hard for me to get used to this magic yet. Thanks for support.

Hi! I’m starting the course and I have trouble loading my first cat image to intro notebook. I don’t understand which filesystem it uses under the hood, my mac, google colab, etc. Could you please help me with that?

I also find Colab a better option. I also ran into some errors trying to use Kaggle. Interface is much more appealing also. However it’s pretty annoying now in some cases but I think I’ll get used to it. For example, it always asks me to connect to my google drive. I think I’ll try running Jupiter Lab in Docker with volume attached

I have the same problem, MrVon. Python seems to be verry bugged overall regarding backward compatibility and dependency management. I kinda now grateful that I use gradle for my job) I’m just starting out and if I get to some optimal solution I’ll let you now in this thread. Please, tag me if you also find some solutions to these problems

HI I’m just starting the course.
I have issues with the first notebook on Kaggle.
I’ve phone verified and turned on the internet in the session settings.
Then running the first cell in the workbook (Is it a bird…) runs with no issues (although also gives no output confirmation).
However running the second cell (which has imports) just gives an error about a version mismatch:

3 Likes

I have the same issue as yunti99.
This is very new — a couple of weeks ago I was able to run the same notebook without issues.
Came back today and got this error, only it’s 3000 lines of output for me :slight_smile:
There’s no good way to attach the entire error log, so here’s a way to reproduce it:

  1. Go to the original “Is it a bird?” notebook
  2. Copy it.
  3. Run the first two cells.
  4. The second one fails.
1 Like