Skip to content
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

Pystan #109

Open
rkarr5 opened this issue Sep 8, 2020 · 8 comments
Open

Pystan #109

rkarr5 opened this issue Sep 8, 2020 · 8 comments
Labels
installation Issues related to setup and installation

Comments

@rkarr5
Copy link

rkarr5 commented Sep 8, 2020

I am not able to install the requirements through the Init.bat file. I am getting the following error. I installed Visual C++ build tools with the mentioned components. I feel like this is due to the PEP
1

@rkarr5 rkarr5 added the installation Issues related to setup and installation label Sep 8, 2020
@nabeel-oz
Copy link
Owner

Hi @rkarr5 , I checked other issues referencing this PEP and it looks like the C++ compiler is usually the issue. You should double check that you have all the necessary components of Visual C++ Build Tools installed. You could also try downgrading pip by modifying the Qlik-Py-Init file.

pip install pip==20.2

@rkarr5
Copy link
Author

rkarr5 commented Sep 9, 2020

Hi @rkarr5 , I checked other issues referencing this PEP and it looks like the C++ compiler is usually the issue. You should double check that you have all the necessary components of Visual C++ Build Tools installed. You could also try downgrading pip by modifying the Qlik-Py-Init file.

pip install pip==20.2

Thanks Nabeel for providing the workaround. I tried modifying the init file and still the issue is the same. As far as C++ compiler, I mirrored the mentioned features. I uninstalled and installed again but still no luck,

@nabeel-oz
Copy link
Owner

I had time to try a fresh install today and it went ok for me with PyTools v.8.1. Could you post a screen capture of the installed VS Build Tools components and the full error log?

@rkarr5
Copy link
Author

rkarr5 commented Sep 15, 2020

Thanks Nabeel for taking the time to check again. Here are the images that contain the build tools and error log.
ErrorLog.txt
VSBUILD

@nabeel-oz
Copy link
Owner

The log indicates that the problem is with the C++ compiler. The failure is on cpp files and MSVC is being referenced in the log.

To check your Build Tools components you will need to click on in in Control Panel > Programs and Features and then choose the Change option. You're probably missing some required component.

@rkarr5
Copy link
Author

rkarr5 commented Sep 21, 2020

I tried uninstalling and installing the C++ Build tools but the issue still persists. Is there a way that I can run the above code with Anaconda. I was able to install pystan in the anaconda environment. But I am not sure how to replicate the bat files in that environment.

@nabeel-oz
Copy link
Owner

@rkarr5, that's unfortunate. I haven't tried running the code with Anaconda so can't provide instructions. You could try setting up a virtual environment with conda with the packages specified in the Qlik-Py-Init file. The versions will need to match the ones in the file.

@rkarr5
Copy link
Author

rkarr5 commented Oct 1, 2020

Hi Nabeel, I installed a fresh os and then did all the installation stuff again which fixed the issue. Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Issues related to setup and installation
Projects
None yet
Development

No branches or pull requests

2 participants