Problems to import sif_parse library in python
Hi! I already installed the library by using pip install pip_parser. When I try to import the library into my code and run it, there is an error which mentions the following:
File "C:\Users\andre\AppData\Roaming\Python\Python310\site-packages\sif_parser_sif_open.py", line 12, in _to_string return c if not isinstance(c, bytes) else c.decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Do you have any idea of how to fix this? During installation I only receive a warning with the following:
WARNING: The script sif_parser.exe is installed in 'C:\Users\andre\AppData\Roaming\Python\Python310\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed sif_parser-0.3.0
I am new on it and I am not sure if this is related to the error I mentioned before.
Hi @Andreaamru2
Could you send me the file you are trying to open? I can work with the file to see what is wrong.
As reported in #24 , I noticed that there are another sif file, not made by Andor. Are you sure if your file is made by Andor softwares?
I have some issues to upload the file. Apparently github does not support .sif file types. And the main issue occurs only by importing the library (import sif_parser), without any reading commands.
About your question, the first line of the file is "Andor Technology Multi-Channel File", so I think it was made by Andor Sofwares
This is strange... I am updating sif_parser in PyPI to the latest one (but still waiting for a person. See the comment in #21 )
Could you try after I successfully update it on PyPI or try installing the latest one from Github?
Ok ok, I will wait for it, let me know when the update is available. Thank you so so much! have a good day!
I have a write access to GitHub one. I need an access on pypi. My pypi account is fujiisoup
@Andreaamru2 Checking in this request. It would be convenient for me to have a write access to PyPI