Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What to remove if only database is needed? #247

Open
and7ey opened this issue Aug 17, 2016 · 7 comments
Open

What to remove if only database is needed? #247

and7ey opened this issue Aug 17, 2016 · 7 comments

Comments

@and7ey
Copy link

and7ey commented Aug 17, 2016

I don't need to display pokemons on the map and to generate report (only database file should be generated). What can I safely remove from the package?

(the script will be running on the NAS, pip is not there, so I will have to download and install all packages manually - would like to understand what I can skin)

@modrzew
Copy link
Owner

modrzew commented Aug 17, 2016

Just don't run web.py. All frontend requirements are pretty lightweight compared to backend ones. No need to remove anything I think.

@Aiyubi
Copy link

Aiyubi commented Aug 17, 2016

and if you can install modules - why not just install pip? Its just another module

@and7ey
Copy link
Author

and7ey commented Aug 17, 2016

I will manually download, unpack and copy modules to pokeminer folder (it is not installation :)

@modrzew
Copy link
Owner

modrzew commented Aug 17, 2016

But why would you do that? Why can't you run this in virtualenv? Moreover, Python from 2.7 onwards has ensurepip module which just installs pip. You can then use it to install all requirements.

@and7ey
Copy link
Author

and7ey commented Aug 20, 2016

I managed to install pip, but can not install xxhash -

Collecting xxhash (from -r requirements.txt (line 7))
  Using cached xxhash-0.6.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-lB6raN/xxhash/setup.py", line 58, in <module>
        'Programming Language :: Python :: Implementation :: CPython',
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/local/lib/python2.7/site-packages/setuptools/dist.py", line 221, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/usr/local/lib/python2.7/site-packages/setuptools/dist.py", line 245, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 588, in resolve
        raise VersionConflict(dist,req) # XXX put more info here
    pkg_resources.VersionConflict: (nose 1.1.2 (/usr/local/lib/python2.7/site-packages), Requirement.parse('nose>=1.3.0'))

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lB6raN/xxhash/

Is it required for the core functionality?

Upd. pip also installed protobuf, but pgoapi can not find it:
ImportError: No module named google.protobuf
Tried to manually copy it (google/protobuf folder) to pokeminer root, but it doesn't help.

@YonderGod
Copy link

I had troubles with xxhash, I had to install manually.

@Aiyubi
Copy link

Aiyubi commented Aug 21, 2016

Also you should be looking into Python 3.5 since it is needed for future pokeminer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants