quasiben / condacreate

Programmatically create Conda environments
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

File missing #1

Open mrocklin opened 8 years ago

mrocklin commented 8 years ago
In [1]: import condacreate

In [2]: c = condacreate.CondaCreator()

In [3]: c.create_env('myenv', ['python', 'distributed', 'dask'])
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-3-91974c0aa6ba> in <module>()
----> 1 c.create_env('myenv', ['python', 'distributed', 'dask'])

/home/mrocklin/Software/anaconda/lib/python3.5/site-packages/condacreate-0+untagged.2.g42c0a2d-py3.5.egg/condacreate/__init__.py in create_env(self, env_name, packages, remove)
    190             env_path = self.find_env(env_name)
    191         else:
--> 192             env_path = self._create_env(env_name, packages, remove)
    193 
    194         return self.zip_env(env_path)

/home/mrocklin/Software/anaconda/lib/python3.5/site-packages/condacreate-0+untagged.2.g42c0a2d-py3.5.egg/condacreate/__init__.py in _create_env(self, env_name, packages, remove)
    142         logger.debug(' '.join(cmd))
    143 
--> 144         shell_out(cmd)
    145 
    146         env_python = os.path.join(env_path, 'bin', 'python')

/home/mrocklin/Software/anaconda/lib/python3.5/site-packages/condacreate-0+untagged.2.g42c0a2d-py3.5.egg/condacreate/utils.py in shell_out(cmd, **kwargs)
     37         result of shell command
     38     """
---> 39     return check_output(cmd, **kwargs).decode('utf-8')

/home/mrocklin/Software/anaconda/lib/python3.5/subprocess.py in check_output(timeout, *popenargs, **kwargs)
    624 
    625     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
--> 626                **kwargs).stdout
    627 
    628 

/home/mrocklin/Software/anaconda/lib/python3.5/subprocess.py in run(input, timeout, check, *popenargs, **kwargs)
    691         kwargs['stdin'] = PIPE
    692 
--> 693     with Popen(*popenargs, **kwargs) as process:
    694         try:
    695             stdout, stderr = process.communicate(input, timeout=timeout)

/home/mrocklin/Software/anaconda/lib/python3.5/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
    945                                 c2pread, c2pwrite,
    946                                 errread, errwrite,
--> 947                                 restore_signals, start_new_session)
    948         except:
    949             # Cleanup if the child failed starting.

/home/mrocklin/Software/anaconda/lib/python3.5/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1549                             else:
   1550                                 err_msg += ': ' + repr(orig_executable)
-> 1551                     raise child_exception_type(errno_num, err_msg)
   1552                 raise child_exception_type(err_msg)
   1553 

FileNotFoundError: [Errno 2] No such file or directory: '/home/mrocklin/Software/anaconda/lib/python3.5/site-packages/condacreate-0+untagged.2.g42c0a2d-py3.5.egg/condacreate/tmp_conda/miniconda/bin/conda'

Operating from master. Python 3.5

mrocklin commented 8 years ago

This works fine if run from the root directory. Possibly a versioneer thing