Closed krisk360media closed 3 years ago
@krisk360media You can check what Python modules are installed with running pip list
command. And with pip install <module-name>
you can install pypi module.
Hi! @0golovatyi , Thanks for responding! I've added a screenshot of the libraries in my virtual environment and have pypi.
@krisk360media Since you have an issue with a specific Python package it may worth asking the question on its homepage. I would guess https://github.com/CamDavidsonPilon/lifetimes/issues is a good place to start.
@krisk360media are you sure that the TabPy instance you are calling is running in the same virtual environment where lifetime is installed?
Also just to check, the package in the image you sent with the list is "lifetime" but in your code your are importing "lifetimes" is that correct?
@krisk360media are you still experiencing this issue?
Environment information:
Attachments:
Screenshot of Basic script I'm trying to import. (I can't attach the csv file that's being read in my python script because it has sensitive information). Also, I tried attached the .py file but GitHub doesn't support that file being attached?!
Screenshot showing the error I'm getting. The error: 'Something went wrong when running the script. Verify that there are no errors in the script, then try again. ModuleNotFoundError: No module named lifetimes.'
To Reproduce Connect to the tabpy, using localhost and port 9004 in Tableau Prep Try to import lifetimes module in a python script. P.S. I have this running in a virtual environment, and have installed lifetimes package in my environment.
Expected behavior I should be able to see the new columns created: Count_Emails, OrderDate, Email_ID. I've added empty columns in Tableau Prep so the results should just populate in Tableau Prep
Additional context I've tried with importing lifetimes as: **from lifetimes.utils import * and import lifetime** with both I get an import error.