I'm trying to create an executable from a python script using PyInstaller, but I'm getting the following error
File "/Users/cmustata/Library/Python/2.7/lib/python/site-packages/PyInstaller/lib/modulegraph/modulegraph.py", line 1225, in _updateReference
ed = self.edgeData(fromnode, tonode)
AttributeError: 'PyiModuleGraph' object has no attribute 'edgeData'
This seems to be related to PyInstaller itself and not my script, so I'm at a loss about how to fix it.
I'm running this on MacOS, with PyInstaller installed using pip. Python is system installed 2.7.10
When I install Pyinstaller on MacOS, terminal prompt this warning:
macholib 1.11 has requirement altgraph>=0.15, but you'll have altgraph 0.10.2 which is incompatible.
However, I ignored it.
When using Pyinstaller, the error you mentioned occurred too.
So, for compatible version of altgraph, just uninstall altgraph and reinstall it.
Everything will be ok.
sudo pip uninstall altgraph
and then
sudo pip install altgraph
Related
I get an error when I want to install pykd using pip.
The error says:
ERROR: Could not find a version that satisfies the requirement pykd (from versions: none)
ERROR: No matching distribution found for pykd
When I try to download the .whl file of pykd and install it with pip, I get this error:
ERROR: pykd-0.3.4.15-cp39-none-win_amd64.whl is not a supported wheel on this platform.
I'm running python 3.11.0 on a Windows 11 64-Bit machine with pip 22.3.1. I tried older versions of pykd but same error.
Can anybody help so I am able to run pykd?
pykd-0.3.4.15-cp39-none-win_amd64.whl
it is not surprising what this wheel built special for python 3.9, so it can installed only for python 3.9
pykd build for 3.10 or 3.11 does not exsist. And there is no unversal pykd build. Sorry.
I recommend you use 3.8 python with pykd.
Trying to install localstack on a raspberry pi 3B using raspberrypi os with these specs:
Python: 3.9.2
platform: Linux-5.15.76-v7+-armv7l-with-glibc2.31
pip: n/a
setuptools: 65.5.1
setuptools_rust: 1.5.2
rustc: 1.65.0 (897e37553 2022-11-02)
This problem seems to be fairly well documented but each solution and work around fails for me.
When I run the following commands as detailed in this question:
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
pip install localstack
I get the same PEP 517 error when attempting to build the cryptography wheel.
I've already tried uninstalling and reinstalling rust as detailed here and I'm still getting the PEP 517 error.
Cryptography appears to be installed when I do pip install cryptography. Is there a way to stop the local stack install from building the wheel using rust?
Edit: I realized that the problem was do to installing the 32-bit architecture I reimaged the using the 64-bit build downloaded here. I reinstalled localstack using:
pip install local stack
It installed I rebooted then when I tried:
localstack --help
But I get the following error:
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
I am attempting to install pyqt5 and pyqt5-tools on my Windows PC running python 3.10.8 and pip version 22.3.1.
However, this results in the same error every time, it manages to install pyqt5, but when installing pyqt5-tools, I get this error:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 144, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
I first installed pyqt5 with the command in CMD:
pip install pyqt5.
This worked as expected, and works when I import it into python.
Then, I tried to install pyqt5-tools, using...
pip install pyqt5-tools.
This command creates the aforementioned error.
I have tried two other commands: pip install pyqt5 pyqt5-tools and py -m pip install pyqt5-tools, that have yielded the same results.
I have already checked that pip is the newest updated, as well as re-installed pyqt5 in-case it was an error with that.
I can supply the traceback if necessary.
I'm trying to install SimpleElastix for python. As far as I can tell, you can either download a whl file from https://simpleelastix.github.io/#download
or simply pip install as shown here: https://pypi.org/project/SimpleITK-SimpleElastix/
I first tried downloading it and am trying to install SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl that I have saved to drive.
I am using the following (pip has been updated):
(hids3) C:\Windows\system32>python --version
Python 3.8.0
(hids3) C:\Windows\system32>pip --version
pip 22.0.4 from C:\Users\kated\anaconda3\envs\hids3\lib\site-packages\pip (python 3.8)
I try to run pip install SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl
and get the following error:
ERROR: SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform.
According to Error "filename.whl is not a supported wheel on this platform" , this could be caused by a downloading the .whl file for a wrong python version. I would expect python 3.8 to support a CPython 3.4 version or am I wrong for assuming this?
Alternative way to download SimpleElastix: https://pypi.org/project/SimpleITK-SimpleElastix/
I also tried running
pip install --user SimpleITK-SImpleElastix
in the terminal, which worked, but when I run
import SimpleITK as sitk
sitk.Elastix()
I get
AttributeError: module 'SimpleITK' has no attribute 'Elastix'
Anyone have any idea what I'm doing wrong in either case?
As the title says, I am trying to install a program that has a couple of dependecies that demand a specific Python version (>= 3.7). I do not have admin rights, so I can't use sudo. The Python version installed is 2.7. Because of that, I used virtualenv to install and execute Python 3.9.5.
I executed venv, and checked the Python and pip versions:
which python
/home/honda/venv_python-3.9.5/bin/python
which pip
/home/honda/venv_python-3.9.5/bin/pip
I even checked the version using:
python
Python 3.9.5 (default, May 10 2021, 13:50:25)
Which, as I understand, means that I have the correct Python/pip versions.
However, when I try to install the program, I get this:
./install.sh ../Programs/
Installing darwin binary...
Installing oma...
Installing libraries...
creating virtualenv for hog_bottom_up
Collecting numpy (from -r ../Programs//OMA/OMA.2.4.2/hog_bottom_up/requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/f3/1f/fe9459e39335e7d0e372b5e5dcd60f4381d3d1b42f0b9c8222102ff29ded/numpy-1.20.3.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-3_2_atp3/numpy/setup.py", line 30, in <module>
raise RuntimeError("Python version >= 3.7 required.")
RuntimeError: Python version >= 3.7 required.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3_2_atp3/numpy/
You are using pip version 8.1.1, however version 21.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Cannot install python dependencies for hog-bottom-up inference algorithm
cannot create virtual environment for hog_bottom_up
To be honest, I don't know what is happening here. Is there something I am missing? I am not experienced in using virtualenv (I previously used another computer, one that I could use sudo, so I never had any problems like this, and I did install this same program there.)
Is there anything I can try? I guess could reach out to the admin and ask them to install the program for me, but I'd rather not do that yet.
Thank you!