Comments (5)
I've changed the line:
from pebble import process, TimeoutError # to handle timeout
to:
import pebble
from concurrent.futures import TimeoutError
And:
with process.Pool(1) as p:
job = p.schedule(main,args=(args,),timeout=args.timeout)
try:
job.get()
to:
with pebble.ProcessPool(1) as p:
job = p.schedule(main,args=(args,),timeout=args.timeout)
try:
job.result()
This is causing some error messages on Windows:
RuntimeError: I/O operations still in flight while destroying Overlapped object, the process may crash
but at least I can run the script
from maxfield.
pip2 install 'pebble==3.1.15'
might also work
from maxfield.
I comment out the line
from pebble import process, TimeoutError # to handle timeout
from maxfield.
Pebble
has changed its interface in version 4.
I see the requirements.txt
having a loose >=
restriction on the package version. If the code was developed on top of Pebble3
and pip will fetch Pebble4
then you will get API mismatch.
Either restrict the requirements.txt
to ==
3.1.17 (the last release of Pebble3
), or upgrade your code to use Pebble4
. I'd recommend the second approach.
from maxfield.
Fixed requirements.txt file
bbe8f1c
from maxfield.
Related Issues (20)
- Improve performance for large number of portals HOT 5
- Link Map and Portal Map HOT 1
- ImportError: cannot import name process HOT 1
- Error: cannot import name process HOT 2
- freetype not found, although freetype6 is installed HOT 4
- Make KML instead of png plots HOT 2
- Excessive Maps API Calls HOT 1
- Old matplotlib version installs incompatible numpy version HOT 3
- Add fixed links for calculation HOT 2
- TamperMonkey script to make getting the portal text easier HOT 2
- Build failing due to broken dependency pygifsicle. HOT 4
- error HOT 9
- Inbound-only portals? HOT 3
- Python error (?) HOT 9
- Python 3.10 error HOT 3
- Some questions about the front end.
- No gif gen on ngress-maxfield.com
- ortools requiring protobuf>=4.21.5. HOT 1
- Non-Google basemap (OSM, maybe)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maxfield.