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

Error #2

Closed
xDyN opened this issue Dec 4, 2016 · 13 comments
Closed

Error #2

xDyN opened this issue Dec 4, 2016 · 13 comments

Comments

@xDyN
Copy link

xDyN commented Dec 4, 2016

F:\pokeminer>python -i
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import db
Traceback (most recent call last):
File "", line 1, in
File "F:\pokeminer\db.py", line 12, in
import utils
File "F:\pokeminer\utils.py", line 4, in
import polyline
ImportError: No module named 'polyline'
db.Base.metadata.create_all(db.get_engine())
Traceback (most recent call last):
File "", line 1, in
NameError: name 'db' is not defined
db.Base.metadata.create_all(db.get_engine())
Traceback (most recent call last):
File "", line 1, in
NameError: name 'db' is not defined

what happen with me ?

@xDyN
Copy link
Author

xDyN commented Dec 4, 2016

and
Running setup.py install for xxhash: finished with status 'error'
Complete output from command c:\python35\python.exe -u -c "import setuptools , tokenize;file='C:\Users\Windows 7 Blue\AppData\Local\Temp\pip-build- 7ib2tz0q\xxhash\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.r ead().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" ins tall --record "C:\Users\Windows 7 Blue\AppData\Local\Temp\pip-6hsvn30q-record\in stall-record.txt" --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'xxhash' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

----------------------------------------

Command "c:\python35\python.exe -u -c "import setuptools, tokenize;file='C:\ \Users\Windows 7 Blue\AppData\Local\Temp\pip-build-7ib2tz0q\xxhash\setup. py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\ n');f.close();exec(compile(code, file, 'exec'))" install --record "C:\Users\ Windows 7 Blue\AppData\Local\Temp\pip-6hsvn30q-record\install-record.txt" --sing le-version-externally-managed --compile" failed with error code 1 in C:\Users\Wi ndows 7 Blue\AppData\Local\Temp\pip-build-7ib2tz0q\xxhash\

@Noctem
Copy link
Owner

Noctem commented Dec 5, 2016

The first error is because polyline isn't installed. Make sure you have all of the requirements.

pip3 install -U -r requirements.txt

The second one is about failing to build xxhash, which is no longer required for pgoapi so I removed it from my pgoapi's requirements.txt just now. That shouldn't be a problem any more.

@xDyN
Copy link
Author

xDyN commented Dec 6, 2016

today I try setup and get new error

import db
Traceback (most recent call last):
File "", line 1, in
File "G:\pokeminer\db.py", line 12, in
import utils
File "G:\pokeminer\utils.py", line 9, in
from pgoapi import utilities as pgoapi_utils
File "g:\pokeminer\src\pgoapi\pgoapi_init_.py", line 50, in
from pgoapi.pgoapi import PGoApi
File "g:\pokeminer\src\pgoapi\pgoapi\pgoapi.py", line 35, in
from pgoapi.rpc_api import RpcApi
File "g:\pokeminer\src\pgoapi\pgoapi\rpc_api.py", line 48, in
from pogoprotos.networking.envelopes.request_envelope_pb2 import RequestEnvelope
ImportError: No module named 'pogoprotos'

@Noctem
Copy link
Owner

Noctem commented Dec 6, 2016

Oops. There were some issues with case sensitivity on my pgoapi repo. It should work now.

@xDyN
Copy link
Author

xDyN commented Dec 6, 2016

import db
Traceback (most recent call last):
File "", line 1, in
File "G:\pokeminer\db.py", line 12, in
import utils
File "G:\pokeminer\utils.py", line 11, in
import config
File "G:\pokeminer\config.py", line 3, in
from landmarks import Landmarks
File "G:\pokeminer\landmarks.py", line 1, in
from shapely.geometry import Point, Polygon, shape, box, LineString
ImportError: No module named 'shapely'

I can't install shapely ! do you know how to fix that ?

@Noctem
Copy link
Owner

Noctem commented Dec 6, 2016

Are you using notifications/landmarks or BOUNDARIES? If not, you can just remove:

from landmarks import Landmarks

from your config.py, and shapely will no longer be needed.

If you are using it, pip3 install shapely should work. It's in optional-requirements.txt if you were wondering why it didn't get included when you installed everything in requirements.txt.

@xDyN
Copy link
Author

xDyN commented Dec 6, 2016

when I remove
from landmarks import Landmarks
I get error
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "G:\pokeminer\db.py", line 12, in <module> import utils File "G:\pokeminer\utils.py", line 11, in <module> import config File "G:\pokeminer\config.py", line 91, in <module> LANDMARKS = Landmarks(query_suffix=AREA_NAME) NameError: name 'Landmarks' is not defined

I remove all line have Landmarks , it work but when I run worker.py I get error

python worker.py -st 8
Traceback (most recent call last):
File "worker.py", line 1349, in
with open('pickles/accounts.pickle', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'pickles/accounts.pickle'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "worker.py", line 1358, in
ACCOUNTS = utils.create_accounts_dict()
File "G:\pokeminer\utils.py", line 325, in create_accounts_dict
accounts[username] = create_account_dict(account)
File "G:\pokeminer\utils.py", line 311, in create_account_dict
entry.update(utils.generate_device_info())
NameError: name 'utils' is not defined``

@Noctem
Copy link
Owner

Noctem commented Dec 6, 2016

Ahh, that's a bug. I've pushed a fix. Thanks for bringing that to my attention, I'm not sure how I missed it.

Also, FYI: worker.py relies on having a database table of spawnpoints and their expiration times. I recently added wander.py which uses the old method of scanning every 70m. I haven't tested that much yet, so let me know if you use it and encounter issues. Most of my development effort will go towards spawnpoint scanning, but I'd like to have something to let people that are starting fresh build up a spawn DB. The spawnpoint database will automatically expand as they discover Pokemon with accurate expiration timestamps, so you can switch over to worker as soon as you have enough points to keep your workers busy.

@xDyN
Copy link
Author

xDyN commented Dec 7, 2016

hmm i get a new error

$ python worker.py Traceback (most recent call last): File "worker.py", line 1376, in <module> import notification File "G:\Pokeminer\notification.py", line 6, in <module> import cairo ImportError: No module named 'cairo'

@Noctem
Copy link
Owner

Noctem commented Dec 7, 2016

You're not using notifications, right? It's importing notification which was importing cairo because you apparently have either NOTIFY_IDS or NOTIFY_RANKING in your config which it was using to determine that you want to use notifications.

Some additional checks that I added in 0c61351 will likely resolve that particular issue for you, but it would still be wise to remove any configuration options that are only relevant to notifications if you're not using that feature. That commit also comments out those options from the config.example.

@xDyN
Copy link
Author

xDyN commented Dec 8, 2016

`$ python worker.py
Traceback (most recent call last):
File "worker.py", line 1402, in
overseer.start()
File "worker.py", line 954, in start
self.launch_account_manager()
File "worker.py", line 913, in launch_account_manager
self.manager.start(mgr_init)
File "F:\Python35\lib\multiprocessing\managers.py", line 479, in start
self._process.start()
File "F:\Python35\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "F:\Python35\lib\multiprocessing\context.py", line 313, in _Popen
return Popen(process_obj)
File "F:\Python35\lib\multiprocessing\popen_spawn_win32.py", line 66, in ini t
reduction.dump(process_obj, to_child)
File "F:\Python35\lib\multiprocessing\reduction.py", line 59, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'Overseer.launch_account_manager..'
Traceback (most recent call last):
File "", line 1, in
File "F:\Python35\lib\multiprocessing\spawn.py", line 100, in spawn_main
new_handle = steal_handle(parent_pid, pipe_handle)
File "F:\Python35\lib\multiprocessing\reduction.py", line 86, in steal_handle
_winapi.DUPLICATE_SAME_ACCESS | _winapi.DUPLICATE_CLOSE_SOURCE)
PermissionError: [WinError 5] Access is denied

`
i get a error

@Noctem
Copy link
Owner

Noctem commented Dec 10, 2016

e102bd7 should fix that.

@xDyN
Copy link
Author

xDyN commented Dec 10, 2016

I will setup this ! hope it don't have error !

@Noctem Noctem closed this as completed Dec 15, 2016
Barloklol pushed a commit to Barloklol/Monocle that referenced this issue Jun 24, 2017
timpotter87 pushed a commit to timpotter87/Monocle that referenced this issue Dec 7, 2017
DennyLoko pushed a commit to DennyLoko/Monocle that referenced this issue Dec 8, 2017
RobTwoThree referenced this issue in RobTwoThree/Monocle Dec 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants