Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit function not working in Python 3.5.2 #9

Open
ajrcre opened this issue Feb 1, 2017 · 1 comment
Open

Submit function not working in Python 3.5.2 #9

ajrcre opened this issue Feb 1, 2017 · 1 comment

Comments

@ajrcre
Copy link

ajrcre commented Feb 1, 2017

I am using Python 3.5.2.
When I try to submit I get the following error:

An exception of type KeyError occured. Messsage:
("'__name__' not in globals",)

If I remove the catch error function, I get:

Traceback (most recent call last):
  File "submit.py", line 58, in <module>
    s.submit()
  File "/Users/shaharb/kaggle/ml_coursera/Coursera-Stanford-ML-Python-master/Submission.py", line 27, in submit
    parts[str(part_id)] = {'output': self.__output(part_id)}
  File "submit.py", line 39, in output
    mod = __import__(fname, fromlist=[fname], level=1)
KeyError: "'__name__' not in globals"
@jtlowery
Copy link

jtlowery commented May 8, 2017

@ajrcre It might be a bit late for you, but I have a branch that I modified for py3.5 as I went through the course (https://github.com/jtlowery/Coursera-Stanford-ML-Python/tree/py3_update).

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

No branches or pull requests

2 participants