Hello everyone, First of all I am fairly new and naive in this field. I needed to install peartree library for my project work but couldn't able to do so. I think there is some issue with PROJ_DIR variable. I have tried many different ways suggested on the web to get rid of it and modified my responses as well. Still problem remains the same, just the form of error changes slightly. Please help me understand the problem as it has started to become frustrating. Thanks in advance.
System Details:
OS: Windows 10 64 bit
Python Version: 3.7.4
(base) C:\WINDOWS\system32>pip install peartree
Collecting peartree
Using cached peartree-0.6.2-py2.py3-none-any.whl (41 kB)
Requirement already satisfied: fiona>=1.6.1 in c:\users\pranav\anaconda3\lib\site-packages (from peartree) (1.8.13)
Collecting partridge>=1.0.0
Using cached partridge-1.1.1-py2.py3-none-any.whl (15 kB)
Collecting geopandas>=0.4.0
Using cached geopandas-0.7.0-py2.py3-none-any.whl (928 kB)
Requirement already satisfied: networkx>=2.0 in c:\users\pranav\anaconda3\lib\site-packages (from peartree) (2.3)
Requirement already satisfied: click-plugins>=1.0 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (1.1.1)
Requirement already satisfied: click>=4.0 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (7.0)
Requirement already satisfied: munch in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (2.5.0)
Requirement already satisfied: attrs>=17 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (19.2.0)
Requirement already satisfied: gdal~=3.0.2 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (3.0.4)
Requirement already satisfied: cligj>=0.5 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (0.5.0)
Requirement already satisfied: six>=1.7 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (1.12.0)
Requirement already satisfied: pandas in c:\users\pranav\anaconda3\lib\site-packages (from partridge>=1.0.0->peartree) (0.25.1)
Collecting isoweek
Using cached isoweek-1.3.3-py2.py3-none-any.whl (7.1 kB)
Collecting cchardet
Using cached cchardet-2.1.6-cp37-cp37m-win_amd64.whl (115 kB)
Collecting shapely
Using cached Shapely-1.7.0-cp37-cp37m-win_amd64.whl (1.0 MB)
Collecting pyproj>=2.2.0
Using cached pyproj-2.6.1.post1.tar.gz (545 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\pranav\anaconda3\python.exe' 'c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\Users\Pranav\AppData\Local\Temp\tmpnue39fcj'
cwd: C:\Users\Pranav\AppData\Local\Temp\pip-install-1y0g3z1x\pyproj
Complete output (34 lines):
PROJ_DIR is set, using existing proj4 installation..
Traceback (most recent call last):
File "c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py", line 280, in
main()
File "c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py", line 263, in main
json_out['return_val'] = hook(hook_input['kwargs'])
File "c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py", line 114, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Pranav\AppData\Local\Temp\pip-build-env-k1kd8xa1\overlay\Lib\site-packages\setuptools\build_meta.py", line 148, in get_requires_for_build_wheel
config_settings, requirements=['wheel'])
File "C:\Users\Pranav\AppData\Local\Temp\pip-build-env-k1kd8xa1\overlay\Lib\site-packages\setuptools\build_meta.py", line 128, in _get_build_requires
self.run_setup()
File "C:\Users\Pranav\AppData\Local\Temp\pip-build-env-k1kd8xa1\overlay\Lib\site-packages\setuptools\build_meta.py", line 250, in run_setup
self).run_setup(setup_script=setup_script)
File "C:\Users\Pranav\AppData\Local\Temp\pip-build-env-k1kd8xa1\overlay\Lib\site-packages\setuptools\build_meta.py", line 143, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 243, in
ext_modules=get_extension_modules(),
File "setup.py", line 147, in get_extension_modules
proj_dir = get_proj_dir()
File "setup.py", line 60, in get_proj_dir
check_proj_version(proj_dir)
File "setup.py", line 20, in check_proj_version
proj_ver_bytes = subprocess.check_output(proj, stderr=subprocess.STDOUT)
File "c:\users\pranav\anaconda3\lib\subprocess.py", line 395, in check_output
kwargs).stdout
File "c:\users\pranav\anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\pranav\anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "c:\users\pranav\anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
ERROR: Command errored out with exit status 1: 'c:\users\pranav\anaconda3\python.exe' 'c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\Users\Pranav\AppData\Local\Temp\tmpnue39fcj' Check the logs for full command output.
Hello everyone, First of all I am fairly new and naive in this field. I needed to install peartree library for my project work but couldn't able to do so. I think there is some issue with PROJ_DIR variable. I have tried many different ways suggested on the web to get rid of it and modified my responses as well. Still problem remains the same, just the form of error changes slightly. Please help me understand the problem as it has started to become frustrating. Thanks in advance.
System Details: OS: Windows 10 64 bit Python Version: 3.7.4
(base) C:\WINDOWS\system32>pip install peartree Collecting peartree Using cached peartree-0.6.2-py2.py3-none-any.whl (41 kB) Requirement already satisfied: fiona>=1.6.1 in c:\users\pranav\anaconda3\lib\site-packages (from peartree) (1.8.13) Collecting partridge>=1.0.0 Using cached partridge-1.1.1-py2.py3-none-any.whl (15 kB) Collecting geopandas>=0.4.0 Using cached geopandas-0.7.0-py2.py3-none-any.whl (928 kB) Requirement already satisfied: networkx>=2.0 in c:\users\pranav\anaconda3\lib\site-packages (from peartree) (2.3) Requirement already satisfied: click-plugins>=1.0 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (1.1.1) Requirement already satisfied: click>=4.0 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (7.0) Requirement already satisfied: munch in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (2.5.0) Requirement already satisfied: attrs>=17 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (19.2.0) Requirement already satisfied: gdal~=3.0.2 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (3.0.4) Requirement already satisfied: cligj>=0.5 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (0.5.0) Requirement already satisfied: six>=1.7 in c:\users\pranav\anaconda3\lib\site-packages (from fiona>=1.6.1->peartree) (1.12.0) Requirement already satisfied: pandas in c:\users\pranav\anaconda3\lib\site-packages (from partridge>=1.0.0->peartree) (0.25.1) Collecting isoweek Using cached isoweek-1.3.3-py2.py3-none-any.whl (7.1 kB) Collecting cchardet Using cached cchardet-2.1.6-cp37-cp37m-win_amd64.whl (115 kB) Collecting shapely Using cached Shapely-1.7.0-cp37-cp37m-win_amd64.whl (1.0 MB) Collecting pyproj>=2.2.0 Using cached pyproj-2.6.1.post1.tar.gz (545 kB) Installing build dependencies ... done Getting requirements to build wheel ... error ERROR: Command errored out with exit status 1: command: 'c:\users\pranav\anaconda3\python.exe' 'c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\Users\Pranav\AppData\Local\Temp\tmpnue39fcj' cwd: C:\Users\Pranav\AppData\Local\Temp\pip-install-1y0g3z1x\pyproj Complete output (34 lines): PROJ_DIR is set, using existing proj4 installation..
Traceback (most recent call last): File "c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py", line 280, in
main()
File "c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py", line 263, in main
json_out['return_val'] = hook(hook_input['kwargs'])
File "c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py", line 114, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Pranav\AppData\Local\Temp\pip-build-env-k1kd8xa1\overlay\Lib\site-packages\setuptools\build_meta.py", line 148, in get_requires_for_build_wheel
config_settings, requirements=['wheel'])
File "C:\Users\Pranav\AppData\Local\Temp\pip-build-env-k1kd8xa1\overlay\Lib\site-packages\setuptools\build_meta.py", line 128, in _get_build_requires
self.run_setup()
File "C:\Users\Pranav\AppData\Local\Temp\pip-build-env-k1kd8xa1\overlay\Lib\site-packages\setuptools\build_meta.py", line 250, in run_setup
self).run_setup(setup_script=setup_script)
File "C:\Users\Pranav\AppData\Local\Temp\pip-build-env-k1kd8xa1\overlay\Lib\site-packages\setuptools\build_meta.py", line 143, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 243, in
ext_modules=get_extension_modules(),
File "setup.py", line 147, in get_extension_modules
proj_dir = get_proj_dir()
File "setup.py", line 60, in get_proj_dir
check_proj_version(proj_dir)
File "setup.py", line 20, in check_proj_version
proj_ver_bytes = subprocess.check_output(proj, stderr=subprocess.STDOUT)
File "c:\users\pranav\anaconda3\lib\subprocess.py", line 395, in check_output
kwargs).stdout
File "c:\users\pranav\anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\pranav\anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "c:\users\pranav\anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
ERROR: Command errored out with exit status 1: 'c:\users\pranav\anaconda3\python.exe' 'c:\users\pranav\anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\Users\Pranav\AppData\Local\Temp\tmpnue39fcj' Check the logs for full command output.