-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Unable to install FMNM module #24
Comments
Hi! It seems you are installing the package from the wrong folder. Are you sure you are inside the FMNM folder you cloned from github? |
Hi, thank you for your prompt response. I downloaded the file from the master. Do you recommend to download from other section? I am unable to paste the image of the section from where I downloaded. Thanks, |
(my_quant_lab) C:\Users\hardi>pip install -e You are running pip from C:\Users\hardi. You should run it from the FMNM directory. |
ok. I will give it a try and get back soon. |
Hi cantaro86, I was able to eliminate previous error. I cloned the package from git hub and placed it in below path. Thank you for your suggestion. path - C:\Users\hardi However, I am getting another error which is related to pyproject.toml file. Following is the message from command prompt. I also tried debugging at my end but with limited success.
× Building editable for FMNM (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. (my_quant_lab) C:\Users\hardi>pip install -e . × Building editable for FMNM (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. (my_quant_lab) C:\Users\hardi>python -version (my_quant_lab) C:\Users\hardi>python --version (my_quant_lab) C:\Users\hardi>numpy --version (my_quant_lab) C:\Users\hardi>pip install -e . × Building editable for FMNM (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. I would appreciate if there are any further suggestions on how I can eliminate this error and successfully install FMNM package? Thank you again, |
sorry for one more comment. Just an fyi, all my other python packages such as matplotlib, zipline etc.. are installed in same path as mentioned below C:\Users\hardi Thanks, |
It seems that your error is due to the version of C++ in your system. Also I still see you are running pip from the hardi directory. (my_quant_lab) C:\Users\hardi>pip install -e . You should run it from inside the repository directory. The path should be: C:\User\hardi\Financial-Models-Numerical-Methods You can check the current path with the command: pwd |
Thank you for getting back to me. I followed the steps suggested by you but very less luck.
https://visualstudio.microsoft.com/visual-cpp-build-tools/ version - Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.32.31326
C:\Users\hardi\Financial-Models-Numerical-Methods> pip install -e . PS C:\Users\hardi\Financial-Models-Numerical-Methods> pip install -e . × Building editable for FMNM (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. Thanks, |
After you install the new version of C++ you need a new virtual environment. |
Sure. I created new environment and tried again running it from terminal. Still get same error and it gets stuck in the process. Below is the path where new environment is created (venv) PS C:\Users\hardi\Financial-Models-Numerical-Methods> Following is the output from Windows Power Shell PS C:\Users\hardi\Financial-Models-Numerical-Methods> .\venv\Scripts\Activate.ps1 × Building editable for FMNM (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. |
It seems there are still problems with the C++ compiler. It is still possible to study the notebooks without using the FMNM package. |
ok. I will try to uninstall C++ version from my machine and re install again. Will try to re run again as per steps discussed above. I was looking at 1.1 Black-Scholes numerical methods notebook where FMNM module is used. However, will look at other notebooks where FMNM is not used. Thank you again for all your help, |
Hi,
I am new to python and trying to use code from 1.1 Black-Scholes numerical methods.ipynb file in jupyter notebook. As I try to install the libraries via using the set up files in this repository I am getting following error.
I suspect it is related to setup.py file used in the process. Can someone please guide me on how I can eliminate this error and successfully install FMNM libraries?
Error
ValueError: 'src/FMNM/cython/*.pyx' doesn't match any files
Following is the output from command prompt.
(my_quant_lab) C:\Users\hardi>pip install -e .
Obtaining file:///C:/Users/hardi
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... error
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "C:\Users\hardi\anaconda3\envs\my_quant_lab\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\hardi\anaconda3\envs\my_quant_lab\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\hardi\anaconda3\envs\my_quant_lab\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 132, in get_requires_for_build_editable
return hook(config_settings)
File "C:\Users\hardi\AppData\Local\Temp\pip-build-env-4438hkd8\overlay\Lib\site-packages\setuptools\build_meta.py", line 464, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
File "C:\Users\hardi\AppData\Local\Temp\pip-build-env-4438hkd8\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\hardi\AppData\Local\Temp\pip-build-env-4438hkd8\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "C:\Users\hardi\AppData\Local\Temp\pip-build-env-4438hkd8\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 27, in
File "C:\Users\hardi\AppData\Local\Temp\pip-build-env-4438hkd8\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1010, in cythonize
module_list, module_metadata = create_extension_list(
File "C:\Users\hardi\AppData\Local\Temp\pip-build-env-4438hkd8\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 845, in create_extension_list
for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
File "C:\Users\hardi\AppData\Local\Temp\pip-build-env-4438hkd8\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 117, in nonempty
raise ValueError(error_msg)
ValueError: 'src/FMNM/cython/*.pyx' doesn't match any files
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Thank you in advance,
Hardik
The text was updated successfully, but these errors were encountered: