question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update numba jitclass imports

See original GitHub issue

Hi! Thanks a lot for this package.

I’d like to raise the issue that Numba has changed the location of jitclass. In the current version (0.49) we are getting a bunch of DeprecationWarnings, and from 0.50 this imports will fail. The new location is numba.experimental.jitclass.

C:\Users\\miniconda3\envs\litt-conda\lib\site-packages\fastparquet\encoding.py:222: NumbaDeprecationWarning: The 'numba.jitclass' decorator has moved to 'numba.experimental.jitclass' to better reflect the experimental nature of the functionality. Please update your imports to accommodate this change and see http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#change-of-jitclass-location for the time frame.
  Numpy8 = numba.jitclass(spec8)(NumpyIO)
C:\Users\\miniconda3\envs\litt-conda\lib\site-packages\fastparquet\encoding.py:224: NumbaDeprecationWarning: The 'numba.jitclass' decorator has moved to 'numba.experimental.jitclass' to better reflect the experimental nature of the functionality. Please update your imports to accommodate this change and see http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#change-of-jitclass-location for the time frame.
  Numpy32 = numba.jitclass(spec32)(NumpyIO)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
martindurantcommented, May 12, 2020

Done.

1reaction
martindurantcommented, Jun 24, 2020

The version on conda-forge includes this fix

conda install -c conda-forge fastparquet
Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiling Python classes with @jitclass - Numba
Numba supports code generation for classes via the numba.jitclass() decorator. ... from numba import jitclass, types, typed # key and value types kv_ty ......
Read more >
Compiling Python classes with @jitclass
List explicitly as part of the spec passed to jitclass . First, using explicit Numba types and explicit construction. from numba import jitclass, ......
Read more >
How to update a jitclass variable with its string name by ...
Here is a solution I came up with. I first wrote a function that return a list of the variable names I can...
Read more >
Numba — Programming for Quantitative Economics
!pip install --upgrade quantecon ... import numpy as np import quantecon as qe import matplotlib.pyplot as plt ... from numba import jitclass, float64...
Read more >
numba/numba - Gitter
Can't even get python to import numba ... installed it via pip, any ideas? ... Please upgrade your Python as Python 2.7 won't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found