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

Fixed Bug where from panda it try to import np instatt of using numpy #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BenSchokoRiegel
Copy link

without this fix the setup fails.

from .decode import GEDecode

File "", line 1
from .decode import GEDecode
IndentationError: unexpected indent

File \pycollect\decode.py", line 37, in
File "", line 1
File "C:\Users\benri\Desktop\SensorFusion\py_collect\Lib\site-packages\pycollect-1.0-py3.12.egg\pycollect\decode.py", line 37, in
IndentationError: unexpected indent
from pandas import DataFrame, np
File "", line 1
from pandas import DataFrame, np
IndentationError: unexpected indent
ImportError: cannot import name 'np' from 'pandas' (C:\Users\benri\Desktop\SensorFusion\py_collect\Lib\site-packages\pandas-2.2.2-py3.12-win-amd64.egg\pandas_init_.py)
File "", line 1
ImportError: cannot import name 'np' from 'pandas' (C:\Users\benri\Desktop\SensorFusion\py_collect\Lib\site-packages\pandas-2.2.2-py3.12-win-amd64.egg\pandas_init_.py)
^^^^^^
SyntaxError: invalid syntax
(py_collect) PS from pycollect import GeDevice
File "", line 1
(py_collect) PS C:\Users\benri\Desktop\SensorFusion\python-pycollect\test>from pycollect import GeDevice
^^
SyntaxError: invalid syntax

without this fix the setup fails. 
>>>     from .decode import GEDecode
  File "<stdin>", line 1
    from .decode import GEDecode
IndentationError: unexpected indent
>>>   File "C:\Users\benri\Desktop\SensorFusion\py_collect\Lib\site-packages\pycollect-1.0-py3.12.egg\pycollect\decode.py", line 37, in <module>
  File "<stdin>", line 1
    File "C:\Users\benri\Desktop\SensorFusion\py_collect\Lib\site-packages\pycollect-1.0-py3.12.egg\pycollect\decode.py", line 37, in <module>
IndentationError: unexpected indent
>>>     from pandas import DataFrame, np
  File "<stdin>", line 1
    from pandas import DataFrame, np
IndentationError: unexpected indent
>>> ImportError: cannot import name 'np' from 'pandas' (C:\Users\benri\Desktop\SensorFusion\py_collect\Lib\site-packages\pandas-2.2.2-py3.12-win-amd64.egg\pandas\__init__.py)
  File "<stdin>", line 1
    ImportError: cannot import name 'np' from 'pandas' (C:\Users\benri\Desktop\SensorFusion\py_collect\Lib\site-packages\pandas-2.2.2-py3.12-win-amd64.egg\pandas\__init__.py)
                        ^^^^^^
SyntaxError: invalid syntax
>>> (py_collect) PS from pycollect import GeDevice
  File "<stdin>", line 1
    (py_collect) PS C:\Users\benri\Desktop\SensorFusion\python-pycollect\test>from pycollect import GeDevice
                 ^^
SyntaxError: invalid syntax
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

Successfully merging this pull request may close these issues.

1 participant