Moodle to edX

1,206 views
Skip to first unread message

Дмитрий Утробин

unread,
Feb 23, 2016, 10:40:36 PM2/23/16
to General Open edX discussion
Hello!
Does anyone use this module for converting moodle courses in edx courses? --> https://github.com/mitocw/moodle2edx
Thanks

Дмитрий Утробин

unread,
Feb 24, 2016, 5:59:43 AM2/24/16
to General Open edX discussion
When I run script I get this error:

Converting moodle backup-moodle2-course2.mbz to edX /home/moodle/edx/
gzip
: stdin has more than one entry--rest ignored
tar
: Child returned status 2
tar
: Error is not recoverable: exiting now
Traceback (most recent call last):
 
File "/usr/local/bin/moodle2edx", line 9, in <module>
    load_entry_point
('moodle2edx==0.1.0', 'console_scripts', 'moodle2edx')()
 
File "/home/moodle/src/moodle2edx/moodle2edx/main.py", line 551, in CommandLine
    clean_up_html
=opts.clean_up_html,
 
File "/home/moodle/src/moodle2edx/moodle2edx/main.py", line 66, in __init__
    qdict
= self.load_questions(mdir,qfn)
 
File "/home/moodle/src/moodle2edx/moodle2edx/main.py", line 449, in load_questions
    moodq
= etree.parse('%s/%s' % (dir,qfn))
 
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
 
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
 
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
 
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
 
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
 
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
 
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
 
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/tmp/moodle2edxs_RPEf/questions.xml': failed to load external entity "/tmp/moodle2edxs_RPEf/questions.xml"


среда, 24 февраля 2016 г., 9:40:36 UTC+6 пользователь Дмитрий Утробин написал:

apollinaire samiey

unread,
Jul 28, 2016, 11:21:11 AM7/28/16
to General Open edX discussion
Hello,
what is the line command to use to covert moodle course to edx with moodle2edx?

Peter Pinch

unread,
Jul 28, 2016, 8:23:33 PM7/28/16
to edx-...@googlegroups.com
The documentation for moodle2edx is at https://github.com/mitocw/moodle2edx/blob/master/README.txt#L35

The code is unsupported and hasn’t been updated in some time.

- Peter Pinch

apollinaire samiey

unread,
Jul 31, 2016, 7:17:43 AM7/31/16
to edx-...@googlegroups.com
does another way exists to convert moodle cours to edx??


--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/7264FE26-B1CC-4D39-9729-5D5675EE7EE2%40gmail.com.

low...@codetiger.co

unread,
Jul 3, 2017, 9:42:33 AM7/3/17
to General Open edX discussion
Hey, right now i'm facing this situation.  did you managed to migrate the courses from moodle to openedx?

Nate Aune

unread,
Jul 3, 2017, 1:16:47 PM7/3/17
to General Open edX discussion
We've had one customer migrate from Drupal to Open edX, and the way they did this was the following:

1) Export all of the course content from Drupal (the format could be SQL, CSV, XML, JSON - the idea is that you're normalizing it, so that a computer can read it)
2) Write a script to turn this content into OLX (the native format supported by Open edX - this script could be Python, Ruby, Java or whatever flavor you prefer)
3) Import the OLX directly into Open edX using the normal course import feature

The difficult part is #2, where you basically look at a course exported from Open edX with all the elements you want to support, and then map the content in your source course (Drupal or Moodle) into this destination format.

Nate

Sergiy Movchan

unread,
Jul 4, 2017, 8:20:06 AM7/4/17
to General Open edX discussion

you can try that moodle2edx converter - it takes moodle exported course and creates olx version of it. 
it's not 100% accurate (far from it, actually) and requires some manual interventions after the import to Open edX, but does a decent job in most cases and reduces the amount of manual labor a lot.

our content creation department uses it heavily when migrating courses from moodle to edx. it is a great help 

Nate Aune

unread,
Sep 8, 2017, 9:10:01 PM9/8/17
to General Open edX discussion
You might try this new tool from MIT called edxcut, which is a command line tool (CLI) that lets you inspect edX courses but also programmatically create them. Using this tool, I imagine that it wouldn't be too difficult to create a migration script from Moodle to edX.
https://groups.google.com/d/msg/edx-code/Lr5hxkGzyrQ/B6ofQ5XfCgAJ
Reply all
Reply to author
Forward
0 new messages