You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@marvin.apache.org by "Lucas Cardoso Silva (Jira)" <ji...@apache.org> on 2020/08/06 18:42:00 UTC

[jira] [Commented] (MARVIN-74) Error When Setting up Example Iris Project

    [ https://issues.apache.org/jira/browse/MARVIN-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17172607#comment-17172607 ] 

Lucas Cardoso Silva commented on MARVIN-74:
-------------------------------------------

You can try to install the engine manually on your virtualenv. Consider using a virtual python environment> = 3.7 to install Marvin, as it has not been fully tested in python 3.8.

> Error When Setting up Example Iris Project
> ------------------------------------------
>
>                 Key: MARVIN-74
>                 URL: https://issues.apache.org/jira/browse/MARVIN-74
>             Project: Apache Marvin
>          Issue Type: Bug
>         Environment: Mac OS 10.5.3
>            Reporter: Tony Chen
>            Priority: Major
>             Fix For: Not Applicable
>
>         Attachments: pip_list.txt
>
>
> I'm following the [instruction|[https://marvin.apache.org/marvin-platform-book/ch2_toolbox_installation/mac/]] to set up the example _iris-species-engine-env_ engine
>  
> When I execute the command below, a pip error message appeared.
> {code:java}
> tchen273@US_C02CG5NBMD6T engines % marvin engine-generateenv ../engines/iris-species-engine/
> Creating virtualenv: iris-species-engine-env...
> created virtual environment CPython3.8.5.final.0-64 in 1210ms
>   creator CPython3Posix(dest=/Users/tchen273/.virtualenvs/iris-species-engine-env, clear=False, global=False)
>   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/tchen273/Library/Application Support/virtualenv)
>     added seed packages: pip==20.2.1, setuptools==49.2.1, wheel==0.34.2
>   activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
> Setting project for iris-species-engine-env to /Users/tchen273/workspace/engines/iris-species-engine
> pip install -e ".[testing]" --process-dependency-linksUsage:
>   pip install [options] <requirement specifier> [package-index-options] ...
>   pip install [options] -r <requirements file> [package-index-options] ...
>   pip install [options] [-e] <vcs project url> ...
>   pip install [options] [-e] <local project path> ...
>   pip install [options] <archive url/path> ...no such option: --process-dependency-links
> make: *** [marvin] Error 2Done!!!!
> Now to workon in the new engine project use: workon iris-species-engine-env
> {code}
> and subsequently
> {code:java}
> (python-toolbox-env) tchen273@US_C02CG5NBMD6T engines % workon iris-species-engine-env
> (iris-species-engine-env) tchen273@US_C02CG5NBMD6T iris-species-engine % marvin engine-dryrunEngine file engine.params loaded!
> Engine file engine.messages loaded!
> Engine file feedback.messages loaded!------------------------------------------------------------------------------
> MARVIN DRYRUN - STEP [AcquisitorAndCleaner]
> ------------------------------------------------------------------------------Traceback (most recent call last):
>   File "/usr/local/bin/marvin", line 79, in <module>
>     cli()
>   File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
>     return self.main(*args, **kwargs)
>   File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
>     rv = self.invoke(ctx)
>   File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
>     return _process_result(sub_ctx.command.invoke(sub_ctx))
>   File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
>     return ctx.invoke(self.callback, **ctx.params)
>   File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
>     return callback(*args, **kwargs)
>   File "/usr/local/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
>     return f(get_current_context(), *args, **kwargs)
>   File "/usr/local/lib/python3.8/site-packages/marvin_python_toolbox/management/engine.py", line 67, in dryrun_cli
>     dryrun(ctx, action, params_file, messages_file, feedback_file, initial_dataset, dataset, model, metrics, response, spark_conf, profiling)
>   File "/usr/local/lib/python3.8/site-packages/marvin_python_toolbox/management/engine.py", line 100, in dryrun
>     _dryrun.execute(clazz=CLAZZES[step], params=params, initial_dataset=initial_dataset, dataset=dataset, model=model, metrics=metrics,
>   File "/usr/local/lib/python3.8/site-packages/marvin_python_toolbox/management/engine.py", line 131, in execute
>     _Step = dynamic_import("{}.{}".format(self.package_name, clazz))
>   File "/usr/local/lib/python3.8/site-packages/marvin_python_toolbox/management/engine.py", line 208, in dynamic_import
>     mod = __import__(components[0])
> ModuleNotFoundError: No module named 'marvin_iris_species_engine'
> {code}
> I've referred to a another [github thread |[https://github.com/S2E/s2e-env/issues/245]]to try to deal with the pip error by downgrading pip to 18.1 to no avail. Please let me know the work around. Thank you very much!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)