M220P Lab 0 access to local host denied

I have struggled through how to set class up and I have it done for my desktop. I am trying to duplicate it with my laptop but I am getting access to local host denied on my browser.

I can run and pass pytest -m connection

But when I click on the status page link on the chapter 0 ticket, I cannot display the page… I get that error access to local host denied.

What do I need to check to enable access to local host?

Post a screenshot of the terminal where you start the application.

I now have a new issue.
I had 2 instances of the mflix-python folder installed… One in Downloads and one in Desktop. I deleted the folder in Downloads and went through the setup process using the folder in Desktop.

I created my conda environment and ran the pip install -r requirements.txt file… Now I get the following result when I run pytest -m connection

bossmandave@Davids-MBP mflix-python % conda activate mflix
(mflix) bossmandave@Davids-MBP mflix-python % pytest -m connection
Traceback (most recent call last):
  File "/Users/bossmandave/anaconda/anaconda3/envs/mflix/lib/python3.8/site-packages/_pytest/config.py", line 327, in _getconftestmodules
    return self._path2confmods[path]
KeyError: local('/Users/bossmandave/Desktop/mflix-python/tests')

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/Users/bossmandave/anaconda/anaconda3/envs/mflix/lib/python3.8/site-packages/_pytest/config.py", line 358, in _importconftest
    return self._conftestpath2mod[conftestpath]
KeyError: local('/Users/bossmandave/Desktop/mflix-python/tests/conftest.py')

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/Users/bossmandave/anaconda/anaconda3/envs/mflix/lib/python3.8/site-packages/_pytest/config.py", line 364, in _importconftest
    mod = conftestpath.pyimport()
  File "/Users/bossmandave/anaconda/anaconda3/envs/mflix/lib/python3.8/site-packages/py/_path/local.py", line 721, in pyimport
    raise self.ImportMismatchError(modname, modfile, self)
py._path.local.LocalPath.ImportMismatchError: ('tests.conftest', '/Users/davethompson/Desktop/mflix-python/tests/conftest.py', local('/Users/bossmandave/Desktop/mflix-python/tests/conftest.py'))
ERROR: could not load /Users/bossmandave/Desktop/mflix-python/tests/conftest.py

(mflix) bossmandave@Davids-MBP mflix-python % 

It appears that I have a problem with the path portion… Unsure how to correct this. Am going to continue to try.

It works on my desktop, But I cannot get it to work on my laptop…

Got a question for you… I am using .zsh instead of bash… Could this be part of the problem?

As of right now, I am considering deleting everything and starting over.

Now it is really broken on my iMac pro…
I tried to uninstall and reinstall anaconda and I cannot get the terminal command to work. Here is my problem

bossmandave@Davids-MBP Desktop % cd mflix-python
bossmandave@Davids-MBP mflix-python % echo ". /anaconda/anaconda3/etc/profile.d/conda.sh" >> ~/.zprofile
bossmandave@Davids-MBP mflix-python % source ~/.zprofile
/Users/bossmandave/.zprofile:.:6: no such file or directory: /anaconda3/etc/profile.d/conda.sh
/Users/bossmandave/.zprofile:.:7: no such file or directory: /anaconda/anaconda3/etc/profile.d/conda.sh
bossmandave@Davids-MBP mflix-python % 

HELP!!! lol. I am trying to delete the process and restart, but I do not know how to uninstall anaconda… I tried to run


Open Terminal. Type and run conda install anaconda-clean to install the Anaconda-Clean package. Press the Return key, then type the following: anaconda-clean –yes. To remove the entire Anaconda directory, type and run rm -rf ~/anaconda3.D

I ran those commands but in .zsh the anaconda-clean isn’t recognised…

Well. any guidance on where I can go to get help with the anaconda install… I would appreciate it… otherwise I will have to drop the class and find another way to get training on using mongodb with python.

Or I will have to migrate away from mongodb for my application that I am trying to develop.

You add the file

to your .zprofile and then you get the following error when you source your .zprofile.

So the file does not exist or you do not read permission to it. You probably did the same thing with

So you keep adding file you do not have access to. Post the output of

ls -l /anaconda3/etc/profile.d/ /anaconda/anaconda3/etc/profile.d
bossmandave@Davids-MBP Desktop % ls -l /anaconda3/etc/profile.d/ /anaconda/anaconda3/etc/profile.d
ls: /anaconda/anaconda3/etc/profile.d: No such file or directory
ls: /anaconda3/etc/profile.d/: No such file or directory
bossmandave@Davids-MBP Desktop % 

I have ran the command conda install anaconda-clean and also ran the command anaconda-clean – yes.

I was trying to uninstall and reinstall anaconda… (got the directions from stack overflow) it also told me to run the command rm -rf ~/anaconda3

Unfortunately… I ran that command and deleted the anaconda3 folder… When I tried to reinstall anaconda from the webpage the installer now fails. LOL. I guess I went from messed up to really messed up… Any ideas?

The first thing to do is to remove the 2 references to conda.sh in your .zprofile.

Then reinstall anaconda if it fails post the error.

Ok… I really want to thank you for your help… I’m learning.

This is the errors I get…

This is my root directory

drwxr-xr-x    3 bossmandave  staff     96 Dec  9 05:35 Learn_Go
drwxr-xr-x    4 bossmandave  staff    128 Jan 18 11:47 LearningPython
drwx------@  97 bossmandave  staff   3104 Jan 25 16:23 Library
drwx------+   9 bossmandave  staff    288 Jun 11  2021 Movies
drwx------+   7 bossmandave  staff    224 Nov 23  2020 Music
drwxr-xr-x@  12 bossmandave  staff    384 Mar 14  2021 OneDrive
drwx------+  30 bossmandave  staff    960 Jun 11  2021 Pictures
drwxr-xr-x+   4 bossmandave  staff    128 Feb  6  2020 Public
drwxr-xr-x    2 bossmandave  staff     64 Jan 15 15:05 Python
drwxr-xr-x    4 bossmandave  staff    128 Feb  3  2021 Sites
drwxr-xr-x    5 bossmandave  staff    160 Sep  7  2020 VisualStudio-Repository
drwx------@  14 bossmandave  staff    448 Apr  1  2021 Web Development Dropbox
drwxr-xr-x    3 bossmandave  staff     96 Jan 16 06:52 anaconda
-rw-------    1 root         staff    632 Mar 13  2021 bootcamp.vmdk
lrwx------    1 bossmandave  staff     42 Feb  9 18:17 dave@asiantradecentre.org - Google Drive -> /Volumes/GoogleDrive-110374726210508545533
lrwx------    1 bossmandave  staff     20 Feb  9 18:17 dthompson1413@gmail.com - Google Drive -> /Volumes/GoogleDrive
drwxr-xr-x    5 bossmandave  staff    160 Feb 26  2020 eclipse
drwxr-xr-x    5 bossmandave  staff    160 Feb 26  2020 eclipse-workspace
drwxr-xr-x    4 bossmandave  staff    128 Dec  9 05:35 go
drwxrwxrwx    8 root         staff    256 May 11  2021 m121
drwxr-xr-x   10 root         staff    320 Mar 16  2021 mongodb-enterprise-4.4.4
drwxr-xr-x    3 bossmandave  staff     96 Feb  7 04:22 opt
drwxr-xr-x   11 bossmandave  staff    352 Apr 20  2021 react-essentials
bossmandave@Davids-MBP ~ % 

I have an anaconda folder just below the dropbox folder.

When I go into this directory:

bossmandave@Davids-MBP ~ % cd anaconda
bossmandave@Davids-MBP anaconda % ls -la
total 0
drwxr-xr-x   3 bossmandave  staff    96 Jan 16 06:52 .
drwxr-xr-x+ 72 bossmandave  staff  2304 Feb  9 18:17 ..
drwxr-xr-x  28 bossmandave  wheel   896 Feb  7 04:12 anaconda3
bossmandave@Davids-MBP anaconda % 

Did I install it to a different folder than is in the direcections?

I think I need to run conda update anaconda to update the files I have changed…

Then I need to run
echo “. /anaconda/anaconda3/etc/profile.d/conda.sh” >> ~/.zprofile
source ~/.zprofile

I think this will fix it… Then I can create the mflix environment

Thoughts??

Where did you read that you need that:

The file probably still does not exist.

Most likely since you get the error that it already exists under /Users/bossmandave/opt/anaconda3.

Host have to do what it says to do:

conda update anaconda

What is the content of the directory /Users/bossmandave/opt/anaconda3?

[quote=“steevej, post:11, topic:145977, full:true”]
Where did you read that you need that:

I read this in the read me file for the lab… I added the /anaconda/ to it because of the folder structure on my computer.

# enable the "conda" command in Terminal
echo ". /anaconda3/etc/profile.d/conda.sh" >> ~/.bash_profile
source ~/.bash_profile

I changed the command becuase my computer has the anaconda folder in the folder anaconda… It is right under the folder for web development dropbox

bossmandave@Davids-MBP ~ % ls -la
total 288
drwxr-xr-x+  72 bossmandave  staff   2304 Feb 12 15:55 .
drwxr-xr-x    8 root         admin    256 Dec  8 00:39 ..
-r--------    1 bossmandave  staff      8 Feb  6  2020 .CFUserTextEncoding
-rw-r--r--@   1 bossmandave  staff  26628 Feb  9 18:52 .DS_Store
drwx------  473 bossmandave  staff  15136 Feb  6 18:44 .Trash
drwxr-xr-x    3 bossmandave  staff     96 Jan 18 11:29 .anaconda
drwxr-xr-x   16 bossmandave  staff    512 Aug  6  2021 .atom
-rw-------    1 bossmandave  staff   1154 Feb  7 03:51 .bash_history
-rw-r--r--    1 root         staff    539 Jan 16 06:55 .bash_profile
drwxr-xr-x    9 bossmandave  staff    288 Feb 27  2020 .composer
drwxrwsr-x    3 bossmandave  staff     96 Feb  7 05:01 .conda
-rw-r--r--    1 bossmandave  staff     49 Jan 18 11:29 .condarc
drwx------    6 bossmandave  staff    192 Jan 16 06:55 .config
drwxr-xr-x    3 bossmandave  staff     96 Jan 18 11:29 .continuum
drwx------    3 bossmandave  staff     96 Feb  8  2020 .cups
-rw-------    1 bossmandave  staff  18475 Mar 26  2021 .dbshell
drwx------    3 bossmandave  staff     96 Dec  9 05:42 .dlv
drwxr-xr-x   14 bossmandave  staff    448 Feb 12 15:55 .dropbox
drwxr-xr-x    8 bossmandave  staff    256 Feb 26  2020 .eclipse
drwxr-xr-x    3 bossmandave  staff     96 Feb  8  2020 .local
drwx------    3 bossmandave  staff     96 Jan 16 06:01 .mongodb
-rw-------    1 bossmandave  staff      0 May  9  2020 .mongorc.js
drwxr-xr-x    8 bossmandave  staff    256 Apr 18  2021 .npm
drwxr-xr-x    3 bossmandave  staff     96 Apr 17  2020 .oracle_jre_usage
drwxr-xr-x    8 bossmandave  staff    256 Aug 20 09:08 .p2
drwxr-xr-x    5 bossmandave  staff    160 Feb 28  2020 .phpls
-rw-r--r--    1 bossmandave  staff    293 Feb 28  2020 .profile
-rw-------    1 bossmandave  staff    201 Jan 18 15:32 .python_history
drwxr-xr-x    6 bossmandave  staff    192 Jan 17 09:39 .rest-client
drwxr-xr-x    6 bossmandave  staff    192 Feb 27  2020 .subversion
-rw-r--r--    1 root         staff    350 Jan 16 06:55 .tcshrc
-rw-------    1 bossmandave  staff  11454 Jan 17 05:28 .viminfo
drwxr-xr-x    4 bossmandave  staff    128 Feb  6  2020 .vscode
-rw-r--r--    1 root         staff    633 Jan 16 06:55 .xonshrc
-rw-r--r--    1 bossmandave  staff    167 Feb  9 19:11 .zprofile
-rw-r--r--    1 bossmandave  staff     36 Jan 17 05:59 .zrc_profile
-rw-------    1 bossmandave  staff  31338 Feb  9 19:27 .zsh_history
-rw-r--r--    1 bossmandave  staff    108 Jan 17 06:03 .zsh_profile
drwx------   37 bossmandave  staff   1184 Feb 12 15:55 .zsh_sessions
-rw-r--r--    1 bossmandave  staff    673 Feb  7 04:25 .zshrc
drwx------@   6 bossmandave  staff    192 Nov 17 14:00 Applications
drwxr-xr-x@   6 bossmandave  staff    192 Feb 16  2021 Applications (Parallels)
drwx------@  61 bossmandave  staff   1952 Feb  7 14:53 Desktop
drwx------@ 108 bossmandave  staff   3456 Feb  5 19:00 Documents
drwx------@   8 bossmandave  staff    256 Feb  9 19:27 Downloads
lrwxr-xr-x@   1 bossmandave  staff     57 Aug 13  2020 Dropbox -> /Users/bossmandave/Web Development Dropbox/David Thompson
drwx------@  46 bossmandave  staff   1472 Jun 18  2021 Google Drive
drwx------@   9 bossmandave  staff    288 Mar 23  2021 Google Drive (dthompson1413@gmail.com)
drwxr-xr-x    4 bossmandave  staff    128 Jan 15 18:50 Kloud9
drwxr-xr-x    3 bossmandave  staff     96 Dec  9 05:35 Learn_Go
drwxr-xr-x    4 bossmandave  staff    128 Jan 18 11:47 LearningPython
drwx------@  97 bossmandave  staff   3104 Jan 25 16:23 Library
drwx------+   9 bossmandave  staff    288 Jun 11  2021 Movies
drwx------+   7 bossmandave  staff    224 Nov 23  2020 Music
drwxr-xr-x@  12 bossmandave  staff    384 Mar 14  2021 OneDrive
drwx------+  30 bossmandave  staff    960 Jun 11  2021 Pictures
drwxr-xr-x+   4 bossmandave  staff    128 Feb  6  2020 Public
drwxr-xr-x    2 bossmandave  staff     64 Jan 15 15:05 Python
drwxr-xr-x    4 bossmandave  staff    128 Feb  3  2021 Sites
drwxr-xr-x    5 bossmandave  staff    160 Sep  7  2020 VisualStudio-Repository
drwx------@  14 bossmandave  staff    448 Apr  1  2021 Web Development Dropbox
drwxr-xr-x    3 bossmandave  staff     96 Jan 16 06:52 anaconda
-rw-------    1 root         staff    632 Mar 13  2021 bootcamp.vmdk
lrwx------    1 bossmandave  staff     42 Feb 12 15:55 dave@asiantradecentre.org - Google Drive -> /Volumes/GoogleDrive-110374726210508545533
lrwx------    1 bossmandave  staff     20 Feb 12 15:55 dthompson1413@gmail.com - Google Drive -> /Volumes/GoogleDrive
drwxr-xr-x    5 bossmandave  staff    160 Feb 26  2020 eclipse
drwxr-xr-x    5 bossmandave  staff    160 Feb 26  2020 eclipse-workspace
drwxr-xr-x    4 bossmandave  staff    128 Dec  9 05:35 go
drwxrwxrwx    8 root         staff    256 May 11  2021 m121
drwxr-xr-x   10 root         staff    320 Mar 16  2021 mongodb-enterprise-4.4.4
drwxr-xr-x    3 bossmandave  staff     96 Feb  7 04:22 opt
drwxr-xr-x   11 bossmandave  staff    352 Apr 20  2021 react-essentials
bossmandave@Davids-MBP ~ % 

The contents of my /Users/bossmandave/opt/anaconda3 folder is:

bossmandave@Davids-MBP opt % cd anaconda3
bossmandave@Davids-MBP anaconda3 % ls -la
total 48
drwxr-xr-x    28 bossmandave  staff    896 Feb  9 18:05 .
drwxr-xr-x     3 bossmandave  staff     96 Feb  7 04:22 ..
drwxr-xr-x     3 bossmandave  staff     96 Feb  7 04:24 Anaconda-Navigator.app
-rw-r--r--     1 bossmandave  staff  11440 Nov  9 16:53 LICENSE.txt
drwxr-xr-x   466 bossmandave  staff  14912 Feb  9 18:05 bin
drwxr-xr-x   375 bossmandave  staff  12000 Feb  9 18:05 conda-meta
drwxr-xr-x     3 bossmandave  staff     96 Feb  7 04:57 condabin
drwxr-xr-x     3 bossmandave  staff     96 Feb  7 04:24 doc
drwxrwsr-x     3 bossmandave  staff     96 Feb  7 05:00 envs
drwxr-xr-x     5 bossmandave  staff    160 Feb  7 04:24 etc
drwxr-xr-x   365 bossmandave  staff  11680 Feb  7 04:24 include
drwxr-xr-x   774 bossmandave  staff  24768 Feb  7 04:24 lib
drwxr-xr-x     4 bossmandave  staff    128 Feb  7 04:24 libexec
drwxr-xr-x     3 bossmandave  staff     96 Feb  7 04:24 licensing
drwxr-xr-x     3 bossmandave  staff     96 Feb  7 04:24 man
drwxr-xr-x    68 bossmandave  staff   2176 Feb  7 04:24 mkspecs
drwxr-xr-x    15 bossmandave  staff    480 Feb  7 04:24 phrasebooks
drwxr-xr-x  1101 bossmandave  staff  35232 Feb  9 18:05 pkgs
drwxr-xr-x    26 bossmandave  staff    832 Feb  7 04:24 plugins
-rw-rw-r--     2 bossmandave  staff  11518 Jul  3  2021 pyodbc.pyi
drwxr-xr-x     3 bossmandave  staff     96 Feb  7 04:24 python.app
drwxr-xr-x    27 bossmandave  staff    864 Feb  7 04:24 qml
drwxr-xr-x     7 bossmandave  staff    224 Feb  7 04:24 resources
drwxr-xr-x    14 bossmandave  staff    448 Feb  7 04:24 sbin
drwxr-xr-x    20 bossmandave  staff    640 Feb  7 04:24 share
drwxr-xr-x     3 bossmandave  staff     96 Feb  7 04:24 shell
drwxr-xr-x     9 bossmandave  staff    288 Feb  7 04:24 ssl
drwxr-xr-x   290 bossmandave  staff   9280 Feb  7 04:24 translations
bossmandave@Davids-MBP anaconda3 % 

I ran the conda update anaconda command… So… Now what?

I would really like for someone from the development team to get ahold of me… I am working with the Anaconda website (they point me to the free community for help) THERE IS NOOOOO INFORMATION ON HOW TO CORRECT INSTALLATION ISSUES!!!

This makes moving forward in the class IMPOSSIBLE!!! I would really like some help on this issue…

For some reason I cannot get the conda command portion of the readme file to work… My path always comes back with the error:

bossmandave@Davids-MBP mflix-python % echo ". /anaconda3/etc/profile.d/conda.sh" >> ~/.zprofile 
bossmandave@Davids-MBP mflix-python % source ~/.zprofile
/Users/bossmandave/.zprofile:.:7: no such file or directory: /anaconda3/etc/profile.d/conda.sh
bossmandave@Davids-MBP mflix-python %

however… I do not have an anaconda3 folder in my /Users/bossmandave directory: Below is the contents of that directory:

bossmandave@Davids-MBP ~ % cd ~
bossmandave@Davids-MBP ~ % ls -la
total 288
drwxr-xr-x+  72 bossmandave  staff   2304 Feb 12 16:31 .
drwxr-xr-x    8 root         admin    256 Dec  8 00:39 ..
-r--------    1 bossmandave  staff      8 Feb  6  2020 .CFUserTextEncoding
-rw-r--r--@   1 bossmandave  staff  26628 Feb  9 18:52 .DS_Store
drwx------  473 bossmandave  staff  15136 Feb  6 18:44 .Trash
drwxr-xr-x    3 bossmandave  staff     96 Jan 18 11:29 .anaconda
drwxr-xr-x   16 bossmandave  staff    512 Aug  6  2021 .atom
-rw-------    1 bossmandave  staff   1154 Feb  7 03:51 .bash_history
-rw-r--r--    1 root         staff    539 Jan 16 06:55 .bash_profile
drwxr-xr-x    9 bossmandave  staff    288 Feb 27  2020 .composer
drwxrwsr-x    3 bossmandave  staff     96 Feb 12 16:42 .conda
-rw-r--r--    1 bossmandave  staff     49 Jan 18 11:29 .condarc
drwx------    6 bossmandave  staff    192 Jan 16 06:55 .config
drwxr-xr-x    3 bossmandave  staff     96 Jan 18 11:29 .continuum
drwx------    3 bossmandave  staff     96 Feb  8  2020 .cups
-rw-------    1 bossmandave  staff  18475 Mar 26  2021 .dbshell
drwx------    3 bossmandave  staff     96 Dec  9 05:42 .dlv
drwxr-xr-x   14 bossmandave  staff    448 Feb 12 15:55 .dropbox
drwxr-xr-x    8 bossmandave  staff    256 Feb 26  2020 .eclipse
drwxr-xr-x    3 bossmandave  staff     96 Feb  8  2020 .local
drwx------    3 bossmandave  staff     96 Jan 16 06:01 .mongodb
-rw-------    1 bossmandave  staff      0 May  9  2020 .mongorc.js
drwxr-xr-x    8 bossmandave  staff    256 Apr 18  2021 .npm
drwxr-xr-x    3 bossmandave  staff     96 Apr 17  2020 .oracle_jre_usage
drwxr-xr-x    8 bossmandave  staff    256 Aug 20 09:08 .p2
drwxr-xr-x    5 bossmandave  staff    160 Feb 28  2020 .phpls
-rw-r--r--    1 bossmandave  staff    293 Feb 28  2020 .profile
-rw-------    1 bossmandave  staff    201 Jan 18 15:32 .python_history
drwxr-xr-x    6 bossmandave  staff    192 Jan 17 09:39 .rest-client
drwxr-xr-x    6 bossmandave  staff    192 Feb 27  2020 .subversion
-rw-r--r--    1 root         staff    350 Jan 16 06:55 .tcshrc
-rw-------    1 bossmandave  staff  11454 Jan 17 05:28 .viminfo
drwxr-xr-x    4 bossmandave  staff    128 Feb  6  2020 .vscode
-rw-r--r--    1 root         staff    633 Jan 16 06:55 .xonshrc
-rw-r--r--    1 bossmandave  staff    166 Feb 12 16:20 .zprofile
-rw-r--r--    1 bossmandave  staff     36 Jan 17 05:59 .zrc_profile
-rw-------    1 bossmandave  staff  31131 Feb 12 16:31 .zsh_history
-rw-r--r--    1 bossmandave  staff    108 Jan 17 06:03 .zsh_profile
drwx------   34 bossmandave  staff   1088 Feb 12 16:15 .zsh_sessions
-rw-r--r--    1 bossmandave  staff    673 Feb  7 04:25 .zshrc
drwx------@   6 bossmandave  staff    192 Nov 17 14:00 Applications
drwxr-xr-x@   6 bossmandave  staff    192 Feb 16  2021 Applications (Parallels)
drwx------@  61 bossmandave  staff   1952 Feb  7 14:53 Desktop
drwx------@ 108 bossmandave  staff   3456 Feb  5 19:00 Documents
drwx------@   8 bossmandave  staff    256 Feb  9 19:27 Downloads
lrwxr-xr-x@   1 bossmandave  staff     57 Aug 13  2020 Dropbox -> /Users/bossmandave/Web Development Dropbox/David Thompson
drwx------@  46 bossmandave  staff   1472 Jun 18  2021 Google Drive
drwx------@   9 bossmandave  staff    288 Mar 23  2021 Google Drive (dthompson1413@gmail.com)
drwxr-xr-x    4 bossmandave  staff    128 Jan 15 18:50 Kloud9
drwxr-xr-x    3 bossmandave  staff     96 Dec  9 05:35 Learn_Go
drwxr-xr-x    4 bossmandave  staff    128 Jan 18 11:47 LearningPython
drwx------@  97 bossmandave  staff   3104 Jan 25 16:23 Library
drwx------+   9 bossmandave  staff    288 Jun 11  2021 Movies
drwx------+   7 bossmandave  staff    224 Nov 23  2020 Music
drwxr-xr-x@  12 bossmandave  staff    384 Mar 14  2021 OneDrive
drwx------+  30 bossmandave  staff    960 Jun 11  2021 Pictures
drwxr-xr-x+   4 bossmandave  staff    128 Feb  6  2020 Public
drwxr-xr-x    2 bossmandave  staff     64 Jan 15 15:05 Python
drwxr-xr-x    4 bossmandave  staff    128 Feb  3  2021 Sites
drwxr-xr-x    5 bossmandave  staff    160 Sep  7  2020 VisualStudio-Repository
drwx------@  14 bossmandave  staff    448 Apr  1  2021 Web Development Dropbox
drwxr-xr-x    3 bossmandave  staff     96 Jan 16 06:52 anaconda
-rw-------    1 root         staff    632 Mar 13  2021 bootcamp.vmdk
lrwx------    1 bossmandave  staff     42 Feb 12 15:55 dave@asiantradecentre.org - Google Drive -> /Volumes/GoogleDrive-110374726210508545533
lrwx------    1 bossmandave  staff     20 Feb 12 15:55 dthompson1413@gmail.com - Google Drive -> /Volumes/GoogleDrive
drwxr-xr-x    5 bossmandave  staff    160 Feb 26  2020 eclipse
drwxr-xr-x    5 bossmandave  staff    160 Feb 26  2020 eclipse-workspace
drwxr-xr-x    4 bossmandave  staff    128 Dec  9 05:35 go
drwxrwxrwx    8 root         staff    256 May 11  2021 m121
drwxr-xr-x   10 root         staff    320 Mar 16  2021 mongodb-enterprise-4.4.4
drwxr-xr-x    3 bossmandave  staff     96 Feb  7 04:22 opt
drwxr-xr-x   11 bossmandave  staff    352 Apr 20  2021 react-essentials
bossmandave@Davids-MBP ~ % 

ANY direction would be appreciated.

I DO have the folder /User/bossmandave/anaconda/anaconda3/etc/profile.d/conda.sh

But I cannot seem to get this file loaded into my path in my .zprofile

Appears clearly path issue

ls -lrt /User/bossmandave/anaconda/anaconda3/etc/profile.d/conda.sh
If file exists add full path in the echo command and see if it works after sourcing the profile file

I ran that from bossmandave… Here is what I got.

Last login: Mon Feb 14 12:11:52 on console

bossmandave@Davids-MacBook-Pro ~ % ls -lrt /User/bossmandave/anaconda/anaconda3/etc/profile.d/conda.sh

ls: /User/bossmandave/anaconda/anaconda3/etc/profile.d/conda.sh: No such file or directory

bossmandave@Davids-MacBook-Pro ~ %

However this is my directory from root. Anaconda is in my bossmandave direcory

bossmandave@Davids-MacBook-Pro ~ % cd anaconda
bossmandave@Davids-MacBook-Pro anaconda % ls -la
total 0
drwxr-xr-x   3 bossmandave  staff    96 Jan 16 06:52 .
drwxr-xr-x+ 72 bossmandave  staff  2304 Feb 14 12:13 ..
drwxr-xr-x  28 bossmandave  wheel   896 Feb  7 04:12 anaconda3
bossmandave@Davids-MacBook-Pro anaconda % cd anaconda3
bossmandave@Davids-MacBook-Pro anaconda3 % ls-la
zsh: command not found: ls-la

as you can see bossmandave@Davids-MacBook-Pro is my root directory (it is under /Users/)
anaconda3 is in the anaconda directory…


bossmandave@Davids-MacBook-Pro anaconda3 % ls -la
total 48
drwxr-xr-x    28 bossmandave  wheel    896 Feb  7 04:12 .
drwxr-xr-x     3 bossmandave  staff     96 Jan 16 06:52 ..
drwxr-xr-x     3 bossmandave  wheel     96 Jan 16 06:54 Anaconda-Navigator.app
-rw-r--r--     1 bossmandave  wheel  11440 Nov  9 16:53 LICENSE.txt
drwxr-xr-x   469 bossmandave  wheel  15008 Feb  7 04:12 bin
drwxr-xr-x   376 bossmandave  wheel  12032 Feb  7 04:12 conda-meta
drwxr-xr-x     3 bossmandave  wheel     96 Jan 17 06:56 condabin
drwxr-xr-x     3 bossmandave  wheel     96 Jan 16 06:53 doc
drwxrwxr-x     4 bossmandave  wheel    128 Feb 14 00:52 envs
drwxr-xr-x     5 bossmandave  wheel    160 Jan 16 06:54 etc
drwxr-xr-x   365 bossmandave  wheel  11680 Jan 16 06:54 include
drwxr-xr-x   774 bossmandave  wheel  24768 Feb  7 04:12 lib
drwxr-xr-x     4 bossmandave  wheel    128 Jan 16 06:54 libexec
drwxr-xr-x     3 bossmandave  wheel     96 Jan 16 06:53 licensing
drwxr-xr-x     3 bossmandave  wheel     96 Jan 16 06:53 man
drwxr-xr-x    68 bossmandave  wheel   2176 Jan 16 06:54 mkspecs
drwxr-xr-x    15 bossmandave  wheel    480 Jan 16 06:54 phrasebooks
drwxr-xr-x  1508 bossmandave  wheel  48256 Feb 14 00:52 pkgs
drwxr-xr-x    26 bossmandave  wheel    832 Jan 16 06:54 plugins
-rw-rw-r--     2 bossmandave  wheel  11518 Jul  3  2021 pyodbc.pyi
drwxr-xr-x     3 bossmandave  wheel     96 Jan 16 06:54 python.app
drwxr-xr-x    27 bossmandave  wheel    864 Jan 16 06:54 qml
drwxr-xr-x     7 bossmandave  wheel    224 Jan 16 06:54 resources
drwxr-xr-x    14 bossmandave  wheel    448 Jan 16 06:53 sbin
drwxr-xr-x    20 bossmandave  wheel    640 Feb  7 04:12 share
drwxr-xr-x     3 bossmandave  wheel     96 Jan 16 06:54 shell
drwxr-xr-x     9 bossmandave  wheel    288 Feb  7 04:12 ssl
drwxr-xr-x   290 bossmandave  wheel   9280 Jan 16 06:54 translations

etc is in the anaconda3 directory…

bossmandave@Davids-MacBook-Pro anaconda3 % cd etc
bossmandave@Davids-MacBook-Pro etc % ls -la
total 0
drwxr-xr-x   5 bossmandave  wheel  160 Jan 16 06:54 .
drwxr-xr-x  28 bossmandave  wheel  896 Feb  7 04:12 ..
drwxr-xr-x   3 bossmandave  wheel   96 Jan 16 06:54 fish
drwxr-xr-x   6 bossmandave  wheel  192 Jan 16 06:54 jupyter
drwxr-xr-x   4 bossmandave  wheel  128 Jan 17 06:56 profile.d

profile.d directory is int the etc directory…

bossmandave@Davids-MacBook-Pro etc % cd profile.d
bossmandave@Davids-MacBook-Pro profile.d % ls -la
total 16
drwxr-xr-x  4 bossmandave  wheel   128 Jan 17 06:56 .
drwxr-xr-x  5 bossmandave  wheel   160 Jan 16 06:54 ..
-rw-rw-r--  1 bossmandave  wheel  2573 Jan 17 06:56 conda.csh
-rw-rw-r--  1 bossmandave  wheel  2834 Jan 17 06:56 conda.sh
bossmandave@Davids-MacBook-Pro profile.d % 

conda.sh file is in the orofile.d directory…

So… all the files and directories exist, but they aren’t created… Or is the “no such file or directory” because of the path?

Where do I go from here?

But you mentioned you have that folder
So why ls -la is failing?

It is very simple.From the dir where you showed conda.sh just run pwd
It will give full path of your file.Copy this to your echo command and try to create the profile file again
How many conda.sh’s exist on your machineYou can do a search from root dir

Please verify your typing.

In some places you have

and in some others you have

Is it /Users/ or /User/? A computer is not smart enough to know you mean the same thing. We do because we do not notice the error unless we dig deep. When you get an error like no such file or directory or file not found. Check your typing.

THANKS for the clarification.

bossmandave@Davids-MacBook-Pro ~ % ls -lrt /User/bossmandave/anaconda/anaconda3/etc/profile.d/conda.sh
ls: /User/bossmandave/anaconda/anaconda3/etc/profile.d/conda.sh: No such file or directory
bossmandave@Davids-MacBook-Pro ~ % ls -lrt /Users/bossmandave/anaconda/anaconda3/etc/profile.d/conda.sh
-rw-rw-r--  1 bossmandave  wheel  2834 Jan 17 13:56 /Users/bossmandave/anaconda/anaconda3/etc/profile.d/conda.sh
bossmandave@Davids-MacBook-Pro ~ % 

It appears my folder is in the Users directory not the User.

Thank you all soooo much for your help… I added to the path mapping /Users/bossmandave and it worked…

I got it to load… Ran the pip install -r requirements.txt

Ran pytest -m connection

all passed.

but when I ran python run.py I get the following

(mflix) bossmandave@Davids-MacBook-Pro mflix-python % python run.py
Traceback (most recent call last):
  File "run.py", line 1, in <module>
    from mflix.factory import create_app
  File "/Users/bossmandave/Desktop/mflix-python/mflix/factory.py", line 3, in <module>
    from flask import Flask, render_template
ModuleNotFoundError: No module named 'flask'
(mflix) bossmandave@Davids-MacBook-Pro mflix-python % 

What do I need to do to correct this?

It is a different issue. Please mark this thread as solved and start a new one with the other issue.