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 with 04_streaming/simulate/df06.py (similar to #56) #58

Closed
pagestarr66 opened this issue Apr 4, 2019 · 2 comments
Closed

error with 04_streaming/simulate/df06.py (similar to #56) #58

pagestarr66 opened this issue Apr 4, 2019 · 2 comments
Labels

Comments

@pagestarr66
Copy link

Hi I am getting the same error as reported in #56 for df05.py, but am running on my own GCP platform account for df06.py. Error snippet is below.

File "/usr/local/lib/python2.7/dist-packages/apache_beam/transforms/core.py", line 1161, in wrapper = lambda x: [fn(x)] File "df06.py", line 134, in | 'airports:tz' >> beam.Map(lambda fields: (fields[0], addtimezone(fields[21], fields[26]))) File "df06.py", line 24, in addtimezone import timezonefinder File "/usr/local/lib/python2.7/dist-packages/timezonefinder/init.py", line 2, in from .timezonefinder import TimezoneFinder File "/usr/local/lib/python2.7/dist-packages/timezonefinder/timezonefinder.py", line 300 def closest_timezone_at(self, *, lat, lng, delta_degree=1, exact_computation=False, return_distances=False, ^ SyntaxError: invalid syntax [while running 'airports:tz']

@pagestarr66
Copy link
Author

pagestarr66 commented Apr 4, 2019

OK I looked at the Quiklabs doc, the code here is fine, but the instructions should be updated for this module:

virtualenv data-sci-env -p python3.5
source data-sci-env/bin/activate
pip install timezonefinder pytz
pip install apache-beam[gcp]
history
./df06.py -p {PROJECT_ID} -b {BUCKET}

@silverlightweb
Copy link

Hi @pagestarr66 . I have the same problem with you. I solved that problem by the way change 'timezonefinder' in the "setup.py" to "timezonefinder <= 3.0.0".

moszutij pushed a commit to moszutij/data-science-on-gcp that referenced this issue May 6, 2019
moszutij added a commit to moszutij/data-science-on-gcp that referenced this issue May 6, 2019
lakshmanok added a commit that referenced this issue May 7, 2019
…-df06-py#58

Fix error when running 04_streaming/simulate/df06.py on own GCP platform account #58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants