Opened 3 years ago

Last modified 3 years ago

#63027 closed defect

py-pyviz_comms installation incorrect — at Version 1

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 (1)

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: newassigned
Summary: pyviz_comms installation incorrectpy-pyviz_comms installation incorrect
Note: See TracTickets for help on using tickets.