citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.56k stars 2.1k forks source link

Can't build server with Python 3.10 (node_inspector.py) #1163

Open 0xLuca opened 2 years ago

0xLuca commented 2 years ago

I followed the steps as stated at https://github.com/citizenfx/fivem/blob/master/docs/building.md, but when trying to build the server solution in visual studio i get these errors:

MSB8066 Custom build for '..\..\..\vendor\node_inspector.py' exited with code 1. LNK1181 cannot open input file 'C:\Users\luczi\projects\fivem\server\code\build\server\windows\obj\Debug\node\lib\node.lib'

The file does not exist, neither its parent folder "lib": grafik

blattersturm commented 2 years ago

Are you using Python 3.10 by chance?

0xLuca commented 2 years ago

Are you using Python 3.10 by chance?

Yes, i am using 3.10.0 from the official repository

blattersturm commented 2 years ago

Right, someone claimed this was incompatible before. Try 3.8 or 3.9 for the time being.

t3chman commented 2 years ago

Can confirm that 3.10 was not working for me and had to revert to 3.8

0xLuca commented 2 years ago

Right, someone claimed this was incompatible before. Try 3.8 or 3.9 for the time being.

After downgrading to 3.8 the build succeeds without any problems and the server runs. Thank you for the fast issue processing.

gottfriedleibniz commented 9 months ago

Was https://github.com/citizenfx/fivem/commit/db07118aa089244b2dfbfdfd0af4c03dd77e2300 related to this issue?