question-mark
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.

`NotADirectoryError` when starting server after installing from source

See original GitHub issue

Hi,

Using Python 3.6.1 |Anaconda custom (64-bit):

git clone https://github.com/facebookresearch/visdom.git
cd visdom
python setup.py install
python -m visdom.server

returns:

Traceback (most recent call last):
  File "/home/pltrdy/anaconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/pltrdy/anaconda3/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pltrdy/anaconda3/lib/python3.6/site-packages/visdom-0.1.5-py3.6.egg/visdom/server.py", line 622, in <module>
  File "/home/pltrdy/anaconda3/lib/python3.6/site-packages/visdom-0.1.5-py3.6.egg/visdom/server.py", line 576, in download_scripts
  File "/home/pltrdy/anaconda3/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
NotADirectoryError: [Errno 20] Not a directory: '/home/pltrdy/anaconda3/lib/python3.6/site-packages/visdom-0.1.5-py3.6.egg/visdom'


It was working when I installed using pip, but then I can’t run example/demo.py because there was no Visdom.check_connection.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JackUrbcommented, Oct 12, 2017

@pltrdy I’m investigating what might’ve happened now

0reactions
JackUrbcommented, Oct 12, 2017

Alright I think I’ve come to the core of the problem, going to push a fix soon. After moving to setuptools from distutils the installation flow from source is a little different from what is currently in the docs.

If you want to get ahead of the fix, change zip_safe in setup.py to False, then use easy_install . from within the visdom directory rather than pip

Read more comments on GitHub >

github_iconTop Results From Across the Web

NotADirectoryError when starting server after installing from ...
Hi, Using Python 3.6.1 |Anaconda custom (64-bit): git clone https://github.com/facebookresearch/visdom.git cd visdom python setup.py install ...
Read more >
mysql configuration stops at "starting server" - Stack Overflow
Here is what I did: Installed it with mysql-installer-web-community-5.6.23.0.msi; For my purposes I selected "Custom" install with MySQL servers 5.6.22 ...
Read more >
"The directory name is invalid" error message when you start ...
C:\Windows\system32\Notepad.exe The directory name is invalid. To use the Run as feature, you click The following user in the Run as dialog box,...
Read more >
Setup - Robusta master documentation
If you encounter NotADirectoryError: [Errno 20] Not a directory while trying to debug, you may need to disable the Attach to subprocess option...
Read more >
R for Windows FAQ - The Comprehensive R Archive Network
After installation you may choose a working directory for R. By default, it is the Windows "personal" directory (typically ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found