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

cant build under python3.10,3.9,3.8,only works 3.11 currently #308

Open
cwing2019 opened this issue Jan 25, 2023 · 6 comments
Open

cant build under python3.10,3.9,3.8,only works 3.11 currently #308

cwing2019 opened this issue Jan 25, 2023 · 6 comments

Comments

@cwing2019
Copy link

C:\Users\Administrator\gotest>gopy build -output=out -vm=python3 hi.go

--- Processing package: command-line-arguments ---
no LibDir -- copy from IncDir: C:/Python38/libs
no LibPy -- set to: python38
no LibDir -- copy from IncDir: C:/Python38/libs
no LibPy -- set to: python38

--- building package ---
gopy build -output=out -vm=python3 hi.go
goimports -w hi.go
cmd had error: exit status 2 output:
oerr: go resolves to executable in current directory (.\go.py): stderr:

2023/01/25 17:33:28 error dispatching command: exit status 2

@cwing2019
Copy link
Author

once uninstall py3.11,and reinstall py3.11,it also dont works.. dont know why. can't see anylogs

@rcoreilly
Copy link
Member

is it possibly not finding python3? can you verify it is found at commandline? and pybindgen is installed?

@cwing2019
Copy link
Author

yes,both python3 and pybindgen is ok.

I try on a new fresh install windows10 and install python from python.org . and i am sure install pybindgen ok
the same result..

@cwing2019
Copy link
Author

pygen version like this
C:\Python311\Lib\site-packages\PyBindGen-0.22.1.dist-info
C:\Python3.8\Lib\site-packages\PyBindGen-0.22.1.dist-info

@cwing2019
Copy link
Author

infact,the go,py file has been generate to out2 or out folder anyhow.
C:\Users\Administrator\gotest\out2>goimports -w hi.go
err: go resolves to executable in current directory (.\go.py): stderr:

simply execute this also gets an error.

@cwing2019
Copy link
Author

is it possibly not finding python3? can you verify it is found at commandline? and pybindgen is installed?

C:\Users\Administrator\gotest>goimports -w out4\simple.go //this echo nothing.
C:\Users\Administrator\gotest>cd out4
C:\Users\Administrator\gotest\out4>goimports -w simple.go //after cd an output folder,run goimports error. is it a runtime path problem?
err: go resolves to executable in current directory (.\go.py): stderr:

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