What I'm trying to do
I'm trying to get the SFML binding for Python 2.7. 32-bit version of python using windows.
https://python-sfml.org/download.html
What I've tried
There exe doesn't work because when you click or save the link it returns nothing and says it's missing.
I also used PIP to install Cython which I have, though when I try to use PIP to download pysfml, pySFML, python-sfml or sfml-python, pip tells me:
Could not find a version that satisfies the requirement sfml(from versions:)
No matching distribution found for pysfml.
When I try pip install -vvv pysfml
It also tells me that there is no matching distribution for pysfml.
What I'm asking for
How do I download this library? How do I get it to work for python 2.7
Have emailed the main developers of PySFML and they responded with this:
Thanks for letting us know, we're very aware of this. I already rewrote each page (download + compilation) but download links come with the actual per-compiled packages which aren't created yet. I'll upload them as soon as I finish to setup the continuous integration service that will automate the delivery of these per-compiled packages.
Expect one week before things are done.
Looks like it's just part of the site overhaul that's on-going and should be resolved soon.
Furthermore:
There were never uploaded.^^ These bindings had never been ready for this until recently (see recent commits). However, you can pip install directly from the repository, it must be something like pip git+https://github.com/Sonkun/python-sfml?egg=pySFML.
I know compiling these bindings isn't a straight forward task, however, feel free to ask for assistance. :)
PS: you must use SFML 2.3.2
Related
I am trying to install packages to use in a python program and am unable to install anything. Included below are screen shots showing the interpreter selected, the path of that interpreter, and the error message I receive. Please let me know what I am missing.
I've been looking around at other people's problems like this and nothing seems to fit my issue.
This kind of error seems like you do not have a stable connection to the pypi. The standard recommendation would be to "Make sure you are connected to the internet, Pycharm is allowed through the firewall and that your proxy (if you are behind one) allows access to this url address."
Now that is not very helpful so if this issue is happening over a single package, you can simply download the python wheel from the beautifulsoup's project page and install it manually by running pip install downloaded_whl_file.whl in the Pycharm's terminal (make sure that the environment is right!)
Lastly, you might be able to get around it by using a pip proxy through pip install beautifulsoup4 --proxy http://some-proxy.com
I hope that the above can help you get through your issue!
So I have downloaded the "Windows x86-64 embeddable zip file" from https://www.python.org/ftp/python/3.7.4/python-3.7.4-embed-amd64.zip and it works well
I want to install PIP so I also got https://bootstrap.pypa.io/get-pip.py
However it's throwing up a 407 proxy authentication error and despite me putting proxy information in, I presume at this point that NTLM is to blame.
My question is how would I get around this? Is it possible to install PIP/Setuptools via the embeddable zip method 100% offline?
I want to eventually use pandas and requests
I tried what pip with embedded python suggests but get the below:
Thanks
It might be complicated but probably not impossible. Also I haven't tested any of this personally, these are more directions that you could look into.
First I would have a look at this. The important point is to find your python??._pth file and uncomment the import site line.
But you say get-pip.py did not work, right? (from here)
python get-pip.py --proxy="http://[user:passwd#]proxy.server:port"
So you could download the wheels another way and then try something like this to bypass the network issues
(from here):
python pip-10.0.1-py2.py3-none-any.whl/pip install --no-index pip-10.0.1-py2.py3-none-any.whl
Once you have pip running you can slowly build a Python environment that is comfortable enough to work with. But I believe you would still be severely limited, I think parts of the standard library will be missing and so on.
Maybe you should work on solving the issues preventing you from getting a standard Python installation instead.
My question might not be very concise. Please forgive me for that as I go through my desperate attempts to fix my problem. I might even sound like an idiot at times.
I'm using Inkscape v0.92.4 on a Windows 10 Pro 32-bit computer .
The problem arises when I try to access the "Voronoi Diagram" Extension in Inkscape. As soon as I click apply, this arises:
The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension.Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml
Technical details:
cannot import name etree
It might look like an old, maybe already resolved problem, but looks like all odds are stacked against me.
Attempt 1:
Googling the problem landed me here. Following that I tried adding and modifying the "PYTHONHOME" variable from the Environment Variables option under the Advanced System Settings option of the System settings in Control Panel. As expected, no luck.
Attempt 2:
The second result from the Google Search landed me on a Stack Overflow site. Accordingly, I uninstalled both Inkscape and Python, re-installed Python v3.7.3 (although the guy over there installed a 2.x version of Python), installed lxml wrapper through PIP:
pip install lxml
then re-installed Inkscape while keeping the "Python 2.x" checkbox unchecked during installation.
Looks like this time they DID recognize the "lxml wrapper" that I installed, but came up with another error:
Fatal Python error: initfsencoding: unable to load the file system codec
File "F:\Inkscape\python\Lib\encodings\__init__.py", line 123
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
Current thread 0x00000940 (most recent call first):
So yeah, no luck again.
Attempt 3:
Pondering on the aforementioned error, I hypothesized that this error came up because Inkscape does not support Python 3.x, so while doing more research on that (looking up "is inkscape compatible with Python 3"), I came across another Stack Overflow article and I thought the problem to be somewhat similar to mine. However, I STILL did not install Python 2.x and tried the same thing but linking back to the Python 3.x interpreter. (I suggest you to visit the link, but if you are in a hurry, well here's what I did:
1. Headed to C:\Users\N\AppData\Roaming\inkscape\prefereces.xml
2. Looked up for a group with an id ëxtensions and added ' python-interpreter="C:\Users\Sirajuddin\AppData\Local\Programs\Python\Python37-32\python.exe" ')
Didn't work (totally expected). Then I tried linking towards the Python directory in the Inkscape directory itself (F:\Inkscape\python).
Turns out this time they went back to the very basic "lxml wrapper needed" problem. So I copied the two folders from my Python directory (C:\Users\N\AppData\Local\Programs\Python\Python37-32\Lib\site-packages) and pasted it in F:\Inkscape\python\Lib\site-packages. Guess what, still no luck.
Attempt 4 (The Last Attempt):
This time I finally installed Python v2.7.16 (however, I insisted to keep the Python 3.x version as that's the version I learned to code with and I work with). Going through the same steps as Attempt no.3, now I linked towards the my Python 2.x directory. However, Inkscape again returns to the very basic "lxml wrapper needed" problem. I tested with the Command Prompt and I COULD use both Python 3.x and 2.x separately given that I link to their respective directories. However, if I try to install lxml wrapper through PIP in the Python 2.x directory (hoping to install it again for Python 2.x), it shows that "Requirement already satisfied". I tested in the Python 2.x interpreter whether the lxml wrapper is there or not by:
C:> python
>>> import lxml
and returned with no errors, meaning its there. However, that's not what Inkscape says (Inkscape still says I don't have the lxml wrapper even if I link to the Python 2.x directory). Then I tried to copy the two folders for lxml wrapper from my Python 3.x directory and paste them on my Python 2.x directory, still no luck.
So I went back to the link Inkscape provided in the error message, and downloaded the .whl file applicable for the Python 2.x version, and then pip install "lxml-4.3.4-cp27-cp27m-win32.whl" (pip install the file). However, the Command Prompt returns with this error:
Requirement 'lxml-4.3.4-cp27-cp27m-win32.whl' looks like a filename, but the file does not exist
lxml-4.3.4-cp27-cp27m-win32.whl is not a supported wheel on this platform.
This now leaves me with one more option that I'm not sure whether it will work or not - uninstall Python 3.x and 2.x and then re-install Python 2.x only, more like forcing me to leave Python 3.x.
I know my question is too long and hard to follow, but I told all that I tried throughout the whole night without sleeping for a second. Could you please try to come up with a solution of my problem? I'm desperate for help as there are many other Extensions and some functionalities that I wouldn't be able to use without this fix. I will be forever grateful to the people who would try to solve my problem at the cost of their valuable time.
UPDATE:
I uninstalled python 3.x, installed pip and lmxl wrapper for python 2.x. Still didn't work. However, following the attempts taken at attempt 3, if I link that with the Python Interpreter 2.X, it does not show the error message. However, the "Please Wait" window vanishes just after 1 sec of clicking Apply, and nothing happens. So yeah, still doesn't work
Uninstall Inkscape.
After uninstalling, delete all files that belong to Inkscape, there are probably some left. This is the most important part.
Undo all changes to your Python environment variables. Fix your preferences file back to its original state or rename it.
The error you see is most likely due to not following the update instructions on the Inkscape website, and updating from a different executable type.
msi cannot be installed over exe. exe cannot be installed over msi. They do not replace each other. One older Inkscape version didn't uninstall all Python files when running the uninstaller. Any of these could be the reason.
The fix is always to remove Inkscape completely, then reinstall.
Inkscape 0.92.4 comes with the lxml python module on Windows. It does not need to be installed.
It seems that I cannot get yowsup properly installed under Windows 7.
I am following these procedures for installation:
https://github.com/tgalal/yowsup/blob/master/README.md
doing a
pip install yowsup2
python setup.py install
I have omitted installation of zlib since I do know where the dll is,
but not in which directory I should copy it.
Everything runs fine when using yowsup-cli, I can send and receive messages.
However, I cannot run samples on signals and methods such as shown:
https://github.com/tgalal/yowsup/wiki/%5BLegacy%5D-Yowsup-Documentation
since I cannot find the file connectionmanager.py, this is not installed or created.
Any help appreciated, thanks!
There are two branches: legacy (yowsup) and master (yowsup2)
Yowsup2 is the newer version with a clean up of the code compared to yowsup(legacy).
What you did is installing yowsup2 but you tried to use functions of the legacy package. (Imagine an old car as legacy without automatic but you trying to use it)
Also Yowsup2 (master) will get updates and that stuff while legacy won't be updated anymore.
If you have any more questions feel free to ask.
It seems that one needs to do an additional
pin install Yowsup
(mind the capital letter, and no trailing '2' here)
to install the legacy package which includes the connectionmanager.py
However, this is installed in the directory yowsup starting with a small 'y', but modules in the scripts are still not found since they refer to a Yowsup directory with capital Y.
Confused.
does anyone knows what's happeing with:
pagetemplates.org
I am creating a project, and downloading from that repository fails.
It looks like it's out of order for few days already.
I think it's have to do something with Pyramid, but I don't know how to turn it off - to skip downloading that part, or at least how to limit attempts for downloading as right now it keeps running in the loop?
Download error on http://www.pagetemplates.org/: timed out -- Some packages may not be found!
Is there a way to skip this, are thee some setting in some config file? I am trying to locate it in past hour but to avail.
You can limit how easy_install searches for mirrors by using easy_install --allow-hosts 'pypi.python.org' pyramid for example. It's unfortunate that setuptools doesn't default to searching only the official pypi mirrors but I imagine it's due to the feature being introduced before there were official mirrors.
As stated by Siddharth Toshniwal, the problem has been discussed on the pyramid mailing-list.
Python has two package installation system : easy_install and pip. easy_install is the one used when you call python setup.py develop, and fetches the package directly from its website, while pip fetches from the python packages index.
So, while pagetemplates.org (which is the site for the package chameleon) is down, it won't be possible to install chameleon using easy_install, but it should work perfectly with pip. All you need to do is run pip install chameleon then resume what you were doing.