mjbright / futurelearn-dl

A script to download materials from the FutureLearn website (for enrolled courses)
GNU General Public License v3.0
34 stars 20 forks source link

error when launching the script on Windows 7 #6

Open jnowe opened 7 years ago

jnowe commented 7 years ago

Hello,

When I launch the script to get a course (futurelearn-dl.py myaccount@gmail.com mypassword thermodynamics idweek), I get this error:

"SyntaxError: unexpected character after line continuation character"

What I'm doing wrong?

Thanks

mjbright commented 7 years ago

You'll have to provide more information.

What version of Python are you using ? - probably you need Python 3.x.

What is the full error message, to see what line produces the syntax error.

On 25 September 2017 at 09:25, jnowe notifications@github.com wrote:

Hello,

When I launch the script to get a course (futurelearn-dl.py myaccount@gmail.com mypassword thermodynamics idweek), I get this error:

"SyntaxError: unexpected character after line continuation character"

What I'm doing wrong?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mjbright/futurelearn-dl/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ABywLYY66jqxvZJIMgkNzrSYjv1cOs2nks5sl1VugaJpZM4PiTZL .

jnowe commented 7 years ago

File "", line 1 D:\Users\503000809\Downloads\futurelearn-dl.py myaccount@gmail.com mypassword thermodynamics 1 SyntaxError: unexpected character after line continuation character

I'm using Python 3.6.2

mjbright commented 7 years ago

OK, thanks.

Maybe it's a line ending problem on Windows.

Don't have acess to a Windows machine right now, but will look at this next week.

On 25 September 2017 at 09:52, jnowe notifications@github.com wrote:

File "", line 1 D:\Users\503000809\Downloads\futurelearn-dl.py myaccount@gmail.com mypassword thermodynamics 1 SyntaxError: unexpected character after line continuation character

I'm using Python 3.6.2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mjbright/futurelearn-dl/issues/6#issuecomment-331803984, or mute the thread https://github.com/notifications/unsubscribe-auth/ABywLUCbh3-LmHdI7CO6Odn3jNOnqPKPks5sl1u4gaJpZM4PiTZL .

xDebuggerx commented 7 years ago

I keep getting this error, any idea why?

C:>futurelearn-dl.py myaccount@gmail.com mypassword thermodynamics 1 Traceback (most recent call last): File "C:\futurelearn-dl.py", line 585, in OP_DIR = os.getenv('OP_DIR', default=os.getenv('HOME') + '/Education/FUTURELEARN') TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'