Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't serve modules present but reported as not present #432

Open
flatmax opened this issue Nov 3, 2021 · 3 comments
Open

Can't serve modules present but reported as not present #432

flatmax opened this issue Nov 3, 2021 · 3 comments

Comments

@flatmax
Copy link
Contributor

flatmax commented Nov 3, 2021

I've installed requirements :

pip install -r requirements.txt

Reports that all requirements are already satisfied. However when I run the serve command :

$ make serve
./generate-html.py en
This script requires the Markdown module
Install with: sudo pip install Markdown
make: *** [Makefile:15: html] Error 1

Not sure what to do !

@Gadgetoid
Copy link
Collaborator

That's... weird. Broken Markdown package, perhaps?

Might be worth changing these lines in generate-html.py :

https://github.com/Gadgetoid/Pinout.xyz/blob/b8f16b9c7305a42b77b6e90b2b25c829fd7f8e57/generate-html.py#L9-L12

To drop the try/catch and just import the module to see what the actual error is.

@flatmax
Copy link
Contributor Author

flatmax commented Nov 3, 2021

Ok - tried that , same problem. However now worked it out.
My system runs python2.7 by default pip was installing for python3. Updated the makefile to call python3 when executing.

@Gadgetoid
Copy link
Collaborator

I need to switch everything over to Python 3, I think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants