Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.54k stars 174 forks source link

Multiple 'Module Not Found' errors on FreeBSD version 1.187 from Ports #5040

Closed darkoverlordofdata closed 1 year ago

darkoverlordofdata commented 1 year ago

I recently installed cudatext on FreeBSD 13.1-RELEASE. Using ‘sudo pkg install cudatext-qt5’, it installed cudatext version 1.187.1.0,

On Launch, the button status says ‘ModuleNotFoundError: No module named 'cuda_tabs_list', and the left side window titled ‘tabs’ is empty. When I select Open Folder, I get ‘ModuleNotFoundError: No module named 'cuda_project_man' ERROR: Exception in CudaText for cuda_project_man.new_project_open_dir: ModuleNotFoundError: No module named 'cuda_project_man'

Then the menu disappears. I can restart the program to get the menu back, but just about every selection gives me a ModuleNotFoundError, and names a ‘cuda_xxx’ module.

Unfortunately, this is unusable.

Alexey-T commented 1 year ago

The package was not installed right. it misses folder 'py' at the right location. folder 'py': https://wiki.freepascal.org/CudaText#Location_of_folders_.27settings.27.2C_.27py.27.2C_.27data.27

package cudatext-qt5 seems is not OK.

Alexey-T commented 1 year ago

Please report to the package's issues: https://bugs.freebsd.org/bugzilla/buglist.cgi?quicksearch=editors%2Fcudatext

Unpack portable package from https://sourceforge.net/projects/cudatext/files/release/1.193.0.1/ and make symlink to the binary in OS PATH.

BSD package installer must copy folders 'data' and 'py' to ~/.config/cudatext , which is not done yet.

Alexey-T commented 1 year ago

I reported to the bugtracker, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271221

alonsobsd commented 1 year ago

Hello, @darkoverlordofdata try use latest instead of quarterly into your pkg config file (/etc/pkg/FreeBSD.conf) and try install/update cudatext again. It should install/update cudatext to 1.191.5 in your FreeBSD. image

Alexey-T commented 1 year ago

@alonsobsd On your screenshot, sidebar don't show buttons

it means the python engine was not inited. so BSD port don't have correct path in pylib__freebsd opt.

path is inited here: proc_globdata.pas

  {$ifdef freebsd}
  exit('/usr/local/lib/libpython3.6m.so');
  {$endif}

do we need another value?

alonsobsd commented 1 year ago

@Alexey-T it is a fresh install of cudatext it is the reason why you see pylib message. It is solved following your NOTE message image

Alexey-T commented 1 year ago

Solved by installing newer Cud update.

darkoverlordofdata commented 1 year ago

I’m going to decline that solution, the Latest branch should be renamed the Unstable branch. I had to rebuild my system so many times last year when I was on Latest - it would break about every other time I installed a package. When I reached out to the forums, I was advised to switch to Quarterly, and haven’t had any issues since doing so. I’m not going back to that.

FYI - I’ve only got two versions of python - 3.9 and 3.11.

3.11 brings up a message Access Violation. I click OK, and there is no menu.

3.9 is the issue I reported.

Another option I suppose is to build from source. So I installed lazarus, but it is also broken, too. I guess I’ll stick with code-oss - it may be slow, but it works.

On Wed, May 3, 2023 at 8:09 AM Alexey T. @.***> wrote:

Solved by installing newer Cud update.

— Reply to this email directly, view it on GitHub https://github.com/Alexey-T/CudaText/issues/5040#issuecomment-1533211679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4TVE5VYJBU2WXZL5TLXEJYJLANCNFSM6AAAAAAXTXPNAU . You are receiving this because you were mentioned.Message ID: @.***>

--

Bruce Davidson

Alexey-T commented 1 year ago

The solution, if you use Quarterly, is this

darkoverlordofdata commented 1 year ago

No change, I downloaded cudatext-linux-qt5-amd64-1.193.0.1 , and unpacked it at at .local/bin, but when I run it, it had the same issue. I check the Help->About, and it says it’s version 1.187.1.0.

On Wed, May 3, 2023 at 9:00 AM Alexey T. @.***> wrote:

The solution, if you use Quarterly, is this

  • get the portable version 1.193 from CudaText.sf.net Files section
  • unpack to a dir in home-dir
  • make a symlink to 'cudatext' in the PATH dir

— Reply to this email directly, view it on GitHub https://github.com/Alexey-T/CudaText/issues/5040#issuecomment-1533305175, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4VGOZN2UFDHHPLCOHDXEJ6LFANCNFSM6AAAAAAXTXPNAU . You are receiving this because you were mentioned.Message ID: @.***>

--

Bruce Davidson

Alexey-T commented 1 year ago

But you run the old version 1.187. please remove it from PC. and checck that 'cudatext' cannot be run. then make portable installation of 1.193.

darkoverlordofdata commented 1 year ago

Doh, you are right. I uninstalled old version, but now I get 'error while loading shared libraries: libQt5Pas.so.1: cannot open shared object file: No such file or directory'. I'll have to dig into the dependencies

On Wed, May 3, 2023 at 9:59 AM Alexey T. @.***> wrote:

But you run the old version 1.187. please remove it from PC. and checck that 'cudatext' cannot be run. then make portable installation of 1.193.

— Reply to this email directly, view it on GitHub https://github.com/Alexey-T/CudaText/issues/5040#issuecomment-1533392291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4SZK6J3SDW2JATKC4TXEKFIXANCNFSM6AAAAAAXTXPNAU . You are receiving this because you were mentioned.Message ID: @.***>

--

Bruce Davidson

Alexey-T commented 1 year ago

Yes, libQt5Pas.so.1 is a file from libQt5Pas package, and you need it even if you remove the CudaText package. after you install it, new Cud must work

darkoverlordofdata commented 1 year ago

It's just too early in the am for my email :) That sourceforge link was to a linux version. I could not find a freebsd qt5 version, so I tried the gtk2 version. It works ok. But also is ugly as I expected. I will give cudatext a test drive, and If I like it I will wait for the next QR and install the Qt5 version. Thanks for your timely response!

On Wed, May 3, 2023 at 10:09 AM Alexey T. @.***> wrote:

Yes, libQt5Pas.so.1 is a file from libQt5Pas package, and you need it even if you remove the CudaText package. after you install it, new Cud must work

— Reply to this email directly, view it on GitHub https://github.com/Alexey-T/CudaText/issues/5040#issuecomment-1533406775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4TVSBAHJILCJF6OMS3XEKGM7ANCNFSM6AAAAAAXTXPNAU . You are receiving this because you were mentioned.Message ID: @.***>

--

Bruce Davidson

Alexey-T commented 1 year ago

I want to compile FreeBSD/Qt5 version. I just need the binary libQt5Pas.so.1 - can you attach it here, pls? I cannot find it online

alonsobsd commented 1 year ago

I want to compile FreeBSD/Qt5 version. I just need the binary libQt5Pas.so.1 - can you attach it here, pls? I cannot find it online

Try with it https://people.freebsd.org/~acm/ports/libQt5Pas.so.1.2.12

Alexey-T commented 1 year ago

Thanks, file copied, but I still have 'linker error' - seems all Qt5 .so files are needed as well, can you give them?

BTW, different fix for you is possible. Restore Cud 1.187 from packages. before running it, make the copy of installed folders 'settings_default', 'py' and 'data' to ~/.config/cudatext. you can find these 3 dirs in the package installed folder.

alonsobsd commented 1 year ago

@Alexey-T how are you generating cudatext binaries on FreeBSD? crosscompiling? or have you a fbsd box? libQt5pas.so has a lot of lib dependencies

Alexey-T commented 1 year ago

Crosscompiling from Ubuntu 20.4.