Coder Social home page Coder Social logo

lxltools's People

Contributors

katste avatar mskold avatar mxtthias avatar niklasl avatar olovy avatar sarwik avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lxltools's Issues

Building dataset definitions fails due to PosixPath AttributeError

Me and @jannistsiroyannis was trying to get LibrisXL up and running in my environment, but it fails when using current lxltools (0.6.0 tag).

How to reproduce (CentOS 7):

git clone https://github.com/libris/definitions
cd definitions
virtualenv venv && . venv/bin/activate
pip install -r requirements.txt
python dataset.py

When execution reach "languages" dataset, the following error occur:

/.../
Writing: build/relator/writerOfAddedLyrics.jsonld
Writing: build/relator/writerOfAddedText.jsonld

Dataset: languages
Traceback (most recent call last):
  File "datasets.py", line 296, in <module>
    compiler.main()
  File "/vagrant/devops/repositories/definitions/venv/src/lxltools/lxltools/datacompiler.py", line 58, in main
    self._run(args.datasets)
  File "/vagrant/devops/repositories/definitions/venv/src/lxltools/lxltools/datacompiler.py", line 74, in _run
    self._compile_datasets(names)
  File "/vagrant/devops/repositories/definitions/venv/src/lxltools/lxltools/datacompiler.py", line 99, in _compile_datasets
    result = build()
  File "datasets.py", line 207, in languages
    'iso6391.ttl').query(cherry_pick_loc_lang_data)
  File "datasets.py", line 37, in _get_zipped_graph
    with zipfile.ZipFile(path, 'r') as zipped:
  File "/usr/lib64/python2.7/zipfile.py", line 766, in __init__
    self._RealGetContents()
  File "/usr/lib64/python2.7/zipfile.py", line 803, in _RealGetContents
    endrec = _EndRecData(fp)
  File "/usr/lib64/python2.7/zipfile.py", line 208, in _EndRecData
    fpin.seek(0, 2)
AttributeError: 'PosixPath' object has no attribute 'seek'
(venv)[vagrant@default definitions]$ exit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.