Coder Social home page Coder Social logo

Comments (6)

brandon-rhodes avatar brandon-rhodes commented on August 19, 2024

It looks like something is damaging that file, by replacing parentheses with angle brackets. Here is what that line really looks like:

return s.decode('ascii', 'replace').replace(u'\ufffd', u'?')

There must be some step where instead of being pulled out of the zip file intact, the copy of the file on your computer is getting altered.

from pycon-pandas-tutorial.

Milja88 avatar Milja88 commented on August 19, 2024

Thank you so much for replying so quickly. I went back and looked into the code and found that I made an error in reading what the error given stated. The code is not being altered, I just mistook the ( ) signs for < > signs. The code is written correctly in the file. However, I am still getting the same SyntaxError: invalid syntax for the line 217.
Do you know what could be causing the issue?

Thank you!

from pycon-pandas-tutorial.

brandon-rhodes avatar brandon-rhodes commented on August 19, 2024

You could be using a very old copy of Python — what version is your Python interpreter, if you type python --version?

from pycon-pandas-tutorial.

Milja88 avatar Milja88 commented on August 19, 2024

I am using python version 3.4 currently.

On Mon, Oct 26, 2015 at 2:39 PM, Brandon Rhodes [email protected]
wrote:

You could be using a very old copy of Python — what version is your Python
interpreter, if you type python --version?


Reply to this email directly or view it on GitHub
#9 (comment)
.

from pycon-pandas-tutorial.

brandon-rhodes avatar brandon-rhodes commented on August 19, 2024

With Python 3.4 on my system, that file can be imported without any problem:

cd build
python3.4 -c 'import BUILD'

So I am at a bit of a loss to understand why exactly the same file would make Python 3.4 happy on my machine, but unhappy on yours. Here is the checksum of exactly my current version of the file if you want to check whether yours has become damaged somehow:

$ md5sum BUILD.py
b3e2419222288e5745090c1108341e22  BUILD.py

Simply reading the line of code with my eyes, it is perfectly valid Python syntax and Python 3.4 should not have any problems with it — there is no syntax error in the code that I can see.

from pycon-pandas-tutorial.

brandon-rhodes avatar brandon-rhodes commented on August 19, 2024

Please feel free to re-open this issue if you are able to double-check the checksum on that file so that we can try to discover the syntax error. I hope that you have gotten it fixed by now and are enjoying the tutorial!

from pycon-pandas-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.