mesoscope / cellpack

Python algorithm to pack 3D models
https://mesoscope.github.io/cellpack/
MIT License
4 stars 2 forks source link

Installation issue #20

Closed corredD closed 2 years ago

corredD commented 2 years ago

Description

Installation steps from the README are not working right away

Expected Behavior

What did you expect to happen instead? installation followed by calling analyze -o output -p jitter without issues.

Reproduction

A minimal example that exhibits the behavior.

- pip install cellpack
Collecting cellpack
  ERROR: Could not find a version that satisfies the requirement cellpack (from versions: none)
ERROR: No matching distribution found for cellpack
- pip install git+https://github.com/mesoscope/cellpack.git
Collecting git+https://github.com/mesoscope/cellpack.git
  Cloning https://github.com/mesoscope/cellpack.git to c:\users\ludov\appdata\local\temp\pip-req-build-zc22lrjq
  Running command git clone -q https://github.com/mesoscope/cellpack.git 'C:\Users\ludov\AppData\Local\Temp\pip-req-build-zc22lrjq'
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Couldn't find index page for 'pytest-runner' (maybe misspelled?)
    No local packages or working download links found for pytest-runner>=5.2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ludov\AppData\Local\Temp\pip-req-build-zc22lrjq\setup.py", line 95, in <module>
        zip_safe=False,
      File "C:\ProgramData\Anaconda3\lib\distutils\core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools\dist.py", line 335, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools\dist.py", line 456, in fetch_build_eggs
        replace_conflicting=True,
      File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 863, in resolve
        replace_conflicting=replace_conflicting
      File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 1141, in best_match
        return self.obtain(req, installer)
      File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 1153, in obtain
        return installer(requirement)
      File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools\dist.py", line 522, in fetch_build_egg
        return cmd.easy_install(req)
      File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools\command\easy_install.py", line 666, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner>=5.2')
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\ludov\AppData\Local\Temp\pip-req-build-zc22lrjq\

Using the setup with pip install -e .[dev] didnt throw error but executing the Analyze script raise an error

analyze -o  output -p jitter
Traceback (most recent call last):
  File "C:\Users\ludov\.conda\envs\autopack\Scripts\analyze-script.py", line 33, in <module>
    sys.exit(load_entry_point('cellpack', 'console_scripts', 'analyze')())
  File "C:\Users\ludov\.conda\envs\autopack\Scripts\analyze-script.py", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "C:\Users\ludov\.conda\envs\autopack\lib\importlib\metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "C:\Users\ludov\.conda\envs\autopack\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "c:\users\ludov\documents\cellpack\cellpack\bin\analyze.py", line 23, in <module>
    from cellpack.autopack.Environment import Environment
  File "c:\users\ludov\documents\cellpack\cellpack\autopack\Environment.py", line 73, in <module>
    from .ingredient import GrowIngredient, ActinIngredient
ModuleNotFoundError: No module named 'cellpack.autopack.ingredient'

Environment

Any additional information about your environment Windows 10 conda 4.10.3 python 3.6.3 conda 4.10.3 python 3.8.10

meganrm commented 2 years ago

There were a couple missing dependancies, I also hadn't released a new version yet. For the local install, try installing the deps again, and let me know how it goes. I also updated the pipy release, it should be 0.2.1 now

meganrm commented 2 years ago

thanks for reporting all this