Week 1 assignment 3 :error

error when running it in my own notebook. for this code below any idea why ?

Hi @zheng_xiang1 ,

I have just run the file without any issue. Could you try refresh the kernel and rerun the cell from start to see if it helps.

hi dev support, i am still facing the same issues. i downloaded the folder from the course ware and tried opening it on anaconda using jupyter nb

Hi @zheng_xiang1,

If you are working outside of the Coursera environment, then, you need to be sure you have downloaded all the folders and files for that assignment and the directory paths are correct.

We cannot support work outside of the Coursera platform.

See the FAQ, it has instructions for downloading the entire assignment and assets.

Yes i have followed the instructions from there. Some of the assignment works some doesnt. I have no idea why. For example the facial recognition (c4 w4 a1) at the uploading of the model gave an error that was something related to bad marshal or something along the lines

You have to be absolutely certain you get the compatible versions of all of the tools and libraries. Often, this is not the newest versions.

Working in Coursera’s lab environment is encouraged.

I see, is there anywhere i can check on the verisons?

See the FAQ for the recommended procedure.

1 Like

hi are u referring to this? becuz i followed the steps and still had some errors that prevented me from running the files

That is just the method to download the files. The other type of problems you can have besides not having all the files is having the wrong versions of some of the packages. The assignments are using the versions of everything that were current in April 2021 (2 years ago essentially) and incompatible changes can occur in that amount of time. There are no official instructions for how to deal with that. You have two fundamental choices:

  1. You can just debug each problem and then fix it.
  2. You can duplicate the versions used by the course in your private environment.

Neither of those paths is simple or easy. Here’s a thread that will get you started down the path of duplicating the versions.

Well, there is a third path, which is what Tom has already suggested earlier on this thread: use the course environment that is provided for you and “just works”. :nerd_face: We are here to help you with the course material and are not paid to do this. That means we have the choice of whether we want to spend our (unpaid) time being your volunteer personal IT support staff for whatever you want to do outside the scope of these courses. The hint here is that if you want to play this type of game, then the best choice is to develop your own “chops” for how to deal with this sort of issue. If you’re going to be swimming in these waters in the longer term, this type of issue just keeps coming up and the sooner you build up your own debugging and analysis skills for solving them the happier you will be.

Please don’t take what I said above the wrong way: it’s perfectly fine to ask this type of question here. There are lots of people listening here who like helping people and maybe you get lucky and one of your fellow students has already tried the same thing and has figured out the answer to the given question, as in the case of the thread I linked above with lots of helpful info provided by another fellow student. My point was just that the mentors’ defined responsibilities don’t cover this type of question. If I knew the answer or knew of a thread that had the answer, I’d be happy to give it to you, but unfortunately I don’t have that to offer in this case. Sorry!

No, that’s from a different course.
It seems the FAQ for this course doesn’t cover running the course materials locally.

No worries paul!!! The community has helped me a lot at this point in time. Its just my subscription has expired so i cant use the course ware anymore HAHAHA. CHEERS THOU, i wouldnt mind learning some debugging skills along the way. Got some spare time b4 uni starts either ways.

Ok noted, thanks man

Ah, ok, it all makes sense then. :smiley: If you do have time to debug any of the issues, you could contribute back to the community by documenting what you find. In terms of the approach to take, it’s good to know the “conda” method for duplicating versions, just because it’s a generally useful thing to know. The whole reason a group of people went to the trouble of developing Anaconda is that the “versionitis” problem is ongoing. If you want to use a number of different complex applications that are built on python and the various supporting libraries, you may not even have the ability (let alone the time and motivation) to modify the source code for the app to make it match some different version of the python environment. And if you’re running multiple such apps, then what do you do? You have to have the ability to support multiple different sets of versions of packages simultaneously. Well, you could set up a custom VM or Docker image for each application, but the other way is to use Anaconda, which lets you have a bunch of different setups in parallel.

But in the case that you’re taking a set of code and want to continue to develop it and use it in perhaps many different ways, then it’s worth figuring out why it doesn’t work with the current versions of “Python World”. If you end up finding the solutions to any of these issues, please let us know and we can keep a document for people who come along later and want to do the same thing.

Cheers,
Paul

1 Like