Comments (7)
I installed 'responses' to solve the problem
from google-maps-services-python.
Quick question, did you use tox to run the tests?
https://pypi.python.org/pypi/tox
from google-maps-services-python.
No, I used "pip". But there still are some packages I need to download and install myself, like "responses".
from google-maps-services-python.
The README.md, under building, mentions using tox
to build and test the library. The testing dependencies are managed by tox
via https://github.com/googlemaps/google-maps-services-python/blob/master/test_requirements.txt
Thanks!
from google-maps-services-python.
Sorry, I still can't get it. I'm rather confused about running the tests.
- this is a library for calling google map services with python. Am I right?
- I'm using windows 7. So I don't know how to run the tests by "$ tox" command. The only way I know to run a .py file is right click the file -> Edit with IDLE -> F5.
- I used "pip install -U googlemaps", "pip install tox" and "pip install [someOtherPackages]" to ensure no errors happen when running the tests like "test_client.py". In fact, errors still happen when I've finished the steps I mentioned.
class ClientTest(_test.TestCase):
AttributeError: 'module' object has no attribute 'TestCase'
It messed me up! - what does this mean in test_requirements.txt?
nose
responses==0.3
BTW, what exactly could I see if running the tests successfully?
I would appreciate your help very much if you help me with those questions.
from google-maps-services-python.
Answering your questions:
- Yes, this is a library for accessing the Google Maps API Web Services from the Python programming language
- I can see how
$ tox
would be confusing for a Windows 7 user.$ tox
means to run thetox
program from the command line. The$
in question is a reference to thebash
command line shell that is in common use on Linux and OSX computers. - Yes, I can see how the errors you are seeing would be confusing. There is a introduction to Python commond line programming for Python in Python on Windows FAQ. This is but the first step in a long chain of learning.
- The
test_requirements.txt
file is a configuration for thetox
build system. I suggest reading through this page on the tox automation project.
Programming is an art driven mainly by an unending desire to keep learning. I suggest you run up a Linux machine using either a virtual machine environment, or on a raspberry pi. Learning to master the bash
command line will pay good dividends in a lifetime of programming.
from google-maps-services-python.
Thank you very much, domesticmouse!
I'll take your advice.
from google-maps-services-python.
Related Issues (20)
- Error about [urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))] HOT 1
- Introduce previousRequestId param for address validation HOT 1
- Including `page_token` leads to `INVALID_REQUEST` error for Places API requests HOT 1
- FR: allow lat/lng str instead of float HOT 3
- A typo in googlemaps/places.py breaks address_components retriaval from places API. HOT 2
- Support "Convert addresses into English" pre-GA feature HOT 1
- Is there some way I can use the marker clustering to fix my pins? HOT 1
- Google places API returns only 10 photo references HOT 1
- Support for new Places API endpoints HOT 6
- Support for API Places (New) HOT 3
- Create google Place API account for educational purposes ? HOT 1
- proxies HOT 1
- Static maps style only accepts a dict instead of a list of dict HOT 1
- Add support for Address Descriptors to Geocoding HOT 1
- Places API for python, location_restriction HOT 1
- K HOT 1
- Mp HOT 1
- U HOT 1
- localhost
- public key
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 google-maps-services-python.