Jump to content

pieterm

Members
  • Posts

    4
  • Joined

  • Last visited

pieterm's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Changed my password and looks like my filezilla was trying to connect via sftp Can my ip get unblocked please
  2. Thank you for the quick support, the two modules seem to be working! I see in the list that the requests module isn't there. (also my code tells me: AH01215: ImportError: No module named requests:) Could you install this one as well please?
  3. For my master thesis I need realtime GTFS data which can be retrieved and parsed with python. I have this script working locally. When executed here i get a 500 error. (Exec format error: exec of '***/cgi-bin/gtfsrealtime.py' failed: ***/cgi-bin/gtfsrealtime.py) Could it be that the modules from the google packages I'm importing are missing? (I've read on the forum that the requests package should be installed) Would it be possible to have them installed if so? (I am on Johnny using python 2.7) Thanks in advance! from google.transit import gtfs_realtime_pb2 from google.protobuf import json_format import requests feed = gtfs_realtime_pb2.FeedMessage() response = requests.get('https://***') feed.ParseFromString(response.content) json = json_format.MessageToJson(feed) f = open("test.json", "w") f.write(json) for entity in feed.entity: if entity.HasField('trip_update'): print entity.trip_update f.close()
  4. Dear, Is it possible to reactivate my account please. username: pieterm Thanks in advance
×
×
  • Create New...