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

Problems to import sif_parse library in python #25

Open
Andreaamru2 opened this issue Nov 17, 2023 · 6 comments
Open

Problems to import sif_parse library in python #25

Andreaamru2 opened this issue Nov 17, 2023 · 6 comments

Comments

@Andreaamru2
Copy link

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.

@fujiisoup
Copy link
Owner

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?

@Andreaamru2
Copy link
Author

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

@fujiisoup
Copy link
Owner

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?

@Andreaamru2
Copy link
Author

Ok ok, I will wait for it, let me know when the update is available.
Thank you so so much! have a good day!

@fujiisoup
Copy link
Owner

I have a write access to GitHub one. I need an access on pypi.
My pypi account is
fujiisoup

@fujiisoup
Copy link
Owner

@Andreaamru2 Checking in this request. It would be convenient for me to have a write access to PyPI

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

2 participants