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

cx_freeze #62128

Closed
NikhilDahitule opened this issue Feb 27, 2024 · 6 comments
Closed

cx_freeze #62128

NikhilDahitule opened this issue Feb 27, 2024 · 6 comments
Assignees
Labels

Comments

@NikhilDahitule
Copy link

bug描述 Describe the Bug

I have encountered the same issue during packaging with pyinstaller as well as cx_Freeze. I got the issue in paddle/base/core.py

image

其他补充信息 Additional Supplementary Information

No response

@NikhilDahitule
Copy link
Author

@shiyutang Could you take a quick look and share your insights?

@shiyutang
Copy link
Contributor

It seems error occur in

def set_paddle_lib_path():

can you find out which line of code says this error, our code version may not be the same. You should try fix the error path from None to a string.

@NikhilDahitule
Copy link
Author

NikhilDahitule commented Feb 27, 2024

@shiyutang As per your code version im getting error in line number 412.

image

@shiyutang
Copy link
Contributor

shiyutang commented Feb 27, 2024

please try edit:

if hasattr(site, 'USER_SITE')

to

if hasattr(site, 'USER_SITE') and site.USER_SITE: 

@NikhilDahitule
Copy link
Author

@shiyutang I'm happy to report that the problem has been successfully resolved!

Thank you for your code contribution! It was a pleasure working with you on this.

@shiyutang
Copy link
Contributor

Great~

@paddle-bot paddle-bot bot added status/close 已关闭 and removed status/new-issue 新建 labels Mar 1, 2024
@NikhilDahitule NikhilDahitule changed the title File "paddle/base/core.py", line 410, in set_paddle_lib_path() problem occurs when using pyinstaller as well as cx_Freeze to package on ubuntu. cx_freeze May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants