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

Issue getting an AIM file to load in using "smps_from_txt" #80

Open
gibbsAydan opened this issue May 8, 2024 · 0 comments
Open

Issue getting an AIM file to load in using "smps_from_txt" #80

gibbsAydan opened this issue May 8, 2024 · 0 comments

Comments

@gibbsAydan
Copy link

gibbsAydan commented May 8, 2024

Describe the bug
I am having trouble getting my
SMPS_3082002329005_20240413_155758.csv
file to load with AIM 12

To Reproduce
when I use the command obj = smps.io.smps_from_txt(r'file name')

Expected behavior
I believe that this is what I should be doing to get the file to load in

Desktop (please complete the following information):

  • OS: Windows 11
  • used py -m pip install py-smps --pre to install py-smps

Python Environment (please complete the following information)

  • using visual studio code

Below is the error I receive:
Traceback (most recent call last):
File "c:\Users\aydan\hello\smpsPlayground.py", line 8, in
obj = smps.io.smps_from_txt(r"C:\Users\aydan\hello\SMPS_3082002329005_20240413_155758.csv")
File "C:\Users\aydan\hello.venv\lib\site-packages\smps\io.py", line 90, in smps_from_txt
ts = pd.read_table(
File "C:\Users\aydan\hello.venv\lib\site-packages\pandas\io\parsers\readers.py", line 1405, in read_table
return _read(filepath_or_buffer, kwds)
File "C:\Users\aydan\hello.venv\lib\site-packages\pandas\io\parsers\readers.py", line 620, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Users\aydan\hello.venv\lib\site-packages\pandas\io\parsers\readers.py", line 1620, in init
self._engine = self._make_engine(f, self.engine)
File "C:\Users\aydan\hello.venv\lib\site-packages\pandas\io\parsers\readers.py", line 1898, in _make_engine
return mapping[engine](f, **self.options)
File "C:\Users\aydan\hello.venv\lib\site-packages\pandas\io\parsers\c_parser_wrapper.py", line 93, in init
self._reader = parsers.TextReader(src, **kwds)
File "parsers.pyx", line 581, in pandas._libs.parsers.TextReader.cinit
pandas.errors.EmptyDataError: No columns to parse from file

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

1 participant