Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I configure –with-python, I get error messages saying, “warning: Not importing directory site: missing __init__.py”. How do I fix this?

0
Posted

When I configure –with-python, I get error messages saying, “warning: Not importing directory site: missing __init__.py”. How do I fix this?

0

This error message happens if you are running Python >= 2.5, and the PYTHONPATH environment variable includes the current working directory. (Python is attempting to treat the site directory in the SiLK source tree as a Python module directory.) Examples of PYTHONPATH values that can cause this error are any path beginning or ending with a colon (‘:’), and any path including a period (‘.’) as an element. The solution to this problem is to either unset the PYTHONPATH before running configure, or to ensure that all references to the current working directory are removed from PYTHONPATH before running configure.

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.