I use MacOS 10.7.3 and XCode 4.3. In order to install Scrapy, I have followed the instructions here: http://doc.scrapy.org/en/0.14/intro/install.html#download-and-install-an-official-release .
But unfortunately the command python setup.py install failed:
unable to execute llvm-gcc-4.2: No such file or directory
error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1
Did you actually run the Xcode installer, found in /Applications? Getting it via the MacAppStore doesn't install it automatically.
Related
I am trying to run in my Mac a Python program which requires working with .avro binary files.
Despite trying to install it by using: pip install fastavro, I always get an error message on the terminal that ends with the following lines:
...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastavro
Failed to build fastavro
ERROR: Could not build wheels for fastavro, which is required to install pyproject.toml-based projects
I have updated conda to its latest version on my PC as well as updated pip as well.
Does anyone know how to solve this? I really need to run this program on Mac as soon as possible. For your information, I am able to install and use fastavro on Windows but not on Mac so this is likely to be a Mac-specific problem.
Thanks a lot
Since you are working in a conda environment, why not install it with conda? I often find installations via conda much more convenient since it takes care of all non-Python dependencies as well.
So try uninstalling the package first with pip: pip uninstall fastavro and then installing it via conda: conda install fastavro -c conda-forge.
In case you are unfamiliar with the -c conda-forge flag, it tells conda to look for the package on the conda-forge channel which has almost all packages that are not available via the standard channels.
I'm working on setting up a project (from someone else), which is currently not able to be installed. Within the root folder I'm trying to run pip install ./, but the installation gives me the following error.
File "C:\Users\ruben\miniconda3\envs\deltaconv\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '--version']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for deltaconv
Failed to build deltaconv
ERROR: Could not build wheels for deltaconv which use PEP 517 and cannot be installed directly
It seems like the setup.py file is unable to locate cmake. However, when running this in the miniconda promt, I get:
>cmake --version
cmake version 3.24.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
And when running it in a windows command prompt I get:
>cmake --version
cmake version 3.24.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
I've installed it both on the windows machine and in python and I'm a bit stuck on why the python subprocess is unable to execute cmake --version.
Hopefully someone can help me with this!
I'm trying to run a new react native project but I'm getting the same problem over and over:
-bash: react-native: command not found.
I tried to solve the problem trough other post like this: react-native: command not found
But I'm still getting the same error.
I followed all the steps provided by the React Native page (https://facebook.github.io/react-native/docs/getting-started), and I ended up with these info:
1 npm -version 6.4.1
2 brew -version Homebrew 2.1.1
3 brew info watchman stable 4.9.0
4 brew info node stable 12.1.0
5 echo $PATH:
/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/(myname)/Library/Android/sdk/emulator:/Users/(myname)/Library/Android/sdk/tools:/Users/(myname)/Library/Android/sdk/tools/bin:/Users/(myname)/Library/Android/sdk/platform-tools:/Users/(myname)/Library/Android/sdk/tools/bin
if I type in: npm install -g react-native-cli
I get:
/Users/(myname)/.npm-global/bin/react-native -> /Users/(myname)/.npm-global/lib/node_modules/react-native-cli/index.js
+ react-native-cli#2.0.1
updated 1 package in 3.653s
command not found means exactly that - the command you tried to execute (react-native) isn't found in any of the directories listed in your PATH variable.
Figure out where react-native is installed and either call it with a full path to the executable or add the directory to your PATH.
Based on this from your question:
5 echo $PATH:
/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/(myname)/Library/Android/sdk/emulator:/Users/(myname)/Library/Android/sdk/tools:/Users/(myname)/Library/Android/sdk/tools/bin:/Users/(myname)/Library/Android/sdk/platform-tools:/Users/(myname)/Library/Android/sdk/tools/bin
My best guess is that during installation you were following instructions that said to put (myname) somewhere and you literally entered the string (myname) instead of entering your actual login name.
I compiled and installed pidgin on my MacOSx Mavericks, everything seem to went fine on make install but when I try to start pidgin from terminal
I get following error:
$ pidgin
(Pidgin:68719): Gdk-CRITICAL **: gdk_display_get_name: assertion 'GDK_IS_DISPLAY (display)' failed
Pidgin 2.10.11
** (Pidgin:68719): WARNING **: cannot open display: unset
can anyone help getting rid of this message ?
So to install Pidgin first I ran ./configure with following arguments. --disable-screensaver --disable-sm --disable-gtkspell --disable-gstreamer --disable-vv --disable-meanwhile --disable-avahi --disable-dbus --disable-nss --disable-gnutls then I ran make to build a compile for my osx mavericks. then make install . In doing all the proces I discovered I need boost python binding, for which I installed boost via macports using sudo port install libboost . But when I tried to run Pidgin I got the above error mentioned in the post, so I discovered Pidgin cannot find the display required. For which I had to install XQuartz restarting installing XQuartz took a while and I relogged in and then Pidgin worked. On my OSx now the value of DISPLAY environment variable points to /tmp/launch-DXOhcE/org.macosforge.xquartz:0
i'm having trouble running easy_install scrapy and got the following error:
**cc1.exe: error: unrecognized command line option '-mno -cygwin'
error: setup script exited with error: command 'gcc' failed with exit status 1**
i'm running python 2.7 on windows 32 bit. i installed mingw, libxslt, liblxml2. what's going on there? Thanks!
The solution is to remove all instances of -mno-cygwin from C:\Python27\Lib\distutils\cygwinccompiler.py, re-run easy_install.
I had this same problem and I found the answer here:
http://www.techques.com/question/1-6034390/Compiling-with-cython-and-mingw-produces-gcc:-error:-unrecognized-command-line-option-'-mno-cygwin'
I had GCC version 4.6.2 installed which did not support the -mno-cygwin option.