Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: startfile: filepath too long for Windows

See original GitHub issue

When running:

from geojsonio import display
with open('map.geojson') as f:
    contents =

with data from Google in the file map.geojson I receive the following error:

ValueError                                Traceback (most recent call last)
<ipython-input-6-cd14c4214ce4> in <module>()
      3 with open('map.geojson') as f:
      4     contents =
----> 5     display(contents)

C:\ProgramData\Anaconda3\lib\site-packages\geojsonio\ in display(contents, domain, force_gist)
     35     """
     36     url = make_url(contents, domain, force_gist)
---> 37
     38     return url
     39 # display() used to be called to_geojsonio. Keep it around for now...

C:\ProgramData\Anaconda3\lib\ in open(url, new, autoraise)
     58     for name in _tryorder:
     59         browser = get(name)
---> 60         if, new, autoraise):
     61             return True
     62     return False

C:\ProgramData\Anaconda3\lib\ in open(self, url, new, autoraise)
    511         def open(self, url, new=0, autoraise=True):
    512             try:
--> 513                 os.startfile(url)
    514             except OSError:
    515                 # [Error 22] No application is associated with the specified

ValueError: startfile: filepath too long for Windows

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

HADDADENICARcommented, May 21, 2018

i have the same problem after adding force_gist=True i have the following error AuthenticationFailed: 401 Requires authentication

kevin552216commented, Jun 26, 2020

I use make_url instead of display to avoid this error. Here’s the step. room = geopandas.read_file(“file”).to_json() url = geojsonio.make_url(room) print(url) #double click the url image image

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: startfile: filepath too long for Windows (#9796)
Versions OS: Windows 10 GTK+ Version: 3.24.1 PyGObject Version: 3.32.1 python-nbxmpp Version: 0.6.10 Gajim Version:...
Read more >
python - Pathname too long to open? - Stack Overflow
When I change the file name to a smaller one, it works, so the problem is because of the length of the path....
Read more >
ValueError: stat: path too long for Windows - Online experiments
ValueError : stat: path too long for Windows. I've done some searching online, and it looks like Windows limits characters to 250.
Read more >
ValueError: stat: path too long for Windows - Forum
I am currently experiencing a very funny problem. Unfortunately it occurs too often, so that it annoys quite much and is not so...
Read more >
ZODB.FileStorage.FileStorage — ZODB documentation
noqa: E501 line too long if read_only: self._is_read_only = True if create: raise ValueError("can't create a read-only file") elif stop is not None:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found