Giter Club home page Giter Club logo

reteach's People

Contributors

adamzap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nikoloup

reteach's Issues

AttributeError: 'NoneType' object has no attribute 'iterchildren'

I was trying to convert a bb course, about 70mb and I got this error.

Traceback (most recent call last):
File "/usr/local/bin/reteach", line 8, in
load_entry_point('reteach==1.0.0', 'console_scripts', 'reteach')()
File "/Library/Python/2.7/site-packages/reteach/main.py", line 97, in main
bb9_course.create_moodle_zip(input_path, out_name)
File "/Library/Python/2.7/site-packages/reteach/bb9_course.py", line 785, in create_moodle_zip
course = Course(blackboard_zip_fname)
File "/Library/Python/2.7/site-packages/reteach/bb9_course.py", line 47, in init
self.sections += self.create_content_areas()
File "/Library/Python/2.7/site-packages/reteach/bb9_course.py", line 193, in create_content_areas
for content_area in self.manifest.find('.//organization').iterchildren():
AttributeError: 'NoneType' object has no attribute 'iterchildren'

BB9 -> Moodle fails with this message

system Ubuntu 10.4 python 2.6.5

reteach successfully converted a 15 MB file with only formatting differences the entire course was inserted into a single topic).

When I tried a larger file 272 MB with videos, etc., the conversion failed. Any suggestions? Printout follows:

Traceback (most recent call last):
File "/usr/local/bin/reteach", line 9, in
load_entry_point('reteach==1.0.0', 'console_scripts', 'reteach')()
File "/usr/local/lib/python2.6/dist-packages/reteach/main.py", line 97, in main
bb9_course.create_moodle_zip(input_path, out_name)
File "/usr/local/lib/python2.6/dist-packages/reteach/bb9_course.py", line 785, in create_moodle_zip
course = Course(blackboard_zip_fname)
File "/usr/local/lib/python2.6/dist-packages/reteach/bb9_course.py", line 30, in init
self.manifest = self.parse_manifest()
File "/usr/local/lib/python2.6/dist-packages/reteach/bb9_course.py", line 60, in parse_manifest
manifest_str = self.zip.read('imsmanifest.xml')
File "/usr/lib/python2.6/zipfile.py", line 834, in read
return self.open(name, "r", pwd).read()
File "/usr/lib/python2.6/zipfile.py", line 857, in open
zinfo = self.getinfo(name)
File "/usr/lib/python2.6/zipfile.py", line 824, in getinfo
'There is no item named %r in the archive' % name)
KeyError: "There is no item named 'imsmanifest.xml' in the archive"

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.