# \#python

**URL:** https://community.viktor.ai/tag/python/7.md

[Latest](https://community.viktor.ai/latest.md) · [Categories](https://community.viktor.ai/categories.md) · [Tags](https://community.viktor.ai/tags.md)

---

## [FIXED - Publishing currently failing for apps on Python 3.12 or lower (when including system packages)](https://community.viktor.ai/t/fixed-publishing-currently-failing-for-apps-on-python-3-12-or-lower-when-including-system-packages/2920)

<div class="topic-metadata">

**Author:** [@kvangiessen](https://community.viktor.ai/u/kvangiessen)\
**Replies:** 1\
**Last updated:** [9 September 2026 10:26 UTC](https://community.viktor.ai/t/fixed-publishing-currently-failing-for-apps-on-python-3-12-or-lower-when-including-system-packages/2920 "2026-09-09T10:26:59Z")

</div>

FIXED - Publishing currently failing for apps on Python 3.12 or lower (when including system packages) We’re aware that publishing is currently failing for some apps. You’re affected if your app runs on Python 3.12 or l…

---

## [OptionField with dynamic options and Field contains invalid value error](https://community.viktor.ai/t/optionfield-with-dynamic-options-and-field-contains-invalid-value-error/2741)

<div class="topic-metadata">

**Author:** [@nextfem](https://community.viktor.ai/u/nextfem)\
**Replies:** 1\
**Last updated:** [29 October 2025 05:34 UTC](https://community.viktor.ai/t/optionfield-with-dynamic-options-and-field-contains-invalid-value-error/2741 "2025-10-29T05:34:05Z")

</div>

Hello all, I have an OptionField defined like this: section\_options.load\_case = vkt.OptionField("Load Case", options=get\_load\_case\_options, visible=True) and the function define globally: def get\_load\_case\_options(pa…

---

## [Better Error Messaging for Invalid Parametrization](https://community.viktor.ai/t/better-error-messaging-for-invalid-parametrization/2715)

<div class="topic-metadata">

**Author:** [@cslotboomFE](https://community.viktor.ai/u/cslotboomFE)\
**Replies:** 2\
**Last updated:** [24 September 2025 13:24 UTC](https://community.viktor.ai/t/better-error-messaging-for-invalid-parametrization/2715 "2025-09-24T13:24:13Z")

</div>

Hey, If there is an invalid parametrization, the app often fails in a very opaque way. I’d like these errors to point me towards what went wrong if possible. It’s very time consuming to go through a large parametrizati…

---

## [Create a .gitignore template for viktor empty app template by default](https://community.viktor.ai/t/create-a-gitignore-template-for-viktor-empty-app-template-by-default/1942)

<div class="topic-metadata">

**Author:** [@heyimsp](https://community.viktor.ai/u/heyimsp)\
**Replies:** 1\
**Last updated:** [4 September 2025 21:10 UTC](https://community.viktor.ai/t/create-a-gitignore-template-for-viktor-empty-app-template-by-default/1942 "2025-09-04T21:10:56Z")

</div>

As a Developer I want to create a .gitignore template so that it automatically ignores the python cache files from my IDE when i’m coding. I think this is relevant for the VIKTOR platform because everytime i run viktor-…

---

## [Interactive Plot: Bulk Modify Labels via Selection?](https://community.viktor.ai/t/interactive-plot-bulk-modify-labels-via-selection/2560)

<div class="topic-metadata">

**Author:** [@Jules](https://community.viktor.ai/u/Jules)\
**Replies:** 5\
**Last updated:** [19 June 2025 06:54 UTC](https://community.viktor.ai/t/interactive-plot-bulk-modify-labels-via-selection/2560 "2025-06-19T06:54:10Z")

</div>

Hi everyone, I’m building a VIKTOR app that visualizes a circular pattern of rods using (column, row) coordinates. Each rod has a label (e.g., rod, extra, S1, S2), which is automatically assigned based on internal rules…

---

## [How to persist a class instance across multiple function calls in a VIKTOR app?](https://community.viktor.ai/t/how-to-persist-a-class-instance-across-multiple-function-calls-in-a-viktor-app/2548)

<div class="topic-metadata">

**Author:** [@Jules](https://community.viktor.ai/u/Jules)\
**Replies:** 1\
**Last updated:** [5 June 2025 10:03 UTC](https://community.viktor.ai/t/how-to-persist-a-class-instance-across-multiple-function-calls-in-a-viktor-app/2548 "2025-06-05T10:03:44Z")

</div>

Hi Support Team, In my VIKTOR app, I’m using a custom class RodPattern that generates rod layouts based on user input. I want to avoid re-initializing the class on every function call, so I tried caching the instance li…

---

## [How to properly use a private GitHub repo as a package dependency in a VIKTOR app?](https://community.viktor.ai/t/how-to-properly-use-a-private-github-repo-as-a-package-dependency-in-a-viktor-app/2545)

<div class="topic-metadata">

**Author:** [@Jules](https://community.viktor.ai/u/Jules)\
**Replies:** 1\
**Last updated:** [4 June 2025 11:48 UTC](https://community.viktor.ai/t/how-to-properly-use-a-private-github-repo-as-a-package-dependency-in-a-viktor-app/2545 "2025-06-04T11:48:06Z")

</div>

Hi everyone, I’m developing a VIKTOR app and want to use a private Python package hosted on GitHub (Rod-Pattern-Automation). Here’s my situation and what I’ve tried so far: What I want to do: Use my private package R…

---

## [Cannot publish and said error](https://community.viktor.ai/t/cannot-publish-and-said-error/2495)

<div class="topic-metadata">

**Author:** [@Kelvin](https://community.viktor.ai/u/Kelvin)\
**Replies:** 1\
**Last updated:** [18 April 2025 07:37 UTC](https://community.viktor.ai/t/cannot-publish-and-said-error/2495 "2025-04-18T07:37:01Z")

</div>

Hi, I an new to Viktor, and want to create some apps to test its performance to see whether worthy to next step. When I publishing, it said error. Asked me to check “viktor-cli apps”. I found that all my created apps was…

---

## [Danish and Norwegian letters replaced in filenames with underscore](https://community.viktor.ai/t/danish-and-norwegian-letters-replaced-in-filenames-with-underscore/2371)

<div class="topic-metadata">

**Author:** [@twj](https://community.viktor.ai/u/twj)\
**Replies:** 4\
**Last updated:** [5 March 2025 13:53 UTC](https://community.viktor.ai/t/danish-and-norwegian-letters-replaced-in-filenames-with-underscore/2371 "2025-03-05T13:53:31Z")

</div>

When I create a vkt.DownloadResult(output\_file, output\_file\_name) with a filename containing special Danish and Norwegian letters like ‘æøå’, the filename of the downloaded file does not contain these letters but is repl…

---

## [Snippet Wednesday - ⏱️ Time profiling the parametrization ⏱️](https://community.viktor.ai/t/snippet-wednesday-time-profiling-the-parametrization/1502)

<div class="topic-metadata">

**Author:** [@mweehuizen](https://community.viktor.ai/u/mweehuizen)\
**Replies:** 8\
**Last updated:** [11 December 2024 13:47 UTC](https://community.viktor.ai/t/snippet-wednesday-time-profiling-the-parametrization/1502 "2024-12-11T13:47:35Z")

</div>

Many VIKTOR developers have encountered issues with slow parametrization, which is deemed problematic when the parameterization call exceeds a duration of 1 second. Sluggish parametrization significantly impacts the appl…

---

## [Snippet "Wednes"-Thursday - Drawing in a canvas space](https://community.viktor.ai/t/snippet-wednes-thursday-drawing-in-a-canvas-space/2311)

<div class="topic-metadata">

**Author:** [@rweigand](https://community.viktor.ai/u/rweigand)\
**Replies:** 4\
**Last updated:** [2 December 2024 14:55 UTC](https://community.viktor.ai/t/snippet-wednes-thursday-drawing-in-a-canvas-space/2311 "2024-12-02T14:55:25Z")

</div>

Hi! Recently we’ve released a new way to use the webview: it is now possible to send information from the webview back into the parametrization. Combined with some Javascript, which you can run in the webview, this is a…

---

## [Python module.py for worker - ModuleNotFound](https://community.viktor.ai/t/python-module-py-for-worker-modulenotfound/2319)

<div class="topic-metadata">

**Author:** [@johnnyontheweb](https://community.viktor.ai/u/johnnyontheweb)\
**Replies:** 0\
**Last updated:** [12 November 2024 20:55 UTC](https://community.viktor.ai/t/python-module-py-for-worker-modulenotfound/2319 "2024-11-12T20:55:19Z")

</div>

Hello, I’m using a generic worker which consists in a Python script that generates some json files. In this python script I need to import myModule.py, that I placed in the same folder (the same folder of app.py too). …

---

## [Python version in worker](https://community.viktor.ai/t/python-version-in-worker/2314)

<div class="topic-metadata">

**Author:** [@johnnyontheweb](https://community.viktor.ai/u/johnnyontheweb)\
**Replies:** 2\
**Last updated:** [11 November 2024 08:09 UTC](https://community.viktor.ai/t/python-version-in-worker/2314 "2024-11-11T08:09:26Z")

</div>

Hello, I’m trying to use viktor in Windows, and I’m using a local worker which consists in a Python script that generates some json files. I had Python3.8 installed, but I installed also 3.13 to run viktor. Now the pr…

---

## [Change the parameters in step 2](https://community.viktor.ai/t/change-the-parameters-in-step-2/2251)

<div class="topic-metadata">

**Author:** [@PVSyst](https://community.viktor.ai/u/PVSyst)\
**Replies:** 3\
**Last updated:** [14 October 2024 15:47 UTC](https://community.viktor.ai/t/change-the-parameters-in-step-2/2251 "2024-10-14T15:47:23Z")

</div>

Hello Rick, We have now released the app. Unfortunately, we have noticed that when we change the input values in Step 2, the output data does not change. What could be the reason for this? When we change the inputs, the…

---

## [Support with extracting company\_id from gef files](https://community.viktor.ai/t/support-with-extracting-company-id-from-gef-files/2238)

<div class="topic-metadata">

**Author:** [@Rutger](https://community.viktor.ai/u/Rutger)\
**Replies:** 1\
**Last updated:** [11 October 2024 15:12 UTC](https://community.viktor.ai/t/support-with-extracting-company-id-from-gef-files/2238 "2024-10-11T15:12:03Z")

</div>

I am trying to extract the company that performed a gef file in order to be able to add it to the gef summary. However when I test my code with different gefs I get different results which to mean seem inconsistent. The …

---

## [Support for Python 3.13 🐍](https://community.viktor.ai/t/support-for-python-3-13/2252)

<div class="topic-metadata">

**Author:** [@khameeteman](https://community.viktor.ai/u/khameeteman)\
**Replies:** 0\
**Last updated:** [9 October 2024 15:23 UTC](https://community.viktor.ai/t/support-for-python-3-13/2252 "2024-10-09T15:23:16Z")

</div>

Support for Python 3.13 :snake: With this latest SDK v14.16.0, support for Python 3.13 has been added! Download Python 3.13: Download Python | Python.org Upgrade your CLIviktor-cli upgrade Configure your account and …

---

## [TableView max datset](https://community.viktor.ai/t/tableview-max-datset/1962)

<div class="topic-metadata">

**Author:** [@LuukBoot](https://community.viktor.ai/u/LuukBoot)\
**Replies:** 3\
**Last updated:** [23 August 2024 08:08 UTC](https://community.viktor.ai/t/tableview-max-datset/1962 "2024-08-23T08:08:31Z")

</div>

I really like the new Table view, there is only one thing i get this error: 2024-07-17 14:51:00.075 ERROR : Result can not be serialized to JSON: Out of range float values are not JSON compliant I think it is because…

---

## [Any experience implementing into Revizto?](https://community.viktor.ai/t/any-experience-implementing-into-revizto/1959)

<div class="topic-metadata">

**Author:** [@PCars](https://community.viktor.ai/u/PCars)\
**Replies:** 1\
**Last updated:** [15 August 2024 13:38 UTC](https://community.viktor.ai/t/any-experience-implementing-into-revizto/1959 "2024-08-15T13:38:19Z")

</div>

I’m looking into developing something that can operate Revizto and say, zoom into certain objects that are selected. The documentation is here but I’m not sure if it’s REST? V5 (revizto.com) Is there any specific guid…

---

## [ImportError: libGL.so.1](https://community.viktor.ai/t/importerror-libgl-so-1/1866)

<div class="topic-metadata">

**Author:** [@abevington](https://community.viktor.ai/u/abevington)\
**Replies:** 7\
**Last updated:** [3 June 2024 08:33 UTC](https://community.viktor.ai/t/importerror-libgl-so-1/1866 "2024-06-03T08:33:29Z")

</div>

Yesterday my code was working completely normally but I come back today and start it and get the error “ImportError: libGL.so.1: cannot open shared object file: No such file or directory”. I was wondering if this was som…

---

## [Accessing an uploaded image](https://community.viktor.ai/t/accessing-an-uploaded-image/1860)

<div class="topic-metadata">

**Author:** [@abevington](https://community.viktor.ai/u/abevington)\
**Replies:** 2\
**Last updated:** [31 May 2024 12:20 UTC](https://community.viktor.ai/t/accessing-an-uploaded-image/1860 "2024-05-31T12:20:05Z")

</div>

Hey, I am working with the single file uploader and have gotten access to the file with params.name.file and understand that part but I am confused on how to access it as an image type and not a File type. Essentially, …

---

## [Documentation guide for python script to connect grasshopper](https://community.viktor.ai/t/documentation-guide-for-python-script-to-connect-grasshopper/1796)

<div class="topic-metadata">

**Author:** [@murali.manoj](https://community.viktor.ai/u/murali.manoj)\
**Replies:** 4\
**Last updated:** [29 April 2024 06:14 UTC](https://community.viktor.ai/t/documentation-guide-for-python-script-to-connect-grasshopper/1796 "2024-04-29T06:14:18Z")

</div>

Hello all please let me know of documentation guide for python script to connect to grasshopper. The script mentioned in tutorial here has different output geometry when connected with different script instead of sample …

---

## [Being able to change the language/decimal separator the workspaces or app uses](https://community.viktor.ai/t/being-able-to-change-the-language-decimal-separator-the-workspaces-or-app-uses/1794)

<div class="topic-metadata">

**Author:** [@marliesbuijs](https://community.viktor.ai/u/marliesbuijs)\
**Replies:** 0\
**Last updated:** [26 April 2024 13:58 UTC](https://community.viktor.ai/t/being-able-to-change-the-language-decimal-separator-the-workspaces-or-app-uses/1794 "2024-04-26T13:58:59Z")

</div>

Currenly, the language and decimal separator the tool uses depends on your browser configurations. However, we want to influence this ourselfs by changing it per app or workspace.

---

## [How to use a CSV file upload to change an OptionFields' input dynamically](https://community.viktor.ai/t/how-to-use-a-csv-file-upload-to-change-an-optionfields-input-dynamically/1067)

<div class="topic-metadata">

**Author:** [@ibracom](https://community.viktor.ai/u/ibracom)\
**Replies:** 15\
**Last updated:** [22 April 2024 09:46 UTC](https://community.viktor.ai/t/how-to-use-a-csv-file-upload-to-change-an-optionfields-input-dynamically/1067 "2024-04-22T09:46:56Z")

</div>

I have completed the computer science tutorial. I saw the extra tasks where it mentions to make the app more dynamic by asking a user to upload a file to analyze and decided to try it out. Since the variable file is a F…

---

## [Viktor and Dynamo Integration Tutorial](https://community.viktor.ai/t/viktor-and-dynamo-integration-tutorial/1765)

<div class="topic-metadata">

**Author:** [@Bayo](https://community.viktor.ai/u/Bayo)\
**Replies:** 0\
**Last updated:** [13 April 2024 19:58 UTC](https://community.viktor.ai/t/viktor-and-dynamo-integration-tutorial/1765 "2024-04-13T19:58:01Z")

</div>

Hello Everyone! :smiley: I have made an in-depth tutorial demonstrating how to build web applications with Viktor and Dynamo. Watch it here. Enjoy!

---

## [3dm File Selection in Viktor interface](https://community.viktor.ai/t/3dm-file-selection-in-viktor-interface/1522)

<div class="topic-metadata">

**Author:** [@PVSyst](https://community.viktor.ai/u/PVSyst)\
**Replies:** 11\
**Last updated:** [12 April 2024 12:35 UTC](https://community.viktor.ai/t/3dm-file-selection-in-viktor-interface/1522 "2024-04-12T12:35:16Z")

</div>

Hello everyone, We would like to create a Viktor App for the optimization of string connections and the arrangement on PV facades. We are trying to upload a 3D model via the inputs and then select the area which should …

---

## [Enhancing Data Management](https://community.viktor.ai/t/enhancing-data-management/1736)

<div class="topic-metadata">

**Author:** [@Tim-van-der-Kloet](https://community.viktor.ai/u/Tim-van-der-Kloet)\
**Replies:** 3\
**Last updated:** [29 March 2024 14:20 UTC](https://community.viktor.ai/t/enhancing-data-management/1736 "2024-03-29T14:20:58Z")

</div>

Currently, the sole method available for saving data in my application involves storing it within fields or tables. However, much of this data serves background purposes exclusively. Presently, I’ve resorted to employing…

---

## [Grasshopper Tutorial - Rhino Compute URL connection problem](https://community.viktor.ai/t/grasshopper-tutorial-rhino-compute-url-connection-problem/1136)

<div class="topic-metadata">

**Author:** [@maketank](https://community.viktor.ai/u/maketank)\
**Replies:** 8\
**Last updated:** [6 March 2024 19:47 UTC](https://community.viktor.ai/t/grasshopper-tutorial-rhino-compute-url-connection-problem/1136 "2024-03-06T19:47:53Z")

</div>

Hi VIKTOR team. I recently did a workshop with Marcel and Jasper and we struggled to get the Grasshopper Tutorial working. Since doing the workshop, and trying to debug, I cannot find any solutions. My setup Windows 1…

---

## [Implementing Validation for Entity Naming Conventions in Our Tree Application](https://community.viktor.ai/t/implementing-validation-for-entity-naming-conventions-in-our-tree-application/1637)

<div class="topic-metadata">

**Author:** [@kassi](https://community.viktor.ai/u/kassi)\
**Replies:** 1\
**Last updated:** [21 February 2024 14:10 UTC](https://community.viktor.ai/t/implementing-validation-for-entity-naming-conventions-in-our-tree-application/1637 "2024-02-21T14:10:12Z")

</div>

In our Tree application, it’s essential to adhere to a specific naming convention for entities, which is: \[digits\]-\[project name\]. This convention facilitates organization and ensures consistency across various parts of …

---

## [Create an app by just changing the name of the Grasshopper file doesn't work](https://community.viktor.ai/t/create-an-app-by-just-changing-the-name-of-the-grasshopper-file-doesnt-work/1624)

<div class="topic-metadata">

**Author:** [@destefanova](https://community.viktor.ai/u/destefanova)\
**Replies:** 3\
**Last updated:** [20 February 2024 06:38 UTC](https://community.viktor.ai/t/create-an-app-by-just-changing-the-name-of-the-grasshopper-file-doesnt-work/1624 "2024-02-20T06:38:48Z")

</div>

Hello! I’m getting this error in the worker, trying to create my geometry preview in the app. I’m using the method with Hops and I’ve already baked the mesh… Than, I tried to change the name of the grasshopper-f…

---

## [Modify an existing app coded with an old viktor version](https://community.viktor.ai/t/modify-an-existing-app-coded-with-an-old-viktor-version/1592)

<div class="topic-metadata">

**Author:** [@stannecerto](https://community.viktor.ai/u/stannecerto)\
**Replies:** 2\
**Last updated:** [5 February 2024 07:53 UTC](https://community.viktor.ai/t/modify-an-existing-app-coded-with-an-old-viktor-version/1592 "2024-02-05T07:53:43Z")

</div>

After following the tutorials, I am modifying the ‘CPT-interpreter’ app that was written with an old version of Viktor/python (3.7). When I attempt using viktor’s parametrization.pyi classes and functions (such as @Data…

[Next page](https://community.viktor.ai/tag/python/7.md?match_all_tags=true&page=1&tags%5B%5D=python)
