![]() ![]() Bug:40127 - " Third-Party Tool Request - Checkpointing and restoring packages states, e.g.Bug:40023 - " media-plugins/gimp-gap Gimp Animation Package" status:CONFIRMED resolution: severity:enhancement.Bug:39457 - " pyrxp-0.9.ebuild (New Package)" status:CONFIRMED resolution: severity:normal.Bug:38858 - " seq-gen: Sequence-Generator simulation of DNA sequence evolution along phylogenetic trees" status:CONFIRMED resolution: severity:normal.Bug:30095 - " revdep-rebuild wants to rebuild package providing lib" status:CONFIRMED resolution: severity:normal.Bug:21527 - " net-misc/ntp: ntp-client init.d: default to `sntp` instead of `ntpdate`" status:CONFIRMED resolution: severity:enhancement.Bug:21509 - " Ability to cleanly stop emerging multiple packages after the current jobs complete." status:CONFIRMED resolution: severity:normal.Bug:10735 - " sys-apps/portage or app-portage/gentoolkit - Feature request: Show dependencies in detail clarifying whether they are DEPEND, RDEPEND or PDEPEND as well as whether they are optional." status:CONFIRMED resolution: severity:enhancement.Bug:4315 - " add support for version ranges in DEPEND" status:CONFIRMED resolution: severity:enhancement.It is easy to get the root of the installation, but the subfolders will change depending what python package you installed (windows app, conda, manually installing from ) etc.Īny insight on how to do this properly would be appreciated. Using the data_files mechanism, I have not found a way to reliably find out where exactly the package is going to be installed. For python < 3.8 adding to sys.path or os.environ does not solve anything. The folder can be added with os.add_dlls_directory, but that does not work for python < 3.8, which is a problem right now. Putting them into a subfolder into the package folder pyreadr does not work as the dlls are copied but they are not found at import time. ![]() However, doing this breaks compilation on Mac for some reason. ![]() If I put the dlls directly on the package folder (pyreadr) and say setup.py to treat them as package data, then on windows it works like a charm, you can import without having to do anything else as the dlls are effectively copied to the package directory. No idea how to do that at the moment, but suggestions are welcome. The definitive solution would be to able to copy the dlls (data) to wherever the code goes and not somewhere else, automatically, without having to guess where the system is going to install them. The solutions are either copying the dlls where the code is (then nothing else is needed), or to do os.add_dll_directory to the the directory where the dlls are. Now, when installing from windows app store, what I get is that the package is installed into a weird place LocalCache\local-packages\Python39\site-packages\pyreadr while the dlls are installed into a different place LocalCache\local-packages\Lib\site-packages\pyreadr, that is, the dlls are not togheter with the python code anymore. Then my installer copies into this folder the python code and the dlls. For instance, if you install with miniconda, you get it in Miniconda3\Lib\site-packages\pyreadr. The problem is that depending how you install Python, the folder structure of where the packages get installed looks different. Platform (windows, macOS, linux, 32 or 64 bit)Įxperience Windows Feature Experience Pack 120.2212.3740.0.How did you install pyreadr? (pip, conda, directly from repo).(Optional, doesn't really make a difference) Set PYTHONPATH $Env:PYTHONPATH = $Env:PATH to match PATH, which points to the folders with the DLLs.Install pandas and pyreadr with pip ( python -m pip install pandas pyreadr).librdata import Parser ImportError: DLL load failed while importing librdata: No se puede encontrar el mó dulo especificado. _pyreadr_parser import PyreadrParser, ListObjectsParser File "C:\Users\Eugenio\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pyreadr\_pyreadr_parser.py", line 17, in from. pyreadr import read_r, list_objects, write_rds, write_rdata, download_file File "C:\Users\Eugenio\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pyreadr\pyreadr.py", line 10, in from. Import pyreadr Traceback ( most recent call last):įile "", line 1, in File "C:\Users\Eugenio\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pyreadr\_init_.py", line 1, in from. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |