Re: importlib changes from py3.7 to py3.8

2020-09-20 Thread Eko palypse
Hello Greg, thank you for your answer. I have checked it twice and the file is really empty. I even opened it with a hex editor - no content. BUT in order to create a bug ticket I tried to make a mcve and I didn't succeed. I copied the function (load_plugins) 1 to 1, but outside my program it

Re: importlib changes from py3.7 to py3.8

2020-09-19 Thread Greg Ewing
On 19/09/20 7:51 am, Eko palypse wrote: ValueError: source code string cannot contain null bytes Any idea what happened here? Seems I've missed that __init__.py's aren't allowed to be empty anymore. Adding a single # solved the issue. I just tried importing a package with an empty

Re: importlib changes from py3.7 to py3.8

2020-09-19 Thread Eko palypse
Seems I've missed that __init__.py's aren't allowed to be empty anymore. Adding a single # solved the issue. Eren -- https://mail.python.org/mailman/listinfo/python-list

importlib changes from py3.7 to py3.8

2020-09-18 Thread Eko palypse
With python3.7 I'm able to use _module = importlib.import_module('app.plugins.plugin_dir.plugin_name') succesfully but with python 3.8 this results in File "D:\ProgramData\Python\Python38_64\lib\importlib\__init__.py", line 127, in import_module return