Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Problem #45

Open
dedop-cotton opened this issue Jan 26, 2018 · 25 comments
Open

Installation Problem #45

dedop-cotton opened this issue Jan 26, 2018 · 25 comments

Comments

@dedop-cotton
Copy link
Contributor

Attempted installation of DeDop, following instructions at
http://dedop-core.readthedocs.io/en/latest/user_manual/um_setup.html

Trying on MacOSX 10.13, using Miniconda

  1. The Miniconda download is a passive shell script. Needs an instruction to run the command “bash Miniconda3….” in terminal window (Download directory).
  2. Default installation directory is under user’s home directory, changed to /Applications/miniconda3.
  3. The conda installation was python 3.6, so first thing it did was revert to python 3.5
  4. “git” command requires Xcode to be installed first, this is prompted for.
  5. Dedop-core directory goes into top level of home directory, I moved it down a level.
  6. Error after “dedop --help”:
  7. Unable to proceed further
    

(dedop) Elliss-MacBook-Pro:dedop-core ellis$ dedop --help
Traceback (most recent call last):
File "/Applications/miniconda3/envs/dedop/bin/dedop", line 11, in
load_entry_point('dedop', 'console_scripts', 'dedop')()
File "/Applications/miniconda3/envs/dedop/lib/python3.5/site-packages/pkg_resources/init.py", line 572, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Applications/miniconda3/envs/dedop/lib/python3.5/site-packages/pkg_resources/init.py", line 2755, in load_entry_point
return ep.load()
File "/Applications/miniconda3/envs/dedop/lib/python3.5/site-packages/pkg_resources/init.py", line 2408, in load
return self.resolve()
File "/Applications/miniconda3/envs/dedop/lib/python3.5/site-packages/pkg_resources/init.py", line 2414, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/Users/ellis/Processes/dedop-core/dedop/cli/main.py", line 23, in
from cate.util.cli import run_main, Command, SubCommandCommand, CommandError
ImportError: No module named 'cate'

@hans-permana
Copy link
Contributor

This is because the documentation was out of date. In commits fcdbd5e and 59e9fe3 the documentation has been updated to include cate-cli in the package dependency. Could you try the installation again with the updated instruction?

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Jan 29, 2018 via email

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Jan 30, 2018 via email

@hans-permana
Copy link
Contributor

hi David,

I can reproduce your issue in MacOS 10.13.3. My investigation suggests that with the given command, Miniconda somehow fetches the wrong version of cate-util (i.e. one for Python 3.6). This results in the fetched cate-util package not available for the current environment, which is on Python 3.5.

Long term solution is to migrate the entire dedop to Python 3.6 (#33), but in the meantime I updated the doc (again!) to ensure that a specific cate-util version is installed.

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 2, 2018 via email

@hans-permana
Copy link
Contributor

Hi David,

Could you please attach the screenshot showing the error here? I could not find one from your last reply. Also, did you encounter this issue when trying to install DeDop Studio (from source, I assume) or when launching DeDop Studio after a successful install?

Thanks,
Hans

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 5, 2018 via email

hans-permana added a commit that referenced this issue Feb 6, 2018
…e issue when the installation is done from source as described in #45.
@hans-permana
Copy link
Contributor

Hi David,
This problem is caused by a missing version-specific directory inside .dedop. For installation using an installer, this directory is automatically created at the end of the installation. I have made a fix so that this is also the case for installation by source.

If you could re-install the dedop-core by running python setup.py develop and then run dedop-studio again, this issue should be solved.

NOTE: I have also simplified the instruction to install dedop-core by source. It is now using a .yml file to list all the dependencies rather than including them individually in the conda command.

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 6, 2018 via email

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 7, 2018 via email

@hans-permana
Copy link
Contributor

Hi David,

Did you start from zero this time (i.e. remove no .dedop directory, brand new conda environment, git pull both dedop-core and dedop-studio repositories)? If so, I could not figure out what is going wrong. I tested it on our iMac with OSX 10.13.3 and it worked. If you are available, I would like to diagnose this via skype (or other similar screen sharing software) so we can get to the root of this faster. What do you think?

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 8, 2018 via email

@hans-permana
Copy link
Contributor

Hi David,
Yes I am available tomorrow morning from 9.00 CET.

One thing that could be the cause of this problem: if you do conda list, do you see dedop on the list of dependencies? If so, try to run this command pip uninstall dedop so that it is not in the list anymore. After that, run python setup.py develop and run dedop-studio. But anyway, I will be available to support you tomorrow morning. We can talk more about it.

Hans

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 20, 2018 via email

@hans-permana
Copy link
Contributor

hans-permana commented Feb 21, 2018

Hi David,

The directory that you wrote (users\davidcotton\miniconda3\envs\dedop\bin) is the right one for MacOS.

Admittedly, no one has comprehensively tested this setup step for OS other than Windows. It is good that you identified some issues (well, not good for you, but good for completing the gaps in the documentation). As a response, I have updated the docs and it should now have different configuration examples for different OS's.

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 21, 2018 via email

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 21, 2018 via email

@hans-permana
Copy link
Contributor

Hi @dedop-cotton,

How do I start a new session now it is installed?

When you run from the source code, you don't actually install the software. To run the software, always use npm start command inside dedop-studio directory, as you already know.

And for the failure, can you drag n drop the image on the issue? I cannot see it on your last reply.

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 21, 2018 via email

@hans-permana
Copy link
Contributor

Hi @dedop-cotton ,

As far as I know, it is not possible to attach file format in GitHub Issue other than an image. You could probably send this file to my email instead. Alternatively, you can state here the error message.

@hans-permana
Copy link
Contributor

hi @dedop-cotton ,

studio screenshot 210218

It is indeed an issue of old configuration version. If you go to the Configuration tab, there should be a button that says upgrade. If you click it, it will activate the configuration upgrade.

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 22, 2018 via email

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 22, 2018 via email

@hans-permana
Copy link
Contributor

It is good to hear that it is finally running! But on the other hand, it would not leave a good impression if every user has to go through what you just did, just to be able to process something. I hope after trying more functionalities, you could give us more feedback on the usability of DeDop (Shell and Studio).

@dedop-cotton
Copy link
Contributor Author

dedop-cotton commented Feb 22, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants