Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Error When download MJ101 #31

Closed
checkcheckzz opened this issue Oct 21, 2014 · 16 comments
Closed

Error When download MJ101 #31

checkcheckzz opened this issue Oct 21, 2014 · 16 comments
Labels

Comments

@checkcheckzz
Copy link

[ MONGO-EDU 0.2.0 ]

Searching [====================] 100%
? Found 1 Course. Select: M101J: MongoDB for Java Developers
? Found 1 List. Select: Week 1: Introduction
Searching Courseware [====================] 100%
Collecting [====================] 100%
? Select From 35 Videos. Download: All
Error: Command failed: Traceback (most recent call last):
File "C:\Program Files (x86)\python\lib\runpy.py", line 162, in run_module_as
main
"main", fname, loader, pkg_name)
File "C:\Program Files (x86)\python\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Users\niuzhist\AppData\Roaming\npm\node_modules\mongo-edu\node_module
s\youtube-dl\bin\youtube-dl__main
.py", line 18, in
File "C:\Users\niuzhist\AppData\Roaming\npm\node_modules\mongo-edu\node_module
s\youtube-dl\bin\youtube-dl\youtube_dl__init
_.py", line 431, in main
File "C:\Users\niuzhist\AppData\Roaming\npm\node_modules\mongo-edu\node_module
s\youtube-dl\bin\youtube-dl\youtube_dl__init__.py", line 137, in _real_main
File "C:\Users\niuzhist\AppData\Roaming\npm\node_modules\mongo-edu\node_module
s\youtube-dl\bin\youtube-dl\youtube_dl\options.py", line 117, in parseOpts
File "C:\Program Files (x86)\python\lib\optparse.py", line 1018, in add_option

raise TypeError, "invalid arguments"

TypeError: invalid arguments

at ChildProcess.exithandler (child_process.js:648:15)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

In fact, I can't type any other arguments after the All, it is automatically running.

@przemyslawpluta
Copy link
Owner

Unfortunately I don't have an access to M101J but based on the tests on M202, M102, M101P, M101JS I can't reproduce the issue you're seeing.

Is the course still available? What version of py are you using?

@checkcheckzz
Copy link
Author

Hi:

I am currently taking this course, it just started a week ago. My python version is 2.7.

@przemyslawpluta
Copy link
Owner

Just signed in for M101J and still can't replicate the issue. Can download all videos on win7 without any errors with py 2.7.

Try npm uninstall mongo-edu -g then npm cache clean and npm install mongo-edu -g. Is it home or work network?

@checkcheckzz
Copy link
Author

I did not try your solution yet. Some error occurs in my npm, it happens a lot error. Anyway, I will try it after I fix the npm error.

@przemyslawpluta
Copy link
Owner

Have you fixed your npm setup?

@checkcheckzz
Copy link
Author

unfortunately, not... I posted issues in npm repo, got reply, tried several solutions, failed. I am quite busy these days. Thus, I don't have time to explore it further.
But I think mongo-edu will work in the end. I definitely need to download the videos.

@przemyslawpluta
Copy link
Owner

Was thinking about publishing experimental package where you don't have to install nodejs or npm based on jxcore. If you're interested just let me know which OS are you on and I can publish something for you.

@checkcheckzz
Copy link
Author

I use Windows7. Thanks!.

@przemyslawpluta
Copy link
Owner

32bit or 64bit?

@checkcheckzz
Copy link
Author

64 bit

@checkcheckzz
Copy link
Author

But npm finally works. but the error occurs again as I listed in my first post...

C:\Users\niuzhist>mongo-edu -d --cw /videos/

[ MONGO-EDU 0.2.1 ]

? MongoDB Uni User Name: zhangzhi1986@gmail.com
? MongoDB Uni Password: ********

Searching [====================] 100%
? Found 2 Courses. Select: M101J: MongoDB for Java Developers
? Found 2 Lists. Select: Week 1: Introduction
Searching Courseware [====================] 100%
Collecting [====================] 100%
? Select From 29 Videos. Download: All
Error: Command failed: Traceback (most recent call last):
File "C:\Program Files (x86)\python\lib\runpy.py", line 162, in run_module_as
main
"main", fname, loader, pkg_name)
File "C:\Program Files (x86)\python\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Users\niuzhist\AppData\Roaming\npm\node_modules\mongo-edu\node_module
s\youtube-dl\bin\youtube-dl__main
.py", line 18, in
File "C:\Users\niuzhist\AppData\Roaming\npm\node_modules\mongo-edu\node_module
s\youtube-dl\bin\youtube-dl\youtube_dl__init
_.py", line 352, in main
File "C:\Users\niuzhist\AppData\Roaming\npm\node_modules\mongo-edu\node_module
s\youtube-dl\bin\youtube-dl\youtube_dl__init__.py", line 58, in _real_main
File "C:\Users\niuzhist\AppData\Roaming\npm\node_modules\mongo-edu\node_module
s\youtube-dl\bin\youtube-dl\youtube_dl\options.py", line 119, in parseOpts
File "C:\Program Files (x86)\python\lib\optparse.py", line 1018, in add_option

raise TypeError, "invalid arguments"

TypeError: invalid arguments

at ChildProcess.exithandler (child_process.js:648:15)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

@przemyslawpluta
Copy link
Owner

BTW it looks like you're passing your args in the incorrect way ... It should be mongo-edu -d /videos/ --cw not mongo-edu -d --cw /videos/ unless you want the download path to be created in ~ ./true

Change the args order and if it still crashes just add --verbose and post the output before the crash.

@checkcheckzz
Copy link
Author

I still got errors...And I use the youtube-dl, a python package to download the video. But I have to download them one by one.

@przemyslawpluta
Copy link
Owner

Can you post the output you get with --verbose.

@przemyslawpluta
Copy link
Owner

Try to reinstall py.

@przemyslawpluta
Copy link
Owner

Closing the case will reopen if updates provided.

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

No branches or pull requests

2 participants