Hello. I have just tried to run the "Analog Inverter with Magic" Notebook and it fails when trying to import the cairosvg module.
The error message is as follows:
"---------------------------------------------------------------------------
Exception Traceback (most recent call last)
in <cell line: 2>()
1 import gdstk
----> 2 import cairosvg
3 from IPython.display import Image
4
5 library = gdstk.read_gds('mosfet.gds')
4 frames
/usr/local/lib/python3.10/dist-packages/cffi/api.py in init(self, backend)
52 if hasattr(backend, 'file'):
53 # CPython
---> 54 raise Exception("Version mismatch: this is the 'cffi' package version %s, located in %r. When we import the top-level '_cffi_backend' extension module, we get version %s, located in %r. The two versions should be equal; check your installation." % (
55 version, file,
56 backend.version, backend.file))
Exception: Version mismatch: this is the 'cffi' package version 1.16.0, located in '/usr/local/lib/python3.10/dist-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.15.1, located in '/usr/local/lib/python3.10/site-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so'. The two versions should be equal; check your installation."
Hello. I have just tried to run the "Analog Inverter with Magic" Notebook and it fails when trying to import the cairosvg module. The error message is as follows: "--------------------------------------------------------------------------- Exception Traceback (most recent call last) in <cell line: 2>()
1 import gdstk
----> 2 import cairosvg
3 from IPython.display import Image
4
5 library = gdstk.read_gds('mosfet.gds')
4 frames /usr/local/lib/python3.10/dist-packages/cffi/api.py in init(self, backend) 52 if hasattr(backend, 'file'): 53 # CPython ---> 54 raise Exception("Version mismatch: this is the 'cffi' package version %s, located in %r. When we import the top-level '_cffi_backend' extension module, we get version %s, located in %r. The two versions should be equal; check your installation." % ( 55 version, file, 56 backend.version, backend.file))
Exception: Version mismatch: this is the 'cffi' package version 1.16.0, located in '/usr/local/lib/python3.10/dist-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.15.1, located in '/usr/local/lib/python3.10/site-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so'. The two versions should be equal; check your installation."
Any suggestion on how to solve this issue?
Thank you in advance for any suggestions.