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

ModuleNotFoundError: No module named 'nvstrings' (rapids-colab.ipynb) #104

Closed
gumdropsteve opened this issue Jul 16, 2019 · 2 comments
Closed
Assignees
Labels
waiting on author feedback left, need author's action

Comments

@gumdropsteve
Copy link
Contributor

Error

ModuleNotFoundError: No module named 'nvstrings'

To Reproduce

Run cuDF cell after executing prior cells from rapids-colab.ipynb example notebook in Google Colab.

Notebook linked under "Get Started" on rapids.ai.

Code

import nvstrings, nvcategory, cudf
import io, requests

# download CSV file from GitHub
url="https://github.com/plotly/datasets/raw/master/tips.csv"
content = requests.get(url).content.decode('utf-8')

# read CSV from memory
tips_df = cudf.read_csv(io.StringIO(content))
tips_df['tip_percentage'] = tips_df['tip']/tips_df['total_bill']*100

# display average tip by dining party size
print(tips_df.groupby('size').tip_percentage.mean())

Temp Solution

Re-run Setup cell; issue is always resolved.

Full Output

---------------------------------------------------------------------------

ModuleNotFoundError                       Traceback (most recent call last)

<ipython-input-4-77b6558ae5dc> in <module>()
----> 1 import nvstrings, nvcategory, cudf
      2 import io, requests
      3 
      4 # download CSV file from GitHub
      5 url="https://github.com/plotly/datasets/raw/master/tips.csv"

ModuleNotFoundError: No module named 'nvstrings'


---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
@taureandyernv
Copy link
Contributor

taureandyernv commented Jul 22, 2019

@gumdropsteve , we pushed a new start up script today. Check out #110 and the new script to see if it solves you prroblem :)

@taureandyernv taureandyernv added help wanted Extra attention is needed waiting on author feedback left, need author's action labels Jul 22, 2019
@taureandyernv taureandyernv self-assigned this Jul 22, 2019
@taureandyernv taureandyernv removed the help wanted Extra attention is needed label Jul 22, 2019
@gumdropsteve
Copy link
Contributor Author

gumdropsteve commented Jul 22, 2019

Yes @taureandyernv , this solves the setup issue. It does take a bit longer (than the old setup script) to install everything but the new script from #110 worked on the first time every time.

-- Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting on author feedback left, need author's action
Projects
None yet
Development

No branches or pull requests

2 participants