ImportError during install - missing module "site"
Opened this issue · 1 comments
Attempted to install using raco pkg install -n python git://github.com/pedropramos/PyonR
on Windows 7 64-bit with Racket 6.1.1 and got the following error:
raco setup: 3 making: (pkgs)/python
raco setup: 3 making: (pkgs)/python/c
ImportError: No module named site
Installation then quit. Using raco pkg show
lists the python
package as installed, however opening DrRacket and attempting to enter #lang python
causes DrRacket to immediately close itself. Weird.
That seems like an issue your CPython (Python's reference implementation) distribution, which is only used for the 'cpyimport' mechanism.
CPython is requiring the site
module, which is missing from your distribution. That is indeed weird because the site
module is part of the Python standard library and therefore should be included in every CPython distribution.
In any case, you are not the first one to be having issues with CPython during installation, therefore I have disabled the 'cpyimport' statement in the latest update, and provided a way to enable it manually after installation. This way, PyonR's installation should now proceed smoothly for everyone. Just run raco pkg update python
and let me know if there is still an issue.
If you wish to use the 'cpyimport' statement, I can only advise you to try installing the site
module on your CPython distribution or reinstalling CPython altogether.
I am sorry I cannot give you a more detailed feedback. I am quite limited in the ways I can deal with issues related to CPython, since I am relying on the user's installation, which I have no way to control.