Re: [pylons-discuss] Python 3.8 and __init__.py in views directory

2020-03-25 Thread Sydo Luciani
Sorry, no , after deleting __pycache__ and reinstalling app using pip install -e . it worked with Python 3.5 but not with python 3.8. p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType Probably not important since recreating __init__.py fixes the problem but

Re: [pylons-discuss] Python 3.8 and __init__.py in views directory

2020-03-25 Thread Jonathan Vanasco
Stuff like this often happens because Python has a compiled/cached version. Under Python2, `.pyc` files were in the same directory as the `.py` file ; under Python3 they are in a `__pycache__` directory and versioned to the interpreter. you probably had a

Re: [pylons-discuss] Python 3.8 and __init__.py in views directory

2020-03-25 Thread Sydo Luciani
Yes, I was missing __init__.py in views folder, but didn't have any problem while working in Python 3.5 environment, error started when switched to Python 3.7 and Python 3.8, and creating __init__ fixed the issue. The different behavior brought up curiosity. On Wed, 25 Mar 2020 at 10:28,

Re: [pylons-discuss] Python 3.8 and __init__.py in views directory

2020-03-25 Thread Michael Merickel
Sorry can you give more context? Did you delete the __init__.py in your views folder? If so, I would expect some issues. > On Mar 24, 2020, at 22:12, Sydo Luciani wrote: > > No problem with python 3.5 environment, but missing views/__init__.py, throws > below errors in Python 3.8. > > Even

[pylons-discuss] Python 3.8 and __init__.py in views directory

2020-03-24 Thread Sydo Luciani
No problem with python 3.5 environment, but missing views/__init__.py, throws below errors in Python 3.8. Even including relative path to view module in config.scan('.module_name/views/view_module') has no effect. Error starts with: pyramid.httpexceptions.HTTPNotFound: The resource could not