A little stuck with chainer

error contents

$ python
>>> from chainer import cuda
>>> cuda.init(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "(python directory)/site-packages/chainer/cuda.py", line 125, in init
    cumisc.init(mem_alloc)
TypeError: init() takes no arguments (1 given)

Cause

It looks like the scikits.cuda package version wasn't right (I failed with 0.42)

Solution

$ pip uninstall scikits.cuda
$ pip install scikits.cuda==0.5.0b3

If Mako doesn't have a package, put it in

$ pip install Mako

Recommended Posts

A little stuck with chainer
Seq2Seq (1) with chainer
[Python3] A story stuck with time zone conversion
A story stuck with handling Python binary data
A little advanced job scheduling with AP Scheduler
A4 size with python-pptx
Use tensorboard with Chainer
Decorate with a decorator
Get financial data with python (then a little tinkering)
[PyTorch] A little understanding of CrossEntropyLoss with mathematical formulas
Let's make dependency management with pip a little easier
A story linked with Google Cloud Storage with a little ingenuity
Make a Linux version of OpenSiv3D with find_package a little easier
Learn librosa with a tutorial 1
Draw a graph with NetworkX
Try implementing RBM with chainer.
Try programming with a shell!
Create a homepage with django
Learn elliptical orbits with Chainer
Seq2Seq (3) ~ CopyNet Edition ~ with chainer
Use chainer with Jetson TK1
Using a printer with Debian 10
Make a fortune with Python
Neural network starting with Chainer
Create a heatmap with pyqtgraph
Implemented Conditional GAN with chainer
Image caption generation with Chainer
A little more about FIFO
Implemented SmoothGrad with Chainer v2
Deep Embedded Clustering with Chainer 2.0
Create a directory with python
Draw a graph with networkx
Easily cProfile with a decorator
Make a fire with kdeplot
A story about a python beginner stuck with No module named'http.server'
Write processing time measurement a little easier using the with clause
A story stuck with the installation of the machine learning library JAX
Postgres environment construction with Docker I struggled a little, so note
LaTeX and R (a little Python) environment construction with SublimeText3 (Windows)
Building a kubernetes environment with ansible 2
[Python] What is a with statement?
Solve ABC163 A ~ C with Python
Operate a receipt printer with python
A python graphing manual with Matplotlib.
Play with a turtle with turtle graphics (Part 1)
Draw a graph with Julia + PyQtGraph (2)
Generate a normal distribution with SciPy
[Java] A little mysterious split behavior
Creating a decision tree with scikit-learn
Let's make a GUI with python.
Make a sound with Jupyter notebook
Multilayer Perceptron with Chainer: Function Fitting
Enumerate files with a specific extension
Creating a Flask server with Docker
Build a deb file with Docker
Solve ABC166 A ~ D with Python
Draw a loose graph with matplotlib
Let's make a breakout with wxPython
Create a virtual environment with Python!
Try horse racing prediction with Chainer
I made a fortune with Python.