I’m new to Python coding and working through LPTHW and am struggling with Ex 48. Any help would be appreciated. I’ll try to describe my problems below:
I think I have set up my project directory correctly as per the previous exercises. It appears like this:
ex48/
bin
docs
ex48/ init.py
lexicon.py
tests/ init.py
lexicon_tests.py
setup.py
The setup.py file mirrors Zed’s, the lexicon_test.py mirrors the first 6 lines from Zed’s pre-written code in the exercise, and my lexicon.py file contains
I’m watching the video ( LPy3THW Ex48) and at 9:48 Zed types nosetests .\lexicon_tests.py but when I try this an error (ERROR: Failure: ImportError (No module named ’ ')) occurs.
I’m sure it something very obvious but I can’t work out what I’m doing wrong. Any ideas?
It´s good that you showed your skeleton for this project.
I want to suggest that you wrap it ( and all code ) between square brackets with the word “code” at top and “/code” below. You type like this: