seongeun kwon 2 Posted March 7, 2023 Share Posted March 7, 2023 I'm trying to scrap the data through API and make a visualization shared in web player.my python code works well in spotfire analyst. but when I tried same action in web player, it makes error like this.Python script returned an error The data function 'my python code data function name' could not be executed. Error executing Python script: ModuleNotFoundError: No module named 'requests' Traceback (most recent call last): File "data_function.py", line 338, in _execute_script exec(compiled_script, self.globals) File "<data_function>", line 2, in <module>I checked python modules and I already have it and used it in spotfire analyst. is there any solutions I can try to? Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted March 7, 2023 Share Posted March 7, 2023 Hello,What method have you used for installing packages on the Node Manager where your Python service is running (as documented in https://docs.tibco.com/pub/sf-pysrv/1.14.0/doc/html/TIB_sf-pysrv_install/pyinstall/topics/distribute_python_packages.html)? Link to comment Share on other sites More sharing options...
seongeun kwon 2 Posted March 8, 2023 Author Share Posted March 8, 2023 thank you! I tried "Installing Python Packages Manually" and it's solved. Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted March 8, 2023 Share Posted March 8, 2023 Great! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now