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, Michael Merickel <mmeri...@gmail.com> wrote: > 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 <sydo.luci...@gmail.com> wrote: > > 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 be found. > During handling of the above exception, another exception occurred: > > And trace ends with: > File "/usr/lib/python3.8/posixpath.py", line 152, in dirname > p = os.fspath(p) > > > Is it by design ? > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/7edc8353-96b9-4bcc-85eb-372f049e6934%40googlegroups.com > <https://groups.google.com/d/msgid/pylons-discuss/7edc8353-96b9-4bcc-85eb-372f049e6934%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/1E9C3387-2E70-4C4A-8AD7-F47905B31D6C%40gmail.com > <https://groups.google.com/d/msgid/pylons-discuss/1E9C3387-2E70-4C4A-8AD7-F47905B31D6C%40gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAJspodiZ1AbR5bCDpypwjw0H2pZ-6XcAEtbP%3DLO8pducqBk65g%40mail.gmail.com.