python-sfml icon indicating copy to clipboard operation
python-sfml copied to clipboard

cant manage to install it through PIP...

Open jokoon opened this issue 8 years ago • 8 comments

PS C:\Users\> pip install git+https://github.com/Sonkun/python-sfml#egg=pysfml
Collecting pysfml from git+https://github.com/Sonkun/python-sfml#egg=pysfml
  Cloning https://github.com/Sonkun/python-sfml to c:\users\~1\appdata\local\temp\pip-build-flg0_a_e\pysfml
No files/directories in C:\Users\~1\AppData\Local\Temp\pip-build-flg0_a_e\pysfml\pip-egg-info (from PKG-INFO)
PS C:\Users\>

I remember that I managed installing it with a similar command, but I dont remember how...

jokoon avatar Aug 31 '17 15:08 jokoon

I couldn't get your command to work either, not sure if it ever will.

For now, how about trying to manually install it?

pip install cython
git clone https://github.com/Sonkun/python-sfml
cd python-sfml
python setup.py

Did the trick for me. On Windows you'll probably need to run it in an administrator terminal/shell/cmd. At least on GNU/Linux I had to run python setup as root.

Necklaces avatar Aug 31 '17 19:08 Necklaces

I'm abandonning as it requires VC++... I'm not on my computers, it's a very small laptop.

Any idea when pysfml will hit the pypi repo again?

jokoon avatar Sep 01 '17 10:09 jokoon

@jokoon There are some prebuilt binaries of cython for windows you could try, here; http://www.lfd.uci.edu/~gohlke/pythonlibs/#cython

Necklaces avatar Sep 01 '17 16:09 Necklaces

It looks like pySFML is no longer available at PyPi. Do you have any idea if there are plans to bring it back/curate it?

kubasobon avatar Sep 25 '17 10:09 kubasobon

@wtty-fool See #147.

Necklaces avatar Sep 25 '17 12:09 Necklaces

Still having problems with pip, pip install pySFML

gives:

Collecting pySFML Could not find a version that satisfies the requirement pySFML (from versions: ) No matching distribution found for pySFML

matts-dev avatar Nov 11 '17 19:11 matts-dev

@mattstone22133 Cool.

Necklaces avatar Nov 11 '17 19:11 Necklaces

I managed to build it, by editing the setup.py, installing swig for cython, etc

It builds fine except when I do import sf, I have


Traceback (most recent call last):
  File ".\sf.py", line 5, in <module>
    from sfml import sf
  File "C:\Users\eio\AppData\Local\Programs\Python\Python36\lib\site-packages\pysfml-2.3.2.dev1-py3.6-win-amd64.egg\sfml\__init__.py", line 4, in <module>
    import sfml.audio
ImportError: DLL load failed: The specified module could not be found.

jokoon avatar May 12 '18 15:05 jokoon