Henry Heberle Posted September 1, 2023 Posted September 1, 2023 Although I installed the library pytz, I can't import it in IronPython.IronPython.Runtime.Exceptions.ImportException: No module named pytzI have a script that is actioned and process tables, and I need to process lat,lon values, finding timezones and also finding country names, etc.What am I missing? Thank you!
Gaia Paolini Posted September 1, 2023 Posted September 1, 2023 pytz seems to be a Python library. It is not necessarily usable in IronPython.See also this for reference: https://stackoverflow.com/questions/6855211/can-i-use-all-standard-python-libraries-with-ironpython-or
Henry Heberle Posted September 1, 2023 Author Posted September 1, 2023 Oh no! So it probably won't work... I asked Spitfire's team at my company to check if it's possible to install it on the server side. I thought that the python packages could be used from within Spitfire via script. So that's not possible right?I need to find countries and timezones based on geolocation that are stored in the tables.Thanks for the clarification about ironpython!
Gaia Paolini Posted September 1, 2023 Posted September 1, 2023 you can do it with a Python data function instead. IronPython tends to be used to automate Spotfire but not so much for data manipulation.
Henry Heberle Posted September 1, 2023 Author Posted September 1, 2023 Thank you for the alternative idea.I'll keep that in mind.At the moment they are not fully supported, only R. And it's not reliable, we always have "data function" errors. I always avoid at maximum to use data functions.The data comes perfect with information links and then we use it to collect more data, but we need to convert dates using timezones. If we would add data function in the middle of this, because they are not stable, it would not provide us with a robust solution for our users (they query new data on the go, many per day). I can't explain why it's so unstable but I hope Spotfire's Team at Bayer will solve that and perhaps we can finally use data functions for critical data queries like this one.I might end up adding some mapping tables... And process conversations without using a library, or somehow implementing what's in that library, hard coded in the ironpython script.Thanks again for the support!
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