Creating my first python node Error

Hi,

I´m currently developing my first python node, and I´m following the tutorial: Create a New Python based KNIME Extension

But no matter what I do, i don’t find the node in the repository.
The only error I get is the following:

ERROR NodeSetFactoryExtension NodeSetFactory 'org.knime.python3.nodes.PurePythonNodeSetFactory' from plugin 'org.knime.python3.nodes' could not be created.

my config.yml

org.tutorial.first_extension: # {group_id}.{name} from the knime.yml
  src: 'C:\Users\spo\Desktop\KNIME\node_def\basic\tutorial_extension\' # Path to folder containing the extension files
  conda_env_path: 'C:\Users\spo\Anaconda3\envs\my_python_env\' # Path to the Python environment to use
  debug_mode: true # Optional line, if set to true, it will always use the latest changes of execute/configure, when that method is used within the KNIME Analytics Platform

my knime.ini

-vm
plugins/org.knime.binary.jre.win32.x86_64_17.0.5.20221116/jre/bin/server/jvm.dll
-startup
plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.500.v20220509-0833
--launcher.defaultAction
openFile
-vmargs
-Djava.security.properties=plugins/org.knime.binary.jre.win32.x86_64_17.0.5.20221116/security.properties
-Darrow.enable_unsafe_memory_access=true
-Darrow.memory.debug.allocator=false
-Darrow.enable_null_check_for_get=false
--add-opens=java.xml/com.sun.org.apache.xerces.internal.parsers=ALL-UNNAMED
--add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED
--add-opens=java.security.jgss/sun.security.jgss.krb5=ALL-UNNAMED
--add-exports=java.security.jgss/sun.security.jgss=ALL-UNNAMED
--add-exports=java.security.jgss/sun.security.jgss.spi=ALL-UNNAMED
--add-exports=java.security.jgss/sun.security.krb5.internal=ALL-UNNAMED
--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED
-server
-Dsun.java2d.d3d=false
-Dosgi.classloader.lock=classname
-XX:+UnlockDiagnosticVMOptions
-Dsun.net.client.defaultReadTimeout=0
-XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot
-Dknime.xml.disable_external_entities=true
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.nio.channels=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.base/sun.nio=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED
-Xmx29000m
-Dorg.eclipse.swt.browser.IEVersion=11001
-Dsun.awt.noerasebackground=true
-Dequinox.statechange.timeout=30000
-Dknime.python.extension.config=C:\Users\spo\Desktop\KNIME\node_def\basic\config.yml

I´m using KNIME 4.7 on a Windows 10 machine.

Any pointers?

Best regards,

Paul

Hi Paul,

in the knime.ini, it seems like your added command should use / instead of \. Could you try that? If that’s the issue, then we will make it clearer in the manual.

Best regards
Steffen

3 Likes

Hi steffen,

that did the trick, thanks!

Manual has been updated and will be refreshed in the next weeks.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.