clarete / curdling

Concurrent package manager for Python
http://clarete.li/curdling
GNU General Public License v3.0
276 stars 19 forks source link

curd-server (script) installed but not usable or has installation problems (unspecified deps) #59

Open jenisys opened 10 years ago

jenisys commented 10 years ago

VERSION: curdling-0.4.0 (with: python 2.7 on MACOSX)

When I install curdling into a virtualenv, the "curd-server" script is installed, too, but:

Here I stopped ;-( (with curd-server usage).

Seems to be caused by (through manual inspection):

# -- FILE: setup.py
…
setup(
...
            'server': parse_requirements('requirements-server.txt')[0],  #< HERE: Is the problem, only first req is installed.
clarete commented 10 years ago

Thank you for reporting the issue. It's actually a known (and undocumented until your report) bug. If you want to run curd-server now, you can just execute curd install curdling[server] and it will install all the required packages it needs to run!

This issue will certainly be addressed soon! Thanks!

jenisys commented 10 years ago

Mmh, actually I tried to use the document workaround curd install curdling[server] (with 0.4.0 as you can se above). It works now after I uninstalled everything. But I run into a problem when I install gevent. When I manually install the latest version of gevent (and before flask), which includes all dependencies, everything works fine:

pip install cython git+git://github.com/surfly/gevent.git#egg=gevent

I ran into problems w/ gevent-0.3.18, probably because libev was not installed on my system. The latest development versions seems to bundle/include all dependencies.

NOTE: When you use easy_install to install curdling the curd-server runs into a problem when the HTTP page is opened because it checks if the template is a directory (in the zipped egg) which fails.

sjansen commented 10 years ago

This is still an issue:

$ virtualenv /tmp/ve New python executable in /tmp/ve/bin/python Installing distribute.............................................................................................................................................................................................done. Installing pip...............done. $ source /tmp/ve/bin/activate (ve)$ pip install curdling Downloading/unpacking curdling Downloading curdling-0.4.0.tar.gz Running setup.py egg_info for package curdling

Requirement already satisfied (use --upgrade to upgrade): distribute in /tmp/ve/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg (from curdling) Downloading/unpacking wheel>=0.21.0 (from curdling) Downloading wheel-0.22.0.tar.gz Running setup.py egg_info for package wheel

  no previously-included directories found matching 'wheel/test/*/dist'
  no previously-included directories found matching 'wheel/test/*/build'

Downloading/unpacking distlib==0.1.2 (from curdling) Downloading distlib-0.1.2.zip (460Kb): 460Kb downloaded Running setup.py egg_info for package distlib

Downloading/unpacking urllib3>=1.7 (from curdling) Downloading urllib3-1.8.tar.gz (76Kb): 76Kb downloaded Running setup.py egg_info for package urllib3

Installing collected packages: curdling, wheel, distlib, urllib3 Running setup.py install for curdling

  Installing curd script to /tmp/ve/bin
  Installing curd-server script to /tmp/ve/bin
Running setup.py install for wheel

  no previously-included directories found matching 'wheel/test/*/dist'
  no previously-included directories found matching 'wheel/test/*/build'
  Installing wheel script to /tmp/ve/bin
  Installing wininst2wheel script to /tmp/ve/bin
  Installing egg2wheel script to /tmp/ve/bin
Running setup.py install for distlib

Running setup.py install for urllib3

Successfully installed curdling wheel distlib urllib3 Cleaning up... (ve)$ curd install curdling[server] Installing: [##########] 100% (5/5) (ve)$ curd-server -h Traceback (most recent call last): File "/tmp/ve/bin/curd-server", line 9, in load_entry_point('curdling==0.4.0', 'console_scripts', 'curd-server')() File "/tmp/ve/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 337, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/tmp/ve/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 2279, in load_entry_point return ep.load() File "/tmp/ve/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1989, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/tmp/ve/local/lib/python2.7/site-packages/curdling/web/init.py", line 3, in from flask import Flask, render_template, send_file, request, Response ImportError: No module named flask (ve)$ curd install flask Installing: [##########] 100% (5/5) (ve)$ curd-server -h Traceback (most recent call last): File "/tmp/ve/bin/curd-server", line 9, in load_entry_point('curdling==0.4.0', 'console_scripts', 'curd-server')() File "/tmp/ve/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 337, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/tmp/ve/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 2279, in load_entry_point return ep.load() File "/tmp/ve/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1989, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/tmp/ve/local/lib/python2.7/site-packages/curdling/web/init.py", line 5, in from gevent.pywsgi import WSGIServer ImportError: No module named gevent.pywsgi