Closed ganatma closed 6 months ago
Are you installing from pip or conda? (My guess is pip?)
Do you see this error anywhere else? It doesn't look like it is caused by PySR, but from some issue with your Python environment. See https://stackoverflow.com/q/65670259/2689923
See this section of the errror:
atal Python error: init_import_size: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\site.py", line 73, in
import os
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\os.py", line 29, in
from _collections_abc import _check_methods
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib_collections_abc.py", line 12, in
GenericAlias = type(list[int])
TypeError: 'type' object is not subscriptable
Looks like this part of the Python install is broken?
Hi, @ganatma , this error can also be reproduced on my windows system. could you pls tell me how do you fix it?
Presumably fixed by #535
Describe the bug
Facing issues while installing pysr through
import pysr pysr.install()
julia.tools.PyCallInstallError: Precompiling PyCall failed. Fatal Python error: init_import_size: Failed to import the site module
Version (please include the following information):
Configuration
Error message
Important information from Julia may be printed before Python's Traceback