Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Import netgen error

More
2 years 7 months ago #3940 by bakerk
Import netgen error was created by bakerk
Hi,

I had some issues with my python files so have had to reinstall everything from scratch (using jupyter notebook to run my scripts). I've followed the steps on the downloads page for both installing via anaconda and the other install method. Both times I get the same error:

D:\Python\lib\site-packages\ipykernel\eventloops.py:256: RuntimeWarning: coroutine 'Kernel.do_one_iteration' was never awaited
self.func()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

when I run the command 'import netgen.gui'. Any ideas as to what I can do to resolve this error? Google suggested reinstalling the ipykernel but that didn't make a difference.

Thanks,
Kaite
More
2 years 7 months ago #3941 by matthiash
Replied by matthiash on topic Import netgen error
Hi Kaite,

which version of ipykernel do you have?
You either need <=4.10 or >= 5.3.2, see here:
github.com/ipython/ipykernel/pull/523

Best,
Matthias
More
2 years 7 months ago #3942 by bakerk
Replied by bakerk on topic Import netgen error
Changing my version of ipykernel has worked! Thank you
Time to create page: 0.112 seconds