NREL / buildstock-query

BuildStockQuery is a python library for querying datasets generated by ResStock™ and ComStock™.
https://nrel.github.io/buildstock-query/
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

BSQ conda installation #19

Closed katelynstenger closed 1 year ago

katelynstenger commented 1 year ago

When BSQ is installed like other packages, it is not recognized in a BSQ environment.

Current Behavior

BSQ only works when it is installed at the location of the Jupiter notebook that is calling it.

Expected Behavior

BSQ should be able to be installed and called like other packages. (pip install at the command line and accessible in a specific condo environment)

Steps to Reproduce

  1. Try to install BSQ following instruction on GitHub (https://github.com/NREL/buildstock-query#install-as-a-library-to-your-existing-project ): pip install git+https://github.com/NREL/buildstock-query
  2. Receive error shown in figure MicrosoftTeams-image (3)
  3. Error is that BSQ "requirement is already installed", but when ran pandas is not callable.

Also:

  1. BSQ downloaded at the conda package level (not locally to the file location)
  2. BSQ requirements will be met
  3. When BSQ is called in Jupiter notebook, the package cannot be found.

Short Term Work Around Solution

In the command line, I change directories to the specific juputer notebook calling buildStockQuery. Then I install BSQ using the instruction on GitHub. I activate the BSQ environment. Then I go into the command line again, and launch a Jupyter notebook (same directory). I call BSQ in Jupiter notebook like the tutorial and it works.

Environment

Some additional details about your environment for this issue (if relevant):

afontani commented 1 year ago

@rajeee to follow up with @katelynstenger

afontani commented 1 year ago

@katelynstenger : We think this has been resolved. Can you give it another try?

katelynstenger commented 1 year ago

This has been resolved. Launch Jupyter Notebook from the terminal to activate the correct BSQ conda environment.