I followed the official Quick Tutorial <https://docs.pylonsproject.org/projects/pyramid/en/latest/quick_tutorial/index.html> for Pyramid, up until Step 9: Organizing Views With View Classes. I meticulously followed a similar pattern of instructions for most steps:
- Copy the previous step's code to the new step - a new project with a Python package called "tutorial". - Install requirements for the new project using "pip install -e ." - Change the code from the previous step - Change the tests from the previous step - Run the new project with "pserve development.ini --reload" I finished the View Classes step and the tests passed, and the app ran properly, as expected. I then took a break, during which my PC crashed and restarted. I then took up the tutorial on Step 10: Handling Web Requests and Responses, and followed all the above steps, just as I have successfully followed them for each previous step. I changed the code and tests, and the new tests pass, but when I try and run my app with "pserve development.ini --reload", a message gets printed: *Starting monitor for PID 16628.* Followed by a long traceback that ends with: *ModuleNotFoundError: No module named 'tutorial'* *Press ENTER or change a file to reload* Now when I try and run the code for any of the tutorial's previous steps, that all worked before, I get the same error. This doesn't look like a simple missing package, because the package is present in the tutorial step's code, and all 5 unit and functional tests pass. What could be wrong that the code that 'pserve' runs can't find a 'tutorial' package? Thank you -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/b2932a42-095e-4a2f-b002-826d89bcd19en%40googlegroups.com.
