Scrapy installation problems - installation

I'm trying to install Scrapy in cygwin, and I've finally got easy_install working but it keeps giving this error message: Setup script exited with error:
'gcc' failed with exit status 1
I'm using gcc version 3.4.4. Any ideas, I'm at a loss for what to try next? Before it gives this error message it print out thousands of line about OpenSSl, I'm not sure if that means the problem is in OpenSSL or not.

Finally found the root problem was in pyOpenSSL and is addressed here easy_install PyOpenSSL error.
Update: For other gcc errors that I later got I found that installing gcc4 from the cygwin setup fixed it.

Related

How can I solve this installation problem with fastavro on Mac?

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.

Pip install alternatives

I'm trying to install the dawdreamer package onto my Raspberry Pi (running the latest Raspbian OS and my python version is 3.9.2). However, the problem is that dawdreamer wasn't built for Raspberry Pi.
So, when I tried pip install dawdreamer, I got this error:
ERROR: Could not find a version that satisfies the requirements dawdreamer
ERROR: No matching distribution found for dawdreamer
Then I tried pip install "git+https://github.com/DBraun/DawDreamer.git", but when it started getting the requirements to build wheel, I got:
ERROR: Command errored out with exit status 1
...
AssertionError: File not found: /tmp/pip-req-build-xxxxxxx/dawdreamer/dawdreamer.so
Then after doing that, I cloned the dawdreamer repo and tried pip install -e DawDreamer/. But, when it starting getting the requirements to build wheel, I got the following error:
ERROR: Command errored out with the exit status 1
...
AssertionError: File not found: /home/jackphilips/dawdreamer/dawdreamer.so
Is it just not possible to install dawdreamer onto my Raspberry Pi until the package is built for it? Or could I try something else? Any help would be greatly appreciated, thanks.

Python 3.5 not letting me pip install certain libraries

So I recently upgraded from python 3.4 to 3.5 on my macbook pro. Now when I try to pip install certain libraries I keep getting this error. I have searched and searched and haven't found a solution. Has anyone else had this issue and solved it???
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1_/vjkc260x25v12hl0d3nrqqwc0000gn/T

Installing rvm on Debian gives an error: "rvm_warn: command not found"

I am trying to install rvm on my newly installed Debian. But I get this error:
bash: line 234: rvm_warn: command not found
Looking at the contents of the installer file, it is trying to output this message:
Curl returned 141 - it is result of a segfault which means it's Curls fault.
Try again and if it crashes more than a couple of times you either need to
reinstall Curl or consult with your distribution manual and contact support.
I tried re-installing curl, but it did not fix the problem.
Any ideas how to fix this?
This are two separate errors you need to report the first one to RVM: https://github.com/wayneeseguin/rvm/issues
The second one is a problem in your system, you can add --debug or --trace flags to the installer to see on which urls it fails, then you should be able to reproduce it without RVM - this should be reported back to your distribution as 141 is unexpected curl error.

scrapy installation error

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.

Resources