Getting issue on terminal command while creating opencv2.framework - python

I was facing some issues with opencv2.framework in iOS related to bitcode. While searching on the internet, I found this post regarding creating the opencv2.framework with bitcode support enabled.
First 3 steps run successfully but on 4th step, i am facing some issue. I dont know whether these are issues regarding to python or something else. Kindly help me. Here are the logs.

I get the same issue. My solution is that:
Check cmake has been installed. If not, use home brew to install cmake: brew install cmake.
Then run python ../bulid_framework.py <your_save_dic>
Good luck.

Related

How do I resolve #error: architecture not supported during pip install psutil?

I've run into some problems while trying to download packages with pip. Namely, when I run
pip install "dask[complete]"
on MacOS Catalina 10.15.7. Specifically, the package that throws this error is psutil.
I run into an #error: architecture not supported message. I believe this is because the installer is looking for the MacOS 10.14.6 SDKs, but I am on 10.15.7. One user on this post stated that installing a new Python 3 fixed the issue. Maybe this is because the newer Python comes with a cached version of the package that uses the MacOS 10.15.7 SDKs.
I'm guessing that there might be two solutions to this issue:
Download a non-cached version of psutil, which might be compatible with the version of Python I'm using as well as MacOS Catalina.
Download a newer version of Python 3, namely 3.8.5+, and replace the Xcode Python 3 with this version, enabling me to stay up-to-date with current Python and packages.
I'm wary of the second method because of any possible dependencies I will lose while updating, and I've also been made very aware through research that generally speaking, you don't want to mess with system Python installations.
I'm not opposed to being walked through the first solution, if it would indeed solve the problem, but am very curious about the second solution, again, if it is possible. If neither approach would work out as intended, has anyone encountered this issue and resolved it without using a fresh, SEPARATE install of Python? I don't really want to start messing with virtual environments, but if I must, I supposed I will just download PyCharm and restart there.
EDIT: After continuing to try to work around the issue, I've been led to believe that it is not being caused by an outdated version of psutil; could it be an outdated version of setup.py? In this case, would it indeed be an issue with an old Python version? I'm very new to configuring Python in depth like this, any help would be greatly appreciated.
Try setting the environment variable ARCHFLAGS="-arch x86_64" so Xcode 12 doesn't try to build an ARM64 universal binary. It worked for me on a different python package that had the same error.
ARCHFLAGS="-arch x86_64" pip install "dask[complete]"
(Thanks to Keith Smiley's comment at on Bitbucket for pointing this out.)

Unable to install packages -- Pycharm -- Python.exec path not working

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!

Can't get SFML for Python 2.7

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

How to modify existing conda install to fix bug?

I am running into an Anaconda bug described in this Github issue: https://github.com/conda/conda/issues/2965
The reporter indicates that if we makes some changes to Anaconda, he can fix the problem. I have installed Anaconda on my Max (OS X 10.11.6), and I am having the trouble reported by this issue while following instructions to install TensorFlow. I'm wondering whether someone can tell me how to find and modify my Conda installation to test out the proposed bug fix listed in the issue? Also are there files I can simply modify or will I need to recompile or reinstall after? I am a newbie to this sort of thing, so any advice would be appreciated.

vcvarsall.bat with Python 2.7 cannot use pip to install fabric

I've searched SO regarding this question, and the only information is regarding Python 2.6.
The apparent fix as outlined here for example: error: Unable to find vcvarsall.bat does not seem to work with Python 2.7
I am trying to install fabric utilizing the command pip install fabric and am getting a long list of errors ending with error: Unable to find vcvarsall.bat
If anyone could advise on a fix, it would be greatly appreciated.
Thanks
It sounds like your distutils.cfg file might not be in the right place. Take a look at the fix outlined here: pip mingw compile? If that doesn't help, search StackOverflow for vcvarsall and you'll find other discussions.
you could check up the following that might be helpful:
http://shop.wickeddevice.com/2013/12/11/windows-7-python-virtualenv-and-the-unable-to-find-vcvarsall-bat-error/

Categories