Question

I want to use rdflib in python tools for Visual Studio. I installed both python tools and rdflib. When I write import rdflib in my project (in a file *.py) and launch it, it returns an error

invalid literal for int() with base 10: 'value'

and points to the line import rdflib Although I can open Tools->Python Tools->Execute Project in Python Interactive , and execute import rdflib there with no errors. But when I close that window, I still can't use the library to code in *.py file.

How can I use rdflib from Visual Studio, how can I avoid that error?

Was it helpful?

Solution

I found out that if you launch the program with Ctrl+F5 (instead of F5) it will work. Maybe python tools or rdflib have some problems with debugging in Visual Studio.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top