pyfa-org / Pyfa

Python fitting assistant, cross-platform fitting tool for EVE Online
GNU General Public License v3.0
1.61k stars 406 forks source link

how should one run from source? #2537

Closed Frefreak closed 11 months ago

Frefreak commented 11 months ago

Normally for a python project one can just pip install -r requirements.txt and then run an entry script to start (in pyfa it seems to be pyfa.py). In this repo tox.ini mentions python 3.8 and requirements.txt requires 'wxPython==4.0.6' which from pypi can be seem support up to python 3.7 and is 4 years ago.

I tested with both python 3.7 and 3.8 in a clean virtualenv but all failed to build wxPython during the pip install process (BTW I need to manually install a pathlib2 dependency).

Is the requirements.txt accurate? If not can we update the file so users who are interested in the code can have a better experience running pyfa?

I tested with python 3.11 but it at least needs integer division fix (https://aur.archlinux.org/cgit/aur.git/tree/0001-python-3.10-compatibility.patch?h=pyfa#n86)

Bug Report

can't install dependency following requirements.txt

Expected behavior:

be able to pip install -r requirements.txt with the expected python version

Actual behavior:

failed to build wxPython:

copying symlink wx/libwx_baseu-3.0.so -> build/lib.linux-x86_64-cpython-37/wx/libwx_baseu-3.0.so
error: [Errno 2] No such file or directory: 'build/lib.linux-x86_64-cpython-37/wx/libwx_baseu-3.0.so'

Detailed steps to reproduce:

  1. install python3.7 or 3.8
  2. virtualenv venv -p python3.7 # or 3.8
  3. source venv/bin/activate
  4. pip install -r requirements.txt

1-3 just prepares a clean env (since my system is using python 3.11)

Release or development git branch? Please note the release version or commit hash:

current master: 88970c7a95bf8e71aa2d61de1bc2ed9f1c55e7d3

Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):

ArchLinux

I know there is an AUR package, but I want to experiment with the code easier.

Frefreak commented 11 months ago

After further investigation, I realized that the issue was not with the requirements.txt, but with my local environment. Specifically, virtualenv was using setuptools version 60+, after I downgraded it wxPython successfully built and pyfa runs fine now. I apologize for the confusion.