ValueError: startfile: filepath too long for Windows
See original GitHub issueWhen running:
from geojsonio import display
with open('map.geojson') as f:
contents = f.read()
display(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 = f.read()
----> 5 display(contents)
C:\ProgramData\Anaconda3\lib\site-packages\geojsonio\geojsonio.py in display(contents, domain, force_gist)
35 """
36 url = make_url(contents, domain, force_gist)
---> 37 webbrowser.open(url)
38 return url
39 # display() used to be called to_geojsonio. Keep it around for now...
C:\ProgramData\Anaconda3\lib\webbrowser.py in open(url, new, autoraise)
58 for name in _tryorder:
59 browser = get(name)
---> 60 if browser.open(url, new, autoraise):
61 return True
62 return False
C:\ProgramData\Anaconda3\lib\webbrowser.py 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:
- Created 6 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i have the same problem after adding force_gist=True i have the following error AuthenticationFailed: 401 Requires authentication
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