Launch of orange3 - python

I tried to launch of Orange 3 on Anaconda. But launch have produced errors below.
Traceback (most recent call last):
File "C:\Users\tomo\Anaconda2\envs\orange3\Scripts\orange-canvas-script.py", line 6, in
from Orange.canvas.__main__ import main
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\__main__.py", line 30, in
from Orange.canvas.application.canvasmain import CanvasMainWindow
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\application\canvasmain.py", line 61, in
from .canvastooldock import CanvasToolDock, QuickCategoryToolbar, \
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\application\canvastooldock.py", line 25, in
from ..document.quickmenu import MenuPage
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\document\__init__.py", line 17, in
from .schemeedit import SchemeEditWidget
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\document\schemeedit.py", line 37, in
from .suggestions import Suggestions
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\document\suggestions.py", line 7, in
from .interactions import NewLinkAction
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\document\interactions.py", line 28, in
from ..canvas import items
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\canvas\items\__init__.py", line 9, in
from .annotationitem import TextAnnotation, ArrowAnnotation
File "C:\Users\tomo\Anaconda2\envs\orange3\lib\site-packages\Orange\canvas\canvas\items\annotationitem.py", line 7, in
import CommonMark
ModuleNotFoundError: No module named 'CommonMark'
Acutually I found these error on this web and tried to install the r-commonmark 1.4 but it does not work well now.
Please tell me how to deal with it.

CommonMark is a package that Orange used. It was renamed in the latest release what causes that imports do not work. The issue should be solved by installing newer Orange3 version3.16.0

Related

Unable to launch any application on my anaconda platform

Greetings: please neither jupyterlab, jupyternotebook, spyder none of them are working, it keeps giving me bunch of dependency errors and i don't even understand the errors: below are some when i launch spyder
Traceback (most recent call last):
File "/Users/mac/Public/anaconda3/bin/spyder", line 11, in
sys.exit(main())
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/spyder/app/start.py", line 128, in main
from spyder.config.manager import CONF
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/spyder/config/manager.py", line 22, in
from spyder.config.main import CONF_VERSION, DEFAULTS, NAME_MAP
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/spyder/config/main.py", line 21, in
from spyder.config.appearance import APPEARANCE
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/spyder/config/appearance.py", line 15, in
from spyder.plugins.help.utils.sphinxify import CSS_PATH
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/spyder/plugins/help/utils/sphinxify.py", line 34, in
from jinja2 import Environment, FileSystemLoader
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/jinja2/init.py", line 12, in
from .environment import Environment
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/jinja2/environment.py", line 25, in
from .defaults import BLOCK_END_STRING
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/jinja2/defaults.py", line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/Users/mac/Public/anaconda3/lib/python3.9/site-packages/jinja2/filters.py", line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/Users/mac/.local/lib/python3.9/site-packages/markupsafe/init.py)
PS. anyone who understands what's happening should please help me i need to submit a project today
i already uninstalled and installed new anaconda, i tried downgrading it, i tried importing some of the dependency manually. yet all show to no avail

ImportError: cannot import name 'KernelProvisionerBase' from 'jupyter_client.provisioning'

Very messy tonight. It was working fine before until I tried to upgrade tensorflow to 2.6. it failed, then all other packages also broke. for example, I cannot launch jupypter notebook. I did try to upgrade it by using conda update jupyter. Thanks for your help.
(forecast) C:\Python_Sync\ML timeseries>jupyter notebook
Traceback (most recent call last):
File "C:\Users\test\miniconda3\envs\forecast\Scripts\jupyter-notebook-script.py", line 5, in <module>
from notebook.notebookapp import main
File "C:\Users\test\miniconda3\envs\forecast\lib\site-packages\notebook\notebookapp.py", line 78, in <module>
from .services.kernels.kernelmanager import MappingKernelManager, AsyncMappingKernelManager
File "C:\Users\test\miniconda3\envs\forecast\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 18, in <module>
from jupyter_client.session import Session
File "C:\Users\test\miniconda3\envs\forecast\lib\site-packages\jupyter_client\__init__.py", line 11, in <module>
from .manager import AsyncKernelManager # noqa
File "C:\Users\test\miniconda3\envs\forecast\lib\site-packages\jupyter_client\manager.py", line 29, in <module>
from .provisioning import KernelProvisionerBase
ImportError: cannot import name 'KernelProvisionerBase' from 'jupyter_client.provisioning' (unknown location)
ok, i ended up solving this after:
conda update --all

Anaconda/Conda on OS X 11 -- Broken Jupyter Notebook with DEFAULT installation

I am running the latest Anaconda on OS X 11 and cannot for the life of me figure out how to get jupyter notebook to run. It ends in this error:
% jupyter notebook
Traceback (most recent call last):
File "/usr/local/opt/anaconda3/bin/jupyter-notebook", line 7, in <module>
from notebook.notebookapp import main
File "/usr/local/opt/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 85, in <module>
from .services.contents.manager import ContentsManager
File "/usr/local/opt/anaconda3/lib/python3.7/site-packages/notebook/services/contents/manager.py", line 17, in <module>
from nbformat import sign, validate as validate_nb, ValidationError
File "/usr/local/opt/anaconda3/lib/python3.7/site-packages/nbformat/__init__.py", line 32, in <module>
from .validator import validate, ValidationError
File "/usr/local/opt/anaconda3/lib/python3.7/site-packages/nbformat/validator.py", line 12, in <module>
from .json_compat import get_current_validator, ValidationError
File "/usr/local/opt/anaconda3/lib/python3.7/site-packages/nbformat/json_compat.py", line 10, in <module>
import jsonschema
File "/usr/local/opt/anaconda3/lib/python3.7/site-packages/jsonschema/__init__.py", line 32, in <module>
from pkg_resources import get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
I have tried fresh installs of both miniconda and anaconda without success. Nothing seems to work.
It baffles me that a default install of anaconda (no updates, no extra packages, nothing) is broken. Do these people even test their stuff?
Any solutions or suggestions? Thanks in advance!

jupyter lab is broken how can I fix it?

I can't figure out why jupyter-lab is not working. something is broken and don't know where. I have searched the web for this and can't find a solution. COuld you please help. Appreciate it.
E:\gitrepos>jupyter lab
`Traceback (most recent call last):
File "E:\anaconda3\Scripts\jupyter-lab-script.py", line 3, in <module>
import jupyterlab.labapp
File "E:\anaconda3\lib\site-packages\jupyterlab\labapp.py", line 7, in <module>
from notebook.notebookapp import NotebookApp, aliases, flags
File "C:\Users\Dario.Romero\AppData\Roaming\Python\Python35\site-packages\notebook\notebookapp.py", line 78, in <module>
from .services.kernels.kernelmanager import MappingKernelManager
File "C:\Users\Dario.Romero\AppData\Roaming\Python\Python35\site-packages\notebook\services\kernels\kernelmanager.py", line 19, in <module>
from jupyter_client.session import Session
File "E:\anaconda3\lib\site-packages\jupyter_client\session.py", line 61, in <module>
from jupyter_client.jsonutil import extract_dates, squash_dates, date_default
File "E:\anaconda3\lib\site-packages\jupyter_client\jsonutil.py", line 11, in <module>
from dateutil.parser import parse as _dateutil_parse
ImportError: No module named 'dateutil.parser'`
You need to install the dateutil library: https://pypi.python.org/pypi/python-dateutil/
(If you used a package manager, the dependencies for JupyterLab should already have been installed. If you didn't, then you will need to install the dependencies yourself.)

Cannot install odoo using source installation method : ImportError: cannot import name fp_str

I need to run multiple instances of odoo on my centos 7 server. So i needto use source insallation method for installing to install odoo as written in their documentation.
I was able to install odoo (git clonning to my system, installing dependencies, installing less css using npm) everything works fine for me till here.
After that they say i have to start running odoo using odoo.py script file as shown in the code sample below:
`./odoo.py -w <my_postgres_password> -r <postgres_user> --addons-path=addons,../mymodules --db-filter=mydb$`
But here i get into an error.
Traceback (most recent call last):
File "./odoo.py", line 160, in <module>
main()
File "./odoo.py", line 156, in main
import openerp
File "/home/odoo1/odoo/openerp/__init__.py", line 63, in <module>
import report
File "/home/odoo1/odoo/openerp/report/__init__.py", line 6, in <module>
import interface
File "/home/odoo1/odoo/openerp/report/interface.py", line 13, in <module>
import render
File "/home/odoo1/odoo/openerp/report/render/__init__.py", line 4, in <module>
from simple import simple
File "/home/odoo1/odoo/openerp/report/render/simple.py", line 9, in <module>
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/__init__.py", line 7, in <module>
from reportlab.platypus.flowables import Flowable, Image, Macro, PageBreak, Preformatted, Spacer, XBox, \
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/flowables.py", line 29, in <module>
from reportlab.lib.colors import red, gray, lightgrey
File "/usr/lib64/python2.7/site-packages/reportlab/lib/colors.py", line 17, in <module>
from reportlab.lib.utils import fp_str
ImportError: cannot import name fp_str
What can be the error due to. How to solve this issue?
Regards.
It should be from reportlab.lib.rl_accel import fp_str in the newest version of reportlab.So you need to upgrade the reportlab module.

Categories

Resources