Opened 3 years ago
Closed 3 years ago
#63027 closed defect (fixed)
py-pyviz_comms installation incorrect
Reported by: | jolivetr | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | ||
Port: | py-pyviz_comms |
Description (last modified by jmroot (Joshua Root))
Dear,
It seems that when I install pyviz_comms for python38, the installation does not behave so that the import will be successful afterwards. The files copied in the site-packages directory are different from those copied when installing it with pip (for instance).
Some json files are missing and the import is not successful (IOError reports missing packages.json file). When building with pip, the python import is fine and the json files are present where they should be.
Normal install gives:
> ls -ltr /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyviz_comms total 64 -rw-r--r-- 1 root wheel 18962 Jun 4 22:59 __init__.py -rw-r--r-- 1 root wheel 439 Jun 4 22:59 _version.py -rw-r--r-- 1 root wheel 4976 Jun 4 22:59 notebook.js drwxr-xr-x 4 root wheel 128 Jun 4 22:59 labextension/ drwxr-xr-x 4 root wheel 128 Jun 4 22:59 __pycache__/
While the current macports install gives:
> ls -ltr /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyviz_comms total 24 -rw-r--r-- 1 root wheel 439 Dec 28 00:52 _version.py -rw-r--r-- 1 root wheel 18962 Dec 28 00:52 __init__.py drwxr-xr-x 4 root wheel 128 Jun 4 23:09 __pycache__/
I am not sure how to solve that problem... We cannot force macports to use pip, right? That would defeat the purpose... I worked around the problem by installing what I need and replacing the files with what is installed by pip, but that's a dirty workaround... Any idea?
Cheers, R
Change History (7)
comment:1 Changed 3 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Owner: | set to Schamschula |
Port: | py-pyviz_comms added; pyviz_comms removed |
Status: | new → assigned |
Summary: | pyviz_comms installation incorrect → py-pyviz_comms installation incorrect |
comment:2 Changed 3 years ago by Schamschula (Marius Schamschula)
comment:3 Changed 3 years ago by Schamschula (Marius Schamschula)
comment:4 Changed 3 years ago by jmroot (Joshua Root)
Seems more likely to be an undeclared dependency?
comment:5 Changed 3 years ago by jmroot (Joshua Root)
Yeah, looking at the setup.py it's going to behave differently depending on whether jupyter-packaging
is available.
comment:7 Changed 3 years ago by Schamschula (Marius Schamschula)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This is strange. I checked the contents of
py39-pyviz_comms
on my machine, and sure enough the situation is as you describe it.However, if I rebuild the package the missing file and directory tree are installed.
There were some recent changes to the python PortGroup. I will revision bump
py-pyviz_comms
.