merak icon indicating copy to clipboard operation
merak copied to clipboard

Can't be resolved relative to the current directory.

Open AbdelsalamHaa opened this issue 3 years ago • 1 comments

I'm trying to use your too, but it seems like got an issue with the way I run it.

I have a package that contains other packages and modules. The formate of my project is like following

--projectName ---package_name ------subpakage1 ---------module2 ------subpakage2 ---------module2 ------subpakage3 ---------module2 -----module1

So I run the following command

merak cythonize ./package_name built_backage

but I get the following error

ValueError: C:\Users\ABDELS~1\AppData\Local\Temp\tmpic3t6kta\Applications\subpakage1_init_.py can't be resolved relative to the current directory. Either run absolufy-imports from the project root, or pass --application-directories

I'm not sure how to fix that. I hope you can help.

Note: I'm using Windows with python 3.8

Thanks a lot

AbdelsalamHaa avatar Sep 01 '22 02:09 AbdelsalamHaa

I don't have access to any Windows machine right now. If anyone has found a fix please submit a PR

dave-msk avatar Sep 04 '22 10:09 dave-msk