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

System error when using pyinstaller #11

Closed
badrobit opened this issue Dec 18, 2017 · 5 comments
Closed

System error when using pyinstaller #11

badrobit opened this issue Dec 18, 2017 · 5 comments

Comments

@badrobit
Copy link

OS: Windows10 64bit
Labview: 2017
Labview Drivers: May2017
nifpga: 17.0.0.post2

The program runs fine when run from the command line. When I attempt to bundle it together into an executable for use I get the following error on the command line:

Fatal Python error: Py_Initialize: unable to load the file system codec
LookupError: unknown encoding: utf-8

Current thread 0x000037c8 (most recent call first):

I have tried removing all other imports and without nifpga everything works fine. Once I add the nifpga package into the mix I get this error.

@TJ-G
Copy link

TJ-G commented Dec 18, 2017

Hey Badrobit,

I'm the project manager for the NI Group that owns this api - just wanted to let you know that we likely won't be able to take a look into this properly until after the holidays. My apologies if this is a big issue in the short-term, but we'll take a look as soon as we can.

@badrobit
Copy link
Author

No problem, I appreciate you taking a look at it, please let me know if there is anything else that you need from me to help sort out this behaviour.

@mgumble
Copy link
Contributor

mgumble commented Jan 3, 2018

Badrobit,

I have failed to reproduce this error using a simple python file importing nifpga, and matching the system you described with Python 2.7. I was curious what version of python you were using, and if you can reproduce this problem for a simple program (including nifpga) or just the application you are working on.

@badrobit
Copy link
Author

I was using python 3.6 could this be causing the issue?

@strainmike
Copy link
Collaborator

This issue should be resolved in 18.1.0. Please re-open if thats not the case.

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

4 participants