These are chat archives for spyder-ide/public

20th
Oct 2018
Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:19
Hello.
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:19
Hello.
Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:19
I just downloaded Anaconda and started using Spyder
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:19
Great!
Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:20
I'm in a mac , but the problem is i can't get to import my csv document
it says the file doesn't exists
i don't know if this has to do to where i save my documents (the csv documents are currently in the Downloads folder)
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:21
Please be specific about exactly what commands you tried, the exact error message, and where you are seeing it—is it an exception raised by your code in the IPython Console, or a popup error message?
Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:22

Importing the libraries

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

Importing the dataset

dataset = pd.read_csv('kickstarter.csv')

ParserError: Error tokenizing data. C error: Expected 1 fields in line 26, saw 2
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:23

ParserError: Error tokenizing data. C error: Expected 1 fields in line 26, saw 2

This is a different error than the one you mentioned before.

Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:23
I also go the 'the file doesn't existe' notification
got
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:24

I also go the 'the file doesn't existe' notification

Notification? Do you mean a popup dialog, or an exception printed in the console? Either way, what is the full and exact text of the error/exception?

Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:24
an exception printed in the console
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:25
Okay, so that confirms the problem is due to an error in the code, not anything to do with Spyder.
Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:26
but in what code ? you mean the instructions i've introduced ? "import...." and all that ?
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:27
Your code. I.e., what you've told Python/Spyder to run (or in your data, paths, etc). You'd presumably see the problem in any Python interpreter, not just Spyder.
Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:28
ok
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:29

ParserError: Error tokenizing data. C error: Expected 1 fields in line 26, saw 2

For your information, this is generally due to one or more rows (lines) in your file having the incorrect number of fields (commas) relative to the header or first line.

I also go the 'the file doesn't existe' notification

You probably need to enter the correct path to the file. 'kickstarter.csv' needs to be the actual relative or absolute path to the file; it won't work unless the working directory (displayed in the top right) or the path of the file/script you are trying to run (depending on your run configuration settings) is the same directory that a file named kickstarter.csv is present in.

Brijesh Singh
@brijesh9aug
Oct 20 2018 07:29
Hello
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:29
Protip: If you Google either of these errors (again, the exact error text) then it will explain exactly why they happen and how to fix them. Again, entirely unrelated to Spyder.
Hello.
@andrea_smd_twitter Best of luck!
Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:30
ok, thank you. i'll try again, because i didn't have this problem using a windows, but in mac i do
Brijesh Singh
@brijesh9aug
Oct 20 2018 07:30
I can't download spyder indpentely
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:31

because i didn't have this problem using a windows, but in mac i do

Likely due to different paths, or some odd issue with the file format getting mangled.

Andrea SMD
@andrea_smd_twitter
Oct 20 2018 07:33
mmm ok
CAM Gerlach
@CAM-Gerlach
Oct 20 2018 07:35

I can't download spyder indpentely

Please see the Download section right on our homepage for information on how to get Spyder.

We currently do not offer independent Spyder executables, since they are difficult to maintain, introduce legal complications, and the great majority of our users already have a Python environment or distribution setup or download Spyder as part of one, and as Spyder can simply be run as part of the Python environment you use it with anyway, offering "independent" downloads doesn't really add much value.

@brijesh9aug