Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csv2rdf cannot parse config file #2618

Open
Tchy258 opened this issue Oct 12, 2023 · 0 comments
Open

csv2rdf cannot parse config file #2618

Tchy258 opened this issue Oct 12, 2023 · 0 comments

Comments

@Tchy258
Copy link

Tchy258 commented Oct 12, 2023

When trying to pass a settings file as an argument to -f to csv2rdf.py like this:
python csv2rdf.py -f <path to settings> <path to csv file>
it raises an exception and displays the following

Traceback (most recent call last):
  File "D:\Watos\env\Lib\site-packages\rdflib\tools\csv2rdf.py", line 553, in <module>
    main()
  File "D:\Watos\env\Lib\site-packages\rdflib\tools\csv2rdf.py", line 468, in main
    config.readfp(open(opts["-f"]))
    ^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

I checked the code of csv2rdf.py and tried changing that call from config.readfp to config.read, but it still fails and won't parse the csv file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant