jamesremuscat / pcars

Python client for Project CARS UDP data stream.
15 stars 16 forks source link

Troubles when using setup.py #13

Open AlexandrePiccini opened 5 years ago

AlexandrePiccini commented 5 years ago

Hello there, I'm really new to Python and UDP messaging, so excuse me if I'm committing dumb mistakes. For starters, I'm running python via Visual Studio due to reasons to do with another project that I'm working on. When I run setup.py I find this:

error

Should I worry? If you allow me to make a few comments about the documentation, it would be nice to have a more comprehensive version of the docs, especially one that could guide the newbie user (like me) a little easier along the route of running this solution. I'm just getting started with Python (although I have experience with some other few languages) and it has been a bit of a struggle to get going with the environment so far. I'm using this because I want to code my DIY dash in a raspberry, but I need to get to know how the packets look like first.

Thank you.

jamesremuscat commented 5 years ago

Hi,

Thanks for taking an interest.

setup.py is part of Python's standard setuptools package, and should be run with e.g.

python setup.py install

to install the library into the current Python environment. (I've never used Python with Visual Studio, so I have no idea how it handles that - it might try to install to your system-wide Python, or - ideally - to a per-project Python environment.)

Once pcars is installed into your Python environment, then running the sample code from README.md should work. (Note that as written, that code will terminate immediately and not wait to receive any packets; see https://github.com/jamesremuscat/pcars/issues/6#issuecomment-384217305)

As you can probably tell, I've not really touched this code in years! :slightly_smiling_face:

AlexandrePiccini commented 5 years ago

Thank you James.

I will try that next time. I'm currently a bit busy, but I hope I can get my hands on this asap.

See you