Friday, December 13, 2013

Changes 12/13/13

NSF:

  • Spent the whole day trying to get BeautifulSoup4 to work with python3 but it just won't work
  • It says it will automatically convert but it doesn't even install to the python3 folder, only the python2.7/dist-packages/ folder.  I tried manually copying the bs4 folder to the python3/dist-packages/ folder and running 2to3, but it still doesn't work.  It just comes up with syntax errors.
  • Well I got it to work after over an hour.  The python 2to3 docs words the functionality in a way that makes it seem like it will recursively iterate through directories, but apparently it doesn't.  I fixed the problem by manually running it for each directory in the bs4 folder.  
  • I think by recursive it meant recursive for the files in the specific directory it was run in, not recursive in the directory tree.

1 comment:

  1. My apologies, Alex. For a serious project like the one you are about to start with NSF, don't worry about Python3. Python2 is still the mature industry standard. Since Python3 is definitely the future, I favor it for all in house projects. For "real world" applications, however, Python 2 is still the way to go.

    Let's talk Monday about Michelle's latest assignment. She is putting in significant time on this now, which is of great potential benefit to you, but you need to make sure you return the favor (you always have so far, which is why I set this up in the first place, but I'm just saying that now in particular it is important to continue).

    ReplyDelete