Heroku Could not generate requirement for distribution -lotly 2.7.0 - heroku

Hi I am having some error when I am trying to deploy my app to Heroku.
When I pip freeze>requirements.txt, I am getting this error:
"WARNING: Could not generate requirement for distribution -lotly 2.7.0 (c:\users\xxx\appdata\local\programs\python\python37-32\lib\site-packages): Parse error at "'-lotly=='": Expected W:(abcd...)"
Can anyone help me out? thanks!

You can solve this error by deleting this module from the site-packages directory. from your question above, it looks like the module is present in c:\users\xxx\appdata\local\programs\python\python37-32\lib\site-packages .
you can do a sanity check by using pip freeze .

I was getting the same error while I was trying to do "pip freeze > requirements.txt"
Could not generate requirement for distribution -eportlab3.5 ....
There should be a corrupt file on the site-packages folder similar to '~eportlab-3.5.50.dist-info' OR '~eportlab'. Delete it manually and run the same command. It should work.

Related

I get errors tring to install django cripsy forms

When I try to install django cripsy forms via the command:
'pip install django-cripsy-forms'
but I keep getting the following errors:
ERROR: Could not find a version that satisfies the requirement django-cripsy-forms (from versions: none) and
ERROR: No matching distribution found for django-cripsy-forms.
Please can anyone help me fix this?
Thanks.

Why pastebinit is not available via pip?

I got this error messsage.
$ pip install pastebinit
ERROR: Could not find a version that satisfies the requirement pastebinit (from versions: none)
ERROR: No matching distribution found for pastebinit
But according to the following URL. It should be available. Does anybody know what is wrong? Thanks.
https://libraries.io/pypi/pastebinit
There is no such project available on PyPI currently: https://pypi.org/project/pastebinit/
libraries.io is not an authoritative source. It also shows no currently available release for this project anyway: https://libraries.io/pypi/pastebinit/versions
The forge for this software seems to be here: https://launchpad.net/pastebinit
Nop, it's not there. The URL https://pypi.org/project/pastebinit/ returns error 404. Perhaps it was there but later was removed.

read-the-docs: ImportError despite dependency being set in setup.py

Consider this build error:
I see lines like: ImportError: No module named swisseph and invalid signature for automodule (u'jyotisha\n :members:'). My setup.py does include pyswisseph as a dependency already.. What's a good fix?
PS: My local sphinx build seems fine.
Following #steve-piercy's tip and the FAQ, I was able to get past this error - I just needed to to enable the virtualenv feature in the Admin page of my project.
The install then fails for another (as yet undebugged reason) - but that's separate.

Error -60005 when install Cocos2d-iPhone v3 RC4

When I try to install Cocos2d-iphone 3.0.0 RC4, I got an error: (run without sudo)
Error -60005 occurred while executing script with privileges.
So, I try to show its package content and use terminal to do: cd ...Cocos2D Installer 3.0.0.app/Contents/MacOS
I try this command: (with sudo)
sudo ./Cocos2D\ Installer\ 3.0.0
It works but I got log with some errors:
[1m>>> Installing Cocos2D-v3.0.0 files (B[m
[1m>>> Installing Cocos2D-v3.0.0 templates (B[m
[4m[1mCocos2D Template Installer (Cocos2D-v3.0.0)(B[m
Error: [31m✖︎(B[m Script cannot be executed as root.
In order for it to work properly, please execute the script again without 'sudo'.
If you want to know more about how to use this script execute '/Users/viethung/Downloads/Cocos2D-v3.0.0/install.sh --help'.
[1m>>> Building/Installing Cocos2D-v3.0.0 documentation, this may take a minute.... (B[m
appledoc version: 2.2 (build 963)
Generation step 4/5 failed: GBDocSetInstallGenerator failed generating output, aborting!
Documentation set was installed, but couldn't reload documentation within Xcode.
Xcode got an error: No documentation set present at specified path.
[1m>>> Cocos2D-v3.0.0 installation complete! (B[m
Are there any way is better than this way?
I have same problem.
I think you installed old cocos2d-iphone and it caused this problem.
You should remove old cocos2d-iphone first. I removed:
~/Library/Developer/Xcode/cocos2d v3.x
And install again. It works for me.
Hope it works for you :)

Help Installing psycopg2 on snow leopard : command '/usr/bin/gcc-4.0' failed with exit status 1

This has been driving me crazy for 2 days.
I have been trying to install psycopg2 using easy_install and no matter what I try (i.e using gcc-4.0 instead of the snow leopard default one) I always get the same error:
error: Setup script exited with error: command '/usr/bin/gcc-4.0' failed with exit status 1
Please see: http://dpaste.com/hold/228252/
I have googled that error so many times and nothing I have found seem to help.
Looks like you're missing a dependency, the development files for libpq. The relevant log part is here:
In file included from psycopg/psycopgmodule.c:32In file included from psycopg/psycopgmodule.c:32:
./psycopg/psycopg.h:31:22: error: libpq-fe.h: No such file or directory
Try installing libpq development files and then rerun easy_install. You may hit another missing dependency; pay attention to the first error that GCC spits out.
Link http://dpaste.com/hold/228252/ seems to be dead, this is how I solved this problem (Mac OS X 10.6, virtualenv).
If pip fails with this message, just take a look to build folder in your virtual environment. You should edit setup.cfg file there, particularly include_dirs and library_dirs. In first one set your include folders, my option was:
include_dirs=/opt/local/include/postgresql84:/opt/local/include/postgresql84/server
and most likely you will need to set library_dirs to correct location as well:
library_dirs=/opt/local/lib/postgresql84.
probably you should install postgresql-devel first
yum -y install postgresql-devel

Resources