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.

Installation issue... Jupyter Notebook

See original GitHub issue

I don’t know what i’m doing wrong…Looking forward to play with it… !python -V Python 3.7.4 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

from clifford.g3 import * 

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
TypeError: expected dtype object, got 'numpy.dtype[bool_]'

The above exception was the direct cause of the following exception:

SystemError                               Traceback (most recent call last)
<ipython-input-3-d4101a335cb8> in <module>
----> 1 from clifford.g3 import *

C:\ProgramData\Anaconda3\lib\site-packages\clifford\g3.py in <module>
      1 from . import Cl
----> 2 layout, blades = Cl(3)
      3 locals().update(blades)

C:\ProgramData\Anaconda3\lib\site-packages\clifford\__init__.py in Cl(p, q, r, sig, names, firstIdx, mvClass)
    731     """
    732     if sig is None:
--> 733         layout = Layout._from_Cl(p, q, r, firstIdx=firstIdx, names=names)
    734     else:
    735         layout = Layout._from_sig(sig, firstIdx=firstIdx, names=names)

C:\ProgramData\Anaconda3\lib\site-packages\clifford\_layout.py in _from_Cl(cls, p, q, r, **kwargs)
    161     def _from_Cl(cls, p=0, q=0, r=0, **kwargs):
    162         """ Factory method from a ${Cl}_{p,q,r}$ notation """
--> 163         return cls._from_sig([0]*r + [+1]*p + [-1]*q, **kwargs)
    164 
    165     def __hash__(self):

C:\ProgramData\Anaconda3\lib\site-packages\clifford\_layout.py in _from_sig(cls, sig, firstIdx, **kwargs)
    156         bladeTupList = cf.elements(len(sig), firstIdx)
    157 
--> 158         return cls(sig, bladeTupList, firstIdx=firstIdx, **kwargs)
    159 
    160     @classmethod

C:\ProgramData\Anaconda3\lib\site-packages\clifford\_layout.py in __init__(self, sig, bladeTupList, firstIdx, names)
    144                 (len(names), self.gaDims))
    145 
--> 146         self._genTables()
    147         self.adjoint_func = get_adjoint_function(self.gradeList)
    148         self.left_complement_func = self._gen_complement_func(wedge=lambda a, b: a^b)

C:\ProgramData\Anaconda3\lib\site-packages\clifford\_layout.py in _genTables(self)
    309             self.linear_map_to_bitmap,
    310             self.bitmap_to_linear_map,
--> 311             self.sig
    312         )
    313         self.omt = sparse.where(omt_prod_mask, self.gmt, self.gmt.dtype.type(0))

C:\ProgramData\Anaconda3\lib\site-packages\clifford\__init__.py in construct_tables(gradeList, linear_map_to_bitmap, bitmap_to_linear_map, signature)
    145     # wrap the numba one
    146     indices, *arrs = _numba_construct_tables(
--> 147         gradeList, linear_map_to_bitmap, bitmap_to_linear_map, signature
    148     )
    149     dims = len(gradeList)

SystemError: CPUDispatcher(<function _numba_construct_tables at 0x0000023C7FDF6318>) returned a result with an error set

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Below is an other try through Binder: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

from clifford.g3 import * 

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
TypeError: expected dtype object, got 'numpy.dtype[bool_]'

The above exception was the direct cause of the following exception:

SystemError                               Traceback (most recent call last)
<ipython-input-3-d4101a335cb8> in <module>
----> 1 from clifford.g3 import *

C:\ProgramData\Anaconda3\lib\site-packages\clifford\g3.py in <module>
      1 from . import Cl
----> 2 layout, blades = Cl(3)
      3 locals().update(blades)

C:\ProgramData\Anaconda3\lib\site-packages\clifford\__init__.py in Cl(p, q, r, sig, names, firstIdx, mvClass)
    731     """
    732     if sig is None:
--> 733         layout = Layout._from_Cl(p, q, r, firstIdx=firstIdx, names=names)
    734     else:
    735         layout = Layout._from_sig(sig, firstIdx=firstIdx, names=names)

C:\ProgramData\Anaconda3\lib\site-packages\clifford\_layout.py in _from_Cl(cls, p, q, r, **kwargs)
    161     def _from_Cl(cls, p=0, q=0, r=0, **kwargs):
    162         """ Factory method from a ${Cl}_{p,q,r}$ notation """
--> 163         return cls._from_sig([0]*r + [+1]*p + [-1]*q, **kwargs)
    164 
    165     def __hash__(self):

C:\ProgramData\Anaconda3\lib\site-packages\clifford\_layout.py in _from_sig(cls, sig, firstIdx, **kwargs)
    156         bladeTupList = cf.elements(len(sig), firstIdx)
    157 
--> 158         return cls(sig, bladeTupList, firstIdx=firstIdx, **kwargs)
    159 
    160     @classmethod

C:\ProgramData\Anaconda3\lib\site-packages\clifford\_layout.py in __init__(self, sig, bladeTupList, firstIdx, names)
    144                 (len(names), self.gaDims))
    145 
--> 146         self._genTables()
    147         self.adjoint_func = get_adjoint_function(self.gradeList)
    148         self.left_complement_func = self._gen_complement_func(wedge=lambda a, b: a^b)

C:\ProgramData\Anaconda3\lib\site-packages\clifford\_layout.py in _genTables(self)
    309             self.linear_map_to_bitmap,
    310             self.bitmap_to_linear_map,
--> 311             self.sig
    312         )
    313         self.omt = sparse.where(omt_prod_mask, self.gmt, self.gmt.dtype.type(0))

C:\ProgramData\Anaconda3\lib\site-packages\clifford\__init__.py in construct_tables(gradeList, linear_map_to_bitmap, bitmap_to_linear_map, signature)
    145     # wrap the numba one
    146     indices, *arrs = _numba_construct_tables(
--> 147         gradeList, linear_map_to_bitmap, bitmap_to_linear_map, signature
    148     )
    149     dims = len(gradeList)

SystemError: CPUDispatcher(<function _numba_construct_tables at 0x0000023C7FDF6318>) returned a result with an error set

1

1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
charpelletiercommented, Oct 6, 2021

Ok I fixed it by creating a new environment including : numpy:1.21.2,
numba:0.53.1 , python:3.7.11 ,

jupyter notebook: 6.4.3

0reactions
MasterJamescommented, Oct 6, 2021

Excellent! Happy computing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

jupyter notebook installation issue using pip - Stack Overflow
I had a problem with jupyter notebook. Every time I started a notebook, kernel died. But got this error: 'jupyter' is not recognized...
Read more >
What to do when things go wrong - The Jupyter Notebook
Jupyter doesn't load or doesn't work in the browser · Try in another browser (e.g. if you normally use Firefox, try...
Read more >
Problem installing Jupyter (Solved) - Codecademy Forums
I am being given an error no matter what I try ... 3 (recommended to stay updated) use this command " pip3 install...
Read more >
Step 1: Installing Jupyter Notebook - cs.wisc.edu
Installation via pip · First, make sure you have installed: Python 2.7 · pip · Make sure you have upgraded pip to the...
Read more >
How to install Jupyter Notebook on Windows? - GeeksforGeeks
Installing Jupyter Notebook using Anaconda: ; Launch Anaconda Navigator: Anaconda-Navigator ; Click on the Install Jupyter Notebook Button:
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